I’ve add a few Sonoff POW switches and flashed them with https://github.com/arendst/Sonoff-MQTT-OTA-Arduino/wiki/Sonoff-Pow . I can switch them on and off with HA using MQTT. I can’t get the current power usage in HA. See config. I’m getting “unknown”. Any suggestions ?
This means that the answer is coming under stat/deskpow/RESULT and not the cmnd/deskpow/status, so the state_topic needs to reflect this. Additionally, the value is nested in the JSON so it needs to be picked out from StatusPWR.Power.
pi@HomeAssistant:~$ mosquitto_sub -h 192.168.178.123 -p 8883 -t 'cmnd/sonoff_droger/status 8' -v -u ha -P ha
I get:
pi@HomeAssistant:/var/www/html$ mosquitto_sub -h 192.168.178.123 -p 8883 -t stat/sonoff_droger/RESULT -v -u ha -P ha
stat/sonoff_droger/RESULT PWR: Voltage 228 V, Current 0.000 A, Power 0 W, Today 0.005 kWh, Factor 0.00
I still can’t figure out how to do this in HA config.
I flashed a https://www.itead.cc/wiki/Sonoff_4CH with https://github.com/arendst/Sonoff-Tasmota I have been trying to make it work with Home Assistant without success. If anyone can help with the setup of both the Sonoff firmware and Home Assistant I would appreciate it immensely!!
@mitchese : can’t you use the telemetry option from the firmware to make the Sonoff push the data every 1/5/10min and then use that data as needed?
The Tasmota Sonoff POW wiki show such feature https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-Pow
I don’t have any POW device (ordered a few last week, still waiting for them to arrive) so can’t test this, but seems like a a good idea.
I guess I’ll try that Tasmota firmware because I feel I can definitely get more data out of it, ideally I’d love to have the total kWh usage for the day that you’re telling me it provides
The Sonoff Pow can provide Energy, Power, Voltage and Current information in different ways.
Message | Unit | Description
----------|------|-----------------------------------------------------
Yesterday | kWh | Total Energy usage between 00:00 and 24:00 yesterday
Today | kWh | Total Energy usage today from 00:00 until now
Period | Wh | Energy usage between previous message and now
Power | W | Current power load
Factor | | The ratio of the real power flowing to the load to
| | the apparent power in the circuit
Voltage | V | Current line voltage
Current | A | Current line current
Sorry to bump this thread but how is it working lately?
Just want to confirm - to set the update period just send once TelePeriod = 300 and it is stored in flash? Afterwards POW will report the measurments and they are easily picked up via the following config? Any bugs or problems?
I too am curious about how well this is working. It seems to me that the Sonoff products are underappreciated at their price point. Why are they getting so little attention by the community? I can’t image paying double for a zwave device for the same (or maybe even less) functionality.
Bump. Anyone getting this to work? I can make the switch part work but not the power monitoring. I am using the tasmota firmware and instructions. Power monitoring works on the sonoff web interface but I can’t get it to translate to home assistant.
Thanks. I tried this and it still is not working. Here are my config files. Switch part works, power sensor does not. The POW project name in the tasmota firmware is “sonoff1”. I am using hass.io w/ the mosquitto add-on for my MQTT broker. Feels like I am just one small setting away from making this work. Appreciate the help!