Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLW8012 define default calibrated values #610

Closed
varungujjar opened this issue Feb 27, 2018 · 3 comments
Closed

HLW8012 define default calibrated values #610

varungujjar opened this issue Feb 27, 2018 · 3 comments

Comments

@varungujjar
Copy link

Hey @xoseperez is it possible to define the default calibrated values.. internally ? so we dont have to do the same for other devices.

@xoseperez
Copy link
Owner

ESPurna uses the HLW8012_CURRENT_R, HLW8012_VOLTAGE_R_UP and HLW8012_VOLTAGE_R_DOWN values to calibrate the sensor. They are defined in the sensor.h file unless they are defined before, in the hardware.h file, for instance. Check the setResistors and _calculateDefaultMultipliers methods in the HLW8012 library.

@gn0st1c
Copy link
Contributor

gn0st1c commented Mar 21, 2018

@varungujjar : an example can be KMC_70011 (see hardware.h)

shouldn't this issue be closed already?

@varungujjar
Copy link
Author

@xoseperez yes this should be closed..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants