Intro
Alexxit Home Assistant add-on makes it possible to get Sonoff stats without flashing Tasmota. This is done by using a second Ewelink account. We will use the Sonoff PowR2 in this tutorial but it will be the same for any Sonoff Pow device.
Cloud Only Mode
If your Sonoff Pow2 just stops getting data, make sure you are using cloud only mode. My IOT devices are on a separate VLAN and seems it stops gathering data after a while.
Alexxit Github Project
https://github.com/AlexxIT/SonoffLAN#local-and-cloud-mode
Home Assistant Configuration
sonoff:
username: xxxx
password: xxxx
force_update: [power]
#scan_interval: '02:00:00' # (optional) default 5 minutes
sensors: [power, current, voltage]
mode: cloud
reload: always
devices:
10013xxxx:
reporting:
power: [60, 3600, 1] # min seconds, max seconds, min delta value
current: [60, 3600, 1]
voltage: [60, 3600, 1]
10013xxxx:
reporting:
power: [60, 3600, 1] # min seconds, max seconds, min delta value
current: [60, 3600, 1]
voltage: [60, 3600, 1]
10013xxxx:
reporting:
power: [60, 3600, 1] # min seconds, max seconds, min delta value
current: [60, 3600, 1]
voltage: [60, 3600, 1]
10013xxxx:
reporting:
power: [60, 3600, 1] # min seconds, max seconds, min delta value
current: [60, 3600, 1]
voltage: [60, 3600, 1]