This is driving me nuts for 2 days now, i have a sonoff mini attached to a dumb wall switch controlling a zigbee device, the mqtt message received on click is :
Message 301 received on stat/tasmota_119B99/RESULT at 2:59 AM:
{
"Switch1": {
"Action": "TOGGLE"
}
}
This is the automation i am trying to achieve. Button press - > toggle light, it however doesnt work, please assist.
alias: veidrodis
description: ''
trigger:
- platform: mqtt
topic: "stat/tasmota_119B99/RESULT"
condition:
- condition: template
value_template: '{{ trigger.payload_json['Switch1']['Action'] == TOGGLE }}'
action:
- service: light.toggle
target:
entity_id:
- light.0x00124b001f6a03f9
mode: single