This keeps happening:
391.209 is very clearly higher than 0.001, and yet the automation just stops here. Almost, but not quite, every time.
actions:
- if:
- condition: or
conditions:
- condition: template
value_template: '{{ trigger.json.Item.MediaStreams[0].ColorPrimaries == ''bt2020'' }}'
- condition: template
value_template: '{{ trigger.json.Item.Video3DFormat == "MVC" }}'
then:
- action: media_player.media_stop
metadata: {}
data: {}
target:
entity_id: media_player.emby_shield_standard
- device_id: d7d7547ded358a9a1b303741e188b6a9
domain: select
entity_id: 0a5af3b6dddfddb6def5c21589ee014e
type: select_option
option: UGOOS
enabled: true
else:
- wait_for_trigger:
- trigger: numeric_state
entity_id:
- media_player.emby_shield_standard
attribute: media_position
above: 0.001
continue_on_timeout: false
enabled: true
- if:
- condition: template
value_template: >-
{{ trigger.json.Item.MediaStreams[1].DisplayTitle is
search('DTS:X|Atmos') }}
then:
- action: denonavr.get_command
metadata: {}
data:
command: /goform/formiPhoneAppDirect.xml?SPPR2<CR>
target:
entity_id: media_player.denon_avc_x3800h
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.theater
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.ignore_light_commands
- action: media_player.media_pause
metadata: {}
data: {}
target:
entity_id: media_player.emby_shield_standard
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: media_player.media_play
metadata: {}
data: {}
enabled: true
target:
entity_id: media_player.emby_shield_standard
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.ignore_light_commands
- action: input_select.select_option
metadata: {}
data:
option: '{{ "AR " ~ trigger.json.PlaybackInfo.MediaSource.Path[-8:-4] }}'
target:
entity_id: input_select.aspect_ratio