Hello !
I’ve just installed HomeAssistant at home on a small RPi4 with docker, I have a Zigbee key connected to it.
I wanted to create an automation by notifying me with the HomeAssistant application when the socket runs out of power.
But when I disconnect the Smart Plug, HomeAssistant stays on the last data received and for it the Smart Plug is still powered.
Isn’t there a TimeOut that defines that the plug is powered down?
If you are lucky your ZigBee devices supports a “availability topic” to show the connect state. In this case you will not see the last value but a “unavailable” instead.
But from my experience with ZigBee it’s not possible to have that “real time” - it will only be detected with a delay when a ZigBee device drops (probably because it only polls in intervals).
If you need something real time I suggest devices with esphome (WiFi) because they support push with the native api.
Thanks for your reply.
I’m looking around for information on the product but there isn’t really a manufacturer, it’s noname. The only ref. I have is TS0121_plug (Amazon.fr)
Do you have a brand of plug to recommend or a reference?
I’d like to buy 10 plugs for my house, this one was for testing.
thanks in advance
I’ve tested ZHA, I don’t think it’s great, I’m currently testing Zigbee2mqtt with the MQTT broker, all in docker.
But it says “availability” disabled.
I’m still looking, I think it’s a shame that there isn’t some sort of default timeout and if the zigbee protocol doesn’t give any more info, then it considers the socket to be switched off.
Edit : I just found out how to set the “availability” on zigbee2mqtt, I set a timeout on the “configuration.yaml” file (I didn’t know about this modification), and on the zigbee2mqtt it correctly displays “online” or “offline”.
Now I need to figure out how to display this in HomeAssistant I’ll look for that.