Hello all,
I have an automation that receives MQTT messages coming from DOMOTICZ and parse them into homeassistant call
- alias: DZ input
initial_state: true
trigger:
- platform: mqtt
topic: 'domoticz/out'
condition:
condition: template
value_template: '{{ trigger.payload_json.dtype == "Light/Switch" }}'
action:
- service: mqtt.publish
data_template:
topic: 'home/switch/{{ trigger.payload_json.id }}/state'
payload_template: '{% if trigger.payload_json.nvalue == 1 %} On {% else %} Off {% endif %}'
I noticed that if mosquitto receives 2 mqtt messages very close (maybe I use the physical SWITCH ALL OFF button @home) the automation is triggered only once, missing few events
How can i solve it?
Thank you