I’m having a hard time finding a Zigbee outlet (120VAC/60Hz, 15A) that provides energy usage data and has configurable power-loss/power-on behavior using the ZHA integration. I’ve currently got some SONOFF S31 LiteAqara Smart Plug outlets which provide energy usage data, but I can’t find a way to program them to turn on when power is lost/restored. I am using an automation for some of the outlets to automatically turn them on when they appear as off in HA, but there is a chicken-and-the-egg problem with some of the outlets (e.g. controlling the power to network switches, HA power supply, etc.).
Any pointers to different switches or instructions on how to change the default power-loss/power-on behavior of the SONOFF outlets is welcome.
Do you own them already? Then it’s just a setting, for example with ESPHome switch
restore_mode (Optional): Control how the switch attempts to restore state on bootup. NOTE : Not all components consider restore_mode. Check the documentation of the specific component to understand how this feature works for a particular component or device. For restoring on ESP8266s, also see restore_from_flash in the esp8266 section.
RESTORE_DEFAULT_OFF - Attempt to restore state and default to OFF if not possible to restore.
RESTORE_DEFAULT_ON - Attempt to restore state and default to ON.
RESTORE_INVERTED_DEFAULT_OFF - Attempt to restore state inverted from the previous state and default to OFF.
RESTORE_INVERTED_DEFAULT_ON - Attempt to restore state inverted from the previous state and default to ON.
ALWAYS_OFF (Default) - Always initialize the switch as OFF on bootup.
ALWAYS_ON - Always initialize the switch as ON on bootup.
DISABLED - Does nothing and leaves it up to the downstream platform component to decide. For example, the component could read hardware and determine the state, or have a specific configuration option to regulate initial state.
Unless a specific platform defines another default value, the default is ALWAYS_OFF.
Just own them completely (full control over hard- and software) and not just pay for the hardware
My apologies, I have two different kinds of Zigbee outlets, and I mistakenly wrote the wrong one in the original question above; it is the Aqara Smart Plugs which have the energy monitoring, not my SONOFF outlets.
I appreciate the pointer to ESPHome as a possible solution, but I would prefer to not have to reflash the firmware on the outlet.
Since posting this question, I’ve learned that THIRDREALITY makes a Zigbee outlet that appears to be well supported by ZHA so I’ve ordered one to give that a try.
Did you get the new plugs?
I’m also looking for a zigbee plug with power measurement and configurable power-on behavior.
(Either EU wall plugs, or schuko ones )
Thanks!
on the blackadder site, i can only find the “memory” feature on the old aqara chinese plug. I suppose memory is the feature we are looking for. Has anyon tried it?
I’m not sure if that was directed at me or not, but I’ve been running the THIRDREALITY plugs for a while now with HA ZHA and the energy monitoring and power-on behavior is all working as expected.