jasonacox / powermonitor

Monitor power usage through WiFi Smart Plug
MIT License
62 stars 8 forks source link

Can it be integrated in Home Assistant? #2

Open Nihvel opened 5 years ago

Nihvel commented 5 years ago

Perhaps dockerized and/or as an alternative to the current Home Assistant Tuya integration: https://www.home-assistant.io/components/tuya/

This integration works good, obviously, but it misses the power metering feature and I believe your project can improve this integration a lot!

I bought some of these plugs and after discovering the firmware is locked and can't be tuya-flashed, I tried to use the integration above thinking that it would have worked anyway even if without MQTT. Then I saw that also the power metering wasn't there.

Thank you

jasonacox commented 5 years ago

I updated the script and added a Dockerfile to make it easier to build and run the script.

Is the other request to extend Home Assistant tuya integration to include the power data?

Nihvel commented 5 years ago

Hi, thanks! That was incredibly fast! Unfortunately I can not help you for Home Assistant backend. Do you know this software? I bet people in the community will be happy to see the tuya integration improved.

I really do not have other requests, I think you could drop them a message to check how to add your project to the system. Right now I see that one container holds the requirements for 1 plug. For more plugs more containers have to be created and I'm not sure it will be easy to handle it. Probably there's a way in between and your container(s)/project can work inside HA flawlessly.

maracana42 commented 4 years ago

I updated the script and added a Dockerfile to make it easier to build and run the script.

Is the other request to extend Home Assistant tuya integration to include the power data?

Hello,

I'm a user of Home Assistant and I'm looking for a integration of power monitor in this platform. For now, there is a project with node red https://github.com/subzero79/node-red-contrib-tuya-local but it's not easy. So it would be fantastic to develop a custom component for this used.

Thank you