Hi there, thanks for your time.
I’m trying to reduce the amount of controllers used by automating the home theater through the nvidia shield controller. I’ve managed to properly power on the shield->AVR->projector->projector screen (down) and return everything to their off state when the shield is off, but I’m left with an inconvenience when the shield idles for a bit: the automation runs when the shield leaves the idle state (only way the automation triggers when the shield is active - “on” state doesn’t work since the shield appears to idle in a sleepy state instead of powering off) and as a result the projector screen lowers past the “tv” set.
I’ve been trying to create a condition where the automation runs only if the “off” automation has run first with no luck.
I hope I’m making sense - any ideas on how I might solve this / make it simpler are much appreciated!
Automations:
alias: Projector screen Down when Shield On - Projector On
description: ''
trigger:
- platform: state
entity_id:
- media_player.living_room_nvidia_shield
to: 'On'
for:
hours: 0
minutes: 0
seconds: 0
- platform: device
device_id: redacted
domain: media_player
entity_id: media_player.living_room_nvidia_shield
type: turned_on
- platform: device
device_id: redacted
domain: media_player
entity_id: media_player.living_room_nvidia_shield
type: idle
condition: []
action:
- service: remote.send_command
data:
device: avr
command: 'On'
target:
device_id: redacted
- service: remote.send_command
data:
device: Projector
command: 'On'
target:
device_id: redacted
- service: remote.send_command
data:
device: projector_screen
command: Down
target:
device_id: redacted
- delay:
hours: 0
minutes: 0
seconds: 26
milliseconds: 700
- service: remote.send_command
data:
device: projector_screen
command: Stop
target:
device_id: redacted
mode: single
To turn things off:
alias: Projector screen Up when Shield off - Projector Off
description: ''
trigger:
- platform: state
entity_id: media_player.living_room_nvidia_shield
to: 'off'
condition: []
action:
- service: remote.send_command
data:
device: projector_screen
command: Up
target:
device_id: redacted
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: remote.send_command
data:
device: Projector
command: 'Off'
num_repeats: 2
delay_secs: 1
target:
device_id: redacted
mode: single