Bedroom automation changes
Change sleep/wakeup automation button to be held Disable bedroom light when tv is on Add bedroom bet tv scene
This commit is contained in:
parent
ba929d37ee
commit
48edc10df4
@ -15,8 +15,8 @@
|
||||
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: turn_on
|
||||
type: remote_button_long_press
|
||||
subtype: dim_up
|
||||
condition:
|
||||
- condition: not
|
||||
conditions:
|
||||
|
@ -13,27 +13,11 @@
|
||||
- condition: state
|
||||
entity_id: input_select.home_mode
|
||||
state: Day
|
||||
- condition: state
|
||||
entity_id: media_player.bedroom_tv
|
||||
state: 'off'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.bedroom_tv
|
||||
state: 'on'
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.bedroom_tv_media_input_source
|
||||
state: HDMI2
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.bedroom_atv
|
||||
state: playing
|
||||
sequence:
|
||||
- service: script.bedroom_lights_on
|
||||
default:
|
||||
- service: script.bedroom_lights_on
|
||||
- service: script.bedroom_lights_on
|
||||
|
||||
- id: bedroom-motion-off
|
||||
alias: '[Bedroom] Motion Off'
|
||||
|
8
configuration/automations/bedroom-tv.yaml
Normal file
8
configuration/automations/bedroom-tv.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
- id: bedroom-tv-on
|
||||
alias: '[Bedroom] TV ON'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.bedroom_tv
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.bedroom_tv_scene
|
@ -94,6 +94,21 @@ bedroom_bed_lamp_on:
|
||||
brightness_pct: 30
|
||||
kelvin: 3200
|
||||
|
||||
bedroom_tv_scene:
|
||||
alias: '[Bedroom] TV Scene'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.bed_lamps
|
||||
data:
|
||||
brightness_pct: 10
|
||||
kelvin: 2000
|
||||
- service: light.turn_off
|
||||
entity_id: light.bedroom_lights
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_lightstrip
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_lamps
|
||||
|
||||
bedroom_bed_lamp_off:
|
||||
alias: '[Bedroom] Bed lamps off'
|
||||
sequence:
|
||||
|
Loading…
Reference in New Issue
Block a user