@KTIbow what state do I set the Chromecast to trigger on, is it playing
?
Here is the automation, I had to pick a service to save it so I just picked harmony.sync
- id: '1596492625365'
alias: Turn on Office Receiver when Casting to Office Speakers
description: ''
trigger:
- entity_id: media_player.office_speakers
platform: state
condition: []
action:
- data: {}
service: harmony.sync
mode: single
In the config directory is a config generated by the Harmony Hub integration /config/harmony_16562131.conf
and the receiver I’m targeting for this automation is Office Receiver
(there are other receivers too but I’ve removed them to keep the post short):
{
"Activities": {
"-1": "PowerOff",
"45303800": "Watch TV"
},
"Devices": {
"Office Receiver": {
"commands": [
"PowerToggle",
"Mute",
"VolumeDown",
"VolumeUp",
"DirectionDown",
"DirectionLeft",
"DirectionRight",
"DirectionUp",
"Select",
"Stop",
"Play",
"Rewind",
"Pause",
"FastForward",
"SkipBack",
"SkipForward",
"Return",
"Back",
"PresetPrev",
"TuneDown",
"TuneUp",
"PresetNext",
"Sleep",
"Display",
"AmpMenu",
"BassDown",
"BassUp",
"BTPairing",
"Dimmer",
"Input1",
"Input2",
"Input3",
"Input4",
"InputBluetooth",
"InputFm",
"InputPhono",
"InputPortableIn",
"Memory",
"PureDirect",
"SpeakersAB",
"TrebleDown",
"TrebleUp",
"TunerPreset1",
"TunerPreset2",
"TunerPreset3"
],
"id": "70709580"
}
}
}