Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Turn On TV In The Morning Weekend
- description: ""
- triggers:
- - entity_id:
- - binary_sensor.wake_up_house
- to: "on"
- trigger: state
- enabled: true
- conditions:
- - condition: state
- entity_id: media_player.living_room_tv
- state: "off"
- enabled: true
- actions:
- - data: {}
- target:
- entity_id: media_player.nvidia_living_room
- action: media_player.turn_on
- enabled: true
- - wait_template: "{{ is_state('media_player.living_room_tv', 'on') }}"
- continue_on_timeout: false
- - data:
- volume_level: 0.14
- target:
- entity_id: media_player.living_room_tv
- action: media_player.volume_set
- - metadata: {}
- action: androidtv.adb_command
- data:
- command: >-
- am start -a android.intent.action.VIEW -d
- https://www.discoveryplus.com/my-list
- target:
- entity_id: media_player.nvidia_living_room
- - wait_template: >-
- {{ state_attr('media_player.nvidia_living_room', 'source') | contains
- ('Discovery +') }}
- continue_on_timeout: true
- - delay:
- hours: 0
- minutes: 0
- seconds: 1
- milliseconds: 0
- - action: remote.send_command
- metadata: {}
- data:
- num_repeats: "{{ range(0,13) | random }}"
- delay_secs: 0.4
- hold_secs: 0
- command: DPAD_DOWN
- target:
- entity_id: remote.nvidia_living_room
- - delay:
- hours: 0
- minutes: 0
- seconds: 1
- milliseconds: 0
- - action: remote.send_command
- metadata: {}
- data:
- num_repeats: "{{ range(0,5) | random }}"
- delay_secs: 0.4
- hold_secs: 0
- command: DPAD_RIGHT
- target:
- entity_id: remote.nvidia_living_room
- - delay:
- hours: 0
- minutes: 0
- seconds: 1
- milliseconds: 0
- - action: remote.send_command
- metadata: {}
Advertisement
Add Comment
Please, Sign In to add comment