saving work from the last months
This commit is contained in:
parent
962b6fa4fe
commit
2bfa07019e
@ -4,20 +4,20 @@
|
|||||||
label: Control
|
label: Control
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
cards:
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
color: rgb(229,9,20)
|
color: rgb(229,9,20)
|
||||||
icon: "mdi:netflix"
|
icon: "mdi:netflix"
|
||||||
size: 20%
|
size: 10%
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: script.netflix_and_chill
|
entity_id: script.netflix_and_chill
|
||||||
name: Netflix
|
name: Netflix
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
color: rgb(30,215,96)
|
color: rgb(30,215,96)
|
||||||
@ -29,6 +29,21 @@
|
|||||||
service_data:
|
service_data:
|
||||||
entity_id: script.denon_listen_music
|
entity_id: script.denon_listen_music
|
||||||
name: Spotify
|
name: Spotify
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
color_type: icon
|
||||||
|
color: rgb(51, 102, 255)
|
||||||
|
icon: "mdi:disc-player"
|
||||||
|
size: 20%
|
||||||
|
#tap_action:
|
||||||
|
# action: call-service
|
||||||
|
# service: script.turn_on
|
||||||
|
# service_data:
|
||||||
|
# entity_id: script.denon_listen_music
|
||||||
|
name: Blueray
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
template: card_title
|
||||||
|
name: Game
|
||||||
|
label: Control
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
@ -47,31 +62,22 @@
|
|||||||
name: Nintendo Switch
|
name: Nintendo Switch
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
color: rgb(51, 102, 255)
|
color: rgb(0,173,238)
|
||||||
icon: "mdi:disc-player"
|
icon: "mdi:steam"
|
||||||
size: 20%
|
size: 20%
|
||||||
#tap_action:
|
tap_action:
|
||||||
# action: call-service
|
action: call-service
|
||||||
# service: script.turn_on
|
service: script.turn_on
|
||||||
# service_data:
|
service_data:
|
||||||
# entity_id: script.denon_listen_music
|
entity_id: script.denon_play_steam
|
||||||
name: Blueray
|
name: Steam Link
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: 'custom:button-card'
|
|
||||||
color_type: icon
|
|
||||||
color: rgb(0,173,238)
|
|
||||||
icon: "mdi:steam"
|
|
||||||
size: 20%
|
|
||||||
# tap_action:
|
|
||||||
# action: call-service
|
|
||||||
# service: script.turn_on
|
|
||||||
# service_data:
|
|
||||||
# entity_id: script.netflix_and_chill
|
|
||||||
name: Steam Link
|
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
color: rgb(144,138,153)
|
color: rgb(144,138,153)
|
||||||
@ -83,15 +89,15 @@
|
|||||||
# service_data:
|
# service_data:
|
||||||
# entity_id: script.denon_listen_music
|
# entity_id: script.denon_listen_music
|
||||||
name: Super NT
|
name: Super NT
|
||||||
|
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
color: rgb(41, 61, 61)
|
#color: rgb(229,9,20)
|
||||||
icon: "mdi:television-off"
|
icon: "mdi:gamepad-circle"
|
||||||
size: 10%
|
size: 20%
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: script.denon_tv_turn_off
|
entity_id: script.denon_play_switch
|
||||||
name: Turn Off
|
name: Game
|
||||||
|
|
@ -1,33 +1,22 @@
|
|||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
template: card_title
|
template: card_title
|
||||||
name: Volume
|
name: Volume Control
|
||||||
label: Control
|
label: Denon
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
icon: "mdi:volume-minus"
|
icon: "mdi:volume-minus"
|
||||||
size: 20%
|
size: 15%
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: script.denon_volume_down
|
entity_id: script.denon_volume_down
|
||||||
name: Down by 5
|
name: Down by 5
|
||||||
- type: 'custom:button-card'
|
|
||||||
color_type: icon
|
|
||||||
color: rgb(255,0,0)
|
|
||||||
icon: "mdi:volume-mute"
|
|
||||||
size: 20%
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.turn_on
|
|
||||||
service_data:
|
|
||||||
entity_id: script.denon_volume_mute
|
|
||||||
name: Mute
|
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
icon: "mdi:volume-plus"
|
icon: "mdi:volume-plus"
|
||||||
size: 20%
|
size: 15%
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
@ -35,8 +24,30 @@
|
|||||||
entity_id: script.denon_volume_up
|
entity_id: script.denon_volume_up
|
||||||
name: Up by 5
|
name: Up by 5
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
icon: "mdi:volume-minus"
|
||||||
|
size: 15%
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.turn_on
|
||||||
|
service_data:
|
||||||
|
entity_id: script.denon_volume_down_1
|
||||||
|
name: Down by 1
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
icon: "mdi:volume-plus"
|
||||||
|
size: 15%
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.turn_on
|
||||||
|
service_data:
|
||||||
|
entity_id: script.denon_volume_up_1
|
||||||
|
name: Up by 1
|
||||||
|
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
template: card_title
|
template: card_title
|
||||||
|
name: Denon Volume
|
||||||
label: Presets
|
label: Presets
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
@ -50,10 +61,10 @@
|
|||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: script.denon_volume_video
|
entity_id: script.denon_volume_video
|
||||||
name: TV Volume
|
name: Streaming Volume
|
||||||
- type: 'custom:button-card'
|
- type: 'custom:button-card'
|
||||||
color_type: icon
|
color_type: icon
|
||||||
icon: "mdi:bookmark-music-outline"
|
icon: "mdi:music-circle-outline"
|
||||||
size: 15%
|
size: 15%
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
@ -61,3 +72,32 @@
|
|||||||
service_data:
|
service_data:
|
||||||
entity_id: script.denon_volume_music
|
entity_id: script.denon_volume_music
|
||||||
name: Music Volume
|
name: Music Volume
|
||||||
|
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
template: card_title
|
||||||
|
name: Mute and Turn off
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
color_type: icon
|
||||||
|
color: rgb(255,0,0)
|
||||||
|
icon: "mdi:volume-mute"
|
||||||
|
size: 20%
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.turn_on
|
||||||
|
service_data:
|
||||||
|
entity_id: script.denon_volume_mute
|
||||||
|
name: Mute
|
||||||
|
- type: 'custom:button-card'
|
||||||
|
color_type: icon
|
||||||
|
color: rgb(41, 61, 61)
|
||||||
|
icon: "mdi:television-off"
|
||||||
|
size: 20%
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.turn_on
|
||||||
|
service_data:
|
||||||
|
entity_id: script.denon_tv_turn_off
|
||||||
|
name: Turn Off
|
@ -4,16 +4,20 @@ script:
|
|||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
target:
|
target:
|
||||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
||||||
|
- delay:
|
||||||
|
seconds: 30
|
||||||
- service: media_player.select_source
|
- service: media_player.select_source
|
||||||
data:
|
data:
|
||||||
source: HEOS Music
|
source: HEOS Music
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.denon_avr_x1600h
|
entity_id: media_player.denon_avr_x1600h
|
||||||
|
- delay:
|
||||||
|
seconds: 2
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data:
|
data:
|
||||||
volume_level: 0.3
|
volume_level: 0.3
|
||||||
target:
|
target:
|
||||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
entity_id: media_player.denon_avr_x1600h
|
||||||
- service: remote.send_command
|
- service: remote.send_command
|
||||||
target:
|
target:
|
||||||
device_id: 13079d62ad53d8991b26238c5594adca
|
device_id: 13079d62ad53d8991b26238c5594adca
|
||||||
@ -43,6 +47,31 @@ script:
|
|||||||
device: "78200006"
|
device: "78200006"
|
||||||
command: InputHdmi1
|
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:
|
denon_tv_turn_off:
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
|
@ -37,8 +37,10 @@ script:
|
|||||||
source: Fire TV Stick
|
source: Fire TV Stick
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.denon_avr_x1600h
|
entity_id: media_player.denon_avr_x1600h
|
||||||
|
- delay:
|
||||||
|
seconds: 2
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data:
|
data:
|
||||||
volume_level: 0.5
|
volume_level: 0.5
|
||||||
target:
|
target:
|
||||||
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
entity_id: media_player.denon_avr_x1600h
|
@ -5,7 +5,7 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: light.livingroom_switch_tv
|
entity_id: light.livingroom_switch_tv
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 5
|
seconds: 15
|
||||||
- service: remote.send_command
|
- service: remote.send_command
|
||||||
target:
|
target:
|
||||||
device_id: 13079d62ad53d8991b26238c5594adca
|
device_id: 13079d62ad53d8991b26238c5594adca
|
||||||
|
@ -13,6 +13,20 @@ script:
|
|||||||
data_template:
|
data_template:
|
||||||
volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float - 0.05 }}"
|
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:
|
denon_volume_video:
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
|
@ -54,3 +54,4 @@ automation:
|
|||||||
data:
|
data:
|
||||||
color_temp: 255
|
color_temp: 255
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
|
||||||
|
@ -26,13 +26,6 @@ automation:
|
|||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
platform: device
|
platform: device
|
||||||
type: no_motion
|
type: no_motion
|
||||||
condition:
|
|
||||||
condition: or
|
|
||||||
conditions:
|
|
||||||
- condition: sun
|
|
||||||
before: sunrise
|
|
||||||
- condition: sun
|
|
||||||
after: sunset
|
|
||||||
action:
|
action:
|
||||||
- type: turn_off
|
- type: turn_off
|
||||||
device_id: a1865e6541efc7167ba2b21c6e005147
|
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:
|
automation:
|
||||||
- alias: mailbox_mail_received
|
- id: mailbox_mail_received
|
||||||
|
alias: mailbox_mail_received
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: ca819ab69f4c9e16861daf8ffacdd10e
|
- device_id: ca819ab69f4c9e16861daf8ffacdd10e
|
||||||
|
@ -19,8 +19,3 @@ automation:
|
|||||||
device_id: 343b205f3ed48a715e59c5490050150f
|
device_id: 343b205f3ed48a715e59c5490050150f
|
||||||
entity_id: light.office_switch_socket
|
entity_id: light.office_switch_socket
|
||||||
domain: light
|
domain: light
|
||||||
- delay:
|
|
||||||
seconds: 15
|
|
||||||
- service: switch.turn_on
|
|
||||||
target:
|
|
||||||
entity_id: switch.tower
|
|
||||||
|
Loading…
Reference in New Issue
Block a user