To create my 1st automation on a SonoffSV device using Tasmota to announce when garage door moves is:
- id: garage_door alias: garage movement trigger: - entity_id: mqtt topic: 'stat/GarageDoor/POWER' from: ON platform: state to: OFF condition:  action: - service: notify.alexa_media data: target: - media_player.garage_dot - media_player.computer_room_dot message: Attention. Garage door moving. data: type: tts mode: single
I get error below in Log viewer when I use CONFIGURATION -> AUTOMATIONS -> EXECUTE to test it. I think its due to the TRIGGER portion because if I substitute portion below at very bottom it seems to works ok.
File “/usr/src/homeassistant/homeassistant/components/notify/init.py”, line 149, in _async_notify_message_service
File “/config/custom_components/alexa_media/notify.py”, line 195, in async_send_message
for target in targets:
TypeError: ‘NoneType’ object is not iterable
trigger: - entity_id: cover.garagedoor from: OFF platform: state to: ON
Any clue on where I went wrong?