Open martin31821 opened 2 weeks ago
If you already have a MQTT broker you might as well have a Home Assistant - more complex rules should go there with elaborate long term logging capabilities...
I do agree with you on the long term logging, although I have mine running in grafana/prometheus/mimir.
I was thinking to run more logic directly on device in order to have a sane fallback in case any of the more complex rules fails, thus also the handling of MQTT#lost
.
I'd like to propose an addition to the rule engine in heishamon, namely the possibility to subscribe to MQTT topics and run rules when a message is received on the topic, as well as the possibility to react to connection lost/reconnection events.
Possible usecases might be:
I'm imagining a rule like this:
What do you think of such an extension?