Hi,
I have set up 2 scripts in HA, that work when executed directly from HA to start and stop TV.
alias: Turn_On_TV
sequence:
- service: remote.turn_on
data:
activity: Watch TV
target:
entity_id: remote.harmony_hub
mode: single
icon: mdi:television
alias: Turn_Off_TV
sequence:
- service: remote.turn_off
data: {}
target:
entity_id: remote.harmony_hub
mode: single
icon: mdi:television
When I ask Alexa to start TV it works but when I ask Alexa to turn it off, the Turn_Off_TV script is not getting called.
In the logbook, it seems like asking Alexa to turn off the TV is only deactivating the Turn_On_TV scene but not calling the second scriptâŚ
This is what I see in the logbook:
[I ask Alexa to turn on TV]
Amazon Alexa sent command Alexa.SceneController/Activate for Turn_On_TV triggered by service script.turn_on
Turn_On_TV started triggered by service script.turn_on
Turn_On_TV turned on triggered by service script.turn_on
Harmony Hub Activites changed to Watch TV
Harmony Hub turned on triggered by service script.turn_on
[I ask Alexa to turn off the TV]
Turn_On_TV turned off
Any clues on how to get Alexa to run the Turn_Off_TV script when I ask it?