Hi Folks,
Hopefully a quick question for the smarter people than me.
I have a seemingly simple automation I’d like to run as follows:
If someone plays the XBOX (and is signed into XBOX Live), the appropriate Amp input is selected, and it’s at least an hour before sunset run a script (set mood lighting)…
Can’t seem to trigger the automation…
I can confirm the script works when manually triggered.
I can confirm the Value_Template is True when the input is on the Amp - tested via Developer Tools…
I can see that the XBox is signed in / Online - the API’s work okay it seems.
- id: 'SOMENUMBER'
alias: GameModeON
description: ''
trigger:
- platform: template
value_template: '{{ states.media_player.denonavr.attributes.source == ''Game''
}}'
for:
minutes: 1
condition:
- after: sunset
after_offset: -01:00
condition: sun
- condition: state
entity_id: sensor.SOMEXBOXIDHERE
state: Online
action:
- data:
entity_id: '1566105798599'
service: script.turn_on
I’ve tried calling the script via it’s alias - no difference.
Can share the script if needed.
Scratching my head…
Any clues?