peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
791 stars 296 forks source link

Sonoff POW (first generation) voltage and current values #213

Closed KixMan28 closed 4 years ago

KixMan28 commented 4 years ago

I have installed your software and it works fine. It recognizes all my Sonoff devices (Basic, S20, POW and Touch). My questions is: can I extract somehow the current and voltage values (as the power value) from my Sonoff POW (first generation, firmware 2.6.1)?

peterbuga commented 4 years ago

they should be listed under attributes i have a POW R2 and i have it like this

power: 0.00
current: 0.00
voltage: 224.43
rssi: -64
friendly_name: speakers

on top of the fact the component created separate entities for power/current/voltage (in my case)

sensor.sonoff_1000xxxxxx_current | 0.00 | unit_of_measurement: A friendly_name: speakers current icon: mdi:current-ac
sensor.sonoff_1000xxxxxx_power | 0.00 | unit_of_measurement: W friendly_name: speakers power icon: mdi:flash-outline
sensor.sonoff_1000xxxxxx_voltage | 222.32 | unit_of_measurement: V friendly_name: speakers voltage icon: mdi:power-plug
KixMan28 commented 4 years ago

As I mentioned in my initial post I have first generation Sonoff POW's and if I check the entity attributes I see only this: device_id: 10000bb678 power: '17' rssi: -67 friendly_name: NAS

How can I access the voltage and current?

peterbuga commented 4 years ago

according to this older issue https://github.com/peterbuga/HASS-sonoff-ewelink/issues/14 and the provided dump, the sonoff POW (compared to POW R2) exposes ONLY the power value. in other words, if you cannot see them in the eWeLink app you cannot get them in HA - voltage & current (you can also check the differences in POW vs POW R2 in sonoff features description pages)

please confirm and close this issue.

KixMan28 commented 4 years ago

OK. Thank you for your reply. I am closing the issue.