Hey All
I have my bot setup and working but my automation when triggered with telegram does a “flip flop”
I have 2 commands setup /sitkamer & /mqtt.
If send /sitkamer (state on) the mqtt light turns on and /sitkamer goes off
Not sure what I’m missing
Automation yaml snip**
- id: ‘1529589114848’
alias: Sit kamer Light A
trigger:- event_data:
message: /sitkamer
event_type: telegram_command
platform: event
condition: []
action: - entity_id: light.sitkamer
service: light.toggle
- event_data:
- id: ‘1529594024902’
alias: Mqtt Light Test A
trigger:- event_data:
message: /mqtt
event_type: telegram_command
platform: event
condition: []
action: - entity_id: switch.sonoff_switch01
service: switch.toggle
- event_data:
Telegram results***
/sitkamer@hassbot
Mans-Huis Mqtt is currently turned on
Sit Kamer is currently turned off
/sitkamer@hassbot
Mans-Huis Sit Kamer is currently turned on
Mqtt is currently turned off
Thanks ALL