Hi,
I am new to home-assistant and loving it greatly. Got my devices set up and wanted to start creating automations. So I created an automation to turn on the stereo via an Harmony hub when the Google (audio)cast starts playing, the yaml for this is as follows:
alias: 'Turn on stereo when audio starts playing'
description: ''
trigger:
- platform: state
entity_id: media_player.sleepingroom_audio
from: 'off'
to: playing
condition: []
action:
- type: turn_on
device_id: 01f497fa794a14d919e4d714bc20307e
entity_id: switch.hub_sleepingroom_music
domain: switch
mode: single
But somehow this automation doesn’t work. What am i missing?
I created the automation using the UI and the ‘’ at off are placed there automatically.
Thanks in advance,
André