Hi everybody!
Lately I’m having strange problems: HA doesn’t react on MQTT mesages (and so it doesn’t see some devices) for some times, then it does again, randomly.
For example I’ve this automation:
alias: pulsante 6x cucina luce cucina
description: ""
triggers:
- domain: mqtt
device_id: 787de1b1a9130a4273130742fde97ba5
type: action
subtype: button_1_single
trigger: device
conditions: []
actions:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.piantana_cucina
mode: single
That works when it receives:
{"action":"button_6_single","battery":100,"linkquality":69,"operation_mode":null,"power_outage_count":271,"voltage":3156}
but this automation:
alias: pulsante 6x cucina luce cucina
description: ""
triggers:
- domain: mqtt
device_id: 787de1b1a9130a4273130742fde97ba5
type: action
subtype: button_1_single
trigger: device
conditions: []
actions:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.piantana_cucina
mode: single
doesn’t work when it receives this message:
{"action":"button_1_single","battery":100,"linkquality":63,"operation_mode":null,"power_outage_count":271,"voltage":3156}
I mean that it’s not fired
How’s that possible?
And it doesn’t work now, tonight or tomorrow it’ll may do.
This happens with all the other MQTT devices.
I’ve subscribed to some topics in the HA terminal and I see all the messages, but HA seems to ignore them.
What’s going on?
Thanks!