My setup: HA with a temperature sensor using ESPhome. I have a automation which publishes to Domoticz. Sometimes the sensor is unavailable because of Wifi interference and the Domoticz recieves a “0”. This messes up my graphs in Domoticz, which I have to remove by hand.
What to do? (And I know better Wifi is also a solution, but it is in my backyard which is pretty tricky).
The YAML config of the automation:
alias: Publiceer vijvertemperatuur MQTT
description: ""
trigger:
- platform: time_pattern
seconds: "20"
condition: []
action:
- service: mqtt.publish
metadata: {}
data:
qos: "0"
retain: true
topic: domoticz/in
payload_template: >-
{ "command": "udevice", "idx": 108, "nvalue": 0, "svalue": "{{
states('sensor.vijver_temperatuur') }}"}
mode: single
Any thoughts?