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
|
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_long_press
|
||||||
subtype: turn_on
|
subtype: dim_up
|
||||||
condition:
|
condition:
|
||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
|
@ -13,26 +13,10 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
action:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
state: 'on'
|
state: 'off'
|
||||||
sequence:
|
action:
|
||||||
- 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
|
- id: 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
|
brightness_pct: 30
|
||||||
kelvin: 3200
|
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:
|
bedroom_bed_lamp_off:
|
||||||
alias: '[Bedroom] Bed lamps off'
|
alias: '[Bedroom] Bed lamps off'
|
||||||
sequence:
|
sequence:
|
||||||
|
Loading…
Reference in New Issue
Block a user