I have a sonoff bridge installed, which occasionally crashes and goes out of service and causes all paired devices to crash, I want to know if when I receive the error report it can trigger an automation, such as turning a device on or off.
I assume you have defined MQTT Sensor that receive data from the Sonoff RF Bridge. Do they report a status of unavailable
when the Bridge fails?
Have you configured the sensors to use availability_topic?
Hola que tal, No, yo instale el repositorio para sonoff de alexxlan y mi sonoff bridge con un par de rele rf y unos pir de sonoff, todo funciona bien hasta que se bloquea el sonoff bridge y HA me manda un mensaje de advertencia de que no pudo mandar ni recibir mensajes del dispositivo, la unica solución es apagar y prender el sonoff brige para que se vuelva a conectar a la red, por eso quiero saber si ese registro de advertencia puede desencadenar una automatización y de esta manera mandar una orden via Wi-Fi a un dispostivo que apague y prenda el sonoff brige para reestablecer el sistema
I have no idea what that is and I can’t find it with Google. Can you explain what it does (in English)?
He talks about the custom component for sonoff-lan. So he did not flash his bridge with tasmota or openmqttgateway and does not use mqtt. I think he better ask in the sonoff-lan topic.
Look under developer options -> states and see if it changes state to unavailable, then you can use that as a trigger.
Alternatively can you use a ping sensor? does it still respond to pings after it crashes?
Hello, thanks for answering, unfortunately the sonoff bridge device never changes its state, that is, it always appears in off although it is working, on the other hand I put a fixed IP in the router and I ping it and it continues to return signal but in the app is listed as offline
Figures, since it has no relay it can on/off. Might be difficult to detect when the component don’t react.
Yes, I thank so
I think