-
Notifications
You must be signed in to change notification settings - Fork 233
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
Sonoff power and library HLW8012 #178
Comments
Ok, I guess this is a question, not a statement and it's about supporting power measurement on some Sonoff models (a good writeup by author of HLW8012 library for ESP8266 on ArduinoCore). I checked the library and I think it can be easily ported to esp-open-rtos: you just need to replace digitalWrite() and always use interrupts instead of doing busy waiting counting pulse width in pulseIn() function. As of Elgato EVE support for exposing that data, here is reverse engineered list of EVE custom characteristics. |
Hello |
Hi @maximkulkin, Many devices now have integrated this power meter. In example, the cost effective Houzetek AW7PL has the HWL8012 and the device is apparently great, as has several GPIOS free to add it aditional functionalities. Would be possible to integrate it? Many thanks! |
@maximkulkin I'm also interested in HWL8012 library for esp-open-rtos 😄 Also keep in mind that HWL8012 needs to be calibrated for proper measurements. 😄 |
As Maximkulkin said, this library will be easily modified. The question is, did anyone manage to create custom features? @maximkulkin would you build these features for us users? |
Yes, i have but without the Eve characteristics and HomeKit data type it will not work. HomeKit data type is added to esp-homekit, but its not that easy to work with like an int/float based characteristic like Temp Sensor etc.😄 But i'm still working on it 😄 |
Can you share the code? I think maximkulkin added the data type. |
HLW8012_BL0937_ESP-master.zip |
In another post you mentioned that you were able to show the story, can you share code? |
I was not able to show any history with esp-homekit, only with HomeKit Accessory Simulator and only one time. So theres no code currently! |
I already did a port.. it's here:- https://github.com/maccoylton/HLW8012_BL0937_ESP Feedback welcome |
hi.
There are ways to have the HLW8012 library to get the EVE power meter via apple homekit. for th10 and th16
thank you
The text was updated successfully, but these errors were encountered: