1
0

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:
Przemek Grondek 2022-08-06 23:41:47 +02:00
parent ba929d37ee
commit 48edc10df4
4 changed files with 29 additions and 22 deletions

View File

@ -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:

View File

@ -13,27 +13,11 @@
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Day state: Day
- condition: state
entity_id: media_player.bedroom_tv
state: 'off'
action: action:
- choose: - service: script.bedroom_lights_on
- 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
- id: bedroom-motion-off - id: bedroom-motion-off
alias: '[Bedroom] Motion Off' alias: '[Bedroom] Motion Off'

View 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

View File

@ -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: