saving work from the last months
This commit is contained in:
@ -3,17 +3,21 @@ script:
|
||||
sequence:
|
||||
- service: media_player.turn_on
|
||||
target:
|
||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||
- delay:
|
||||
seconds: 30
|
||||
- service: media_player.select_source
|
||||
data:
|
||||
source: HEOS Music
|
||||
target:
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
- delay:
|
||||
seconds: 2
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.3
|
||||
target:
|
||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
- service: remote.send_command
|
||||
target:
|
||||
device_id: 13079d62ad53d8991b26238c5594adca
|
||||
@ -42,7 +46,32 @@ script:
|
||||
data:
|
||||
device: "78200006"
|
||||
command: InputHdmi1
|
||||
|
||||
|
||||
denon_play_steam:
|
||||
sequence:
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.tv_turn_on
|
||||
- service: remote.send_command
|
||||
target:
|
||||
device_id: media_player.denon_avr_x1600h
|
||||
data:
|
||||
device: "78200006"
|
||||
command: InputHdmi2
|
||||
- service: media_player.turn_on
|
||||
target:
|
||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||
- delay:
|
||||
seconds: 5
|
||||
- service: media_player.select_source
|
||||
data:
|
||||
source: Steam Link
|
||||
target:
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.45
|
||||
|
||||
denon_tv_turn_off:
|
||||
sequence:
|
||||
- service: media_player.turn_off
|
||||
|
@ -37,8 +37,10 @@ script:
|
||||
source: Fire TV Stick
|
||||
target:
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
- delay:
|
||||
seconds: 2
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
target:
|
||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||
entity_id: media_player.denon_avr_x1600h
|
@ -5,7 +5,7 @@ script:
|
||||
target:
|
||||
entity_id: light.livingroom_switch_tv
|
||||
- delay:
|
||||
seconds: 5
|
||||
seconds: 15
|
||||
- service: remote.send_command
|
||||
target:
|
||||
device_id: 13079d62ad53d8991b26238c5594adca
|
||||
|
@ -13,6 +13,20 @@ script:
|
||||
data_template:
|
||||
volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float - 0.05 }}"
|
||||
|
||||
denon_volume_up_1:
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
data_template:
|
||||
volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float + 0.01 }}"
|
||||
|
||||
denon_volume_down_1:
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.denon_avr_x1600h
|
||||
data_template:
|
||||
volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float - 0.01 }}"
|
||||
|
||||
denon_volume_video:
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
|
@ -53,4 +53,5 @@ automation:
|
||||
entity_id: light.office_bulb
|
||||
data:
|
||||
color_temp: 255
|
||||
brightness: 255
|
||||
brightness: 255
|
||||
|
||||
|
@ -26,13 +26,6 @@ automation:
|
||||
domain: binary_sensor
|
||||
platform: device
|
||||
type: no_motion
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: sun
|
||||
before: sunrise
|
||||
- condition: sun
|
||||
after: sunset
|
||||
action:
|
||||
- type: turn_off
|
||||
device_id: a1865e6541efc7167ba2b21c6e005147
|
||||
|
68
packages/living_room_remote/remote.yaml
Executable file
68
packages/living_room_remote/remote.yaml
Executable file
@ -0,0 +1,68 @@
|
||||
automation:
|
||||
# Living Room button turn light on
|
||||
- alias: living_room_light_button_turn_on
|
||||
trigger:
|
||||
- device_id: 86384e5da7e890f4a7a84d186383d1c1
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: turn_on
|
||||
action:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.living_room_lights
|
||||
|
||||
# Living Room button turn light off
|
||||
- alias: living_room_light_button_turn_off
|
||||
trigger:
|
||||
- device_id: 86384e5da7e890f4a7a84d186383d1c1
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: turn_off
|
||||
action:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.living_room_lights
|
||||
|
||||
# Living Room button Netflix
|
||||
- alias: living_room_light_button_tv
|
||||
trigger:
|
||||
- device_id: 86384e5da7e890f4a7a84d186383d1c1
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: left
|
||||
action:
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.netflix_and_chill
|
||||
|
||||
# Living Room button Spotify
|
||||
- alias: living_room_light_button_music
|
||||
trigger:
|
||||
- device_id: 86384e5da7e890f4a7a84d186383d1c1
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: right
|
||||
action:
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.denon_listen_music
|
||||
|
||||
# Living Room button Spotify
|
||||
- alias: living_room_turn_off_everything
|
||||
trigger:
|
||||
- device_id: 86384e5da7e890f4a7a84d186383d1c1
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_long_release
|
||||
subtype: dim_down
|
||||
action:
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.denon_tv_turn_off
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.living_room_lights
|
@ -1,5 +1,6 @@
|
||||
automation:
|
||||
- alias: mailbox_mail_received
|
||||
- id: mailbox_mail_received
|
||||
alias: mailbox_mail_received
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: ca819ab69f4c9e16861daf8ffacdd10e
|
||||
|
@ -19,8 +19,3 @@ automation:
|
||||
device_id: 343b205f3ed48a715e59c5490050150f
|
||||
entity_id: light.office_switch_socket
|
||||
domain: light
|
||||
- delay:
|
||||
seconds: 15
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.tower
|
||||
|
Reference in New Issue
Block a user