1
0

Fix some automations

setting alarm clock
 bathroom music restarting
 kitchen motion when it's bright in kitchen
This commit is contained in:
Przemek Grondek 2021-01-15 10:03:20 +01:00
parent 327de679f4
commit dfc1f6e64c
3 changed files with 8 additions and 4 deletions

View File

@ -6,6 +6,10 @@
entity_id: binary_sensor.shower_motion entity_id: binary_sensor.shower_motion
from: 'off' from: 'off'
to: 'on' to: 'on'
condition:
- condition: state
entity_id: media_player.bathroom_speaker
state: 'off'
action: action:
- service: spotcast.start - service: spotcast.start
data: data:
@ -29,10 +33,10 @@
condition: condition:
- condition: state - condition: state
entity_id: binary_sensor.shower_motion entity_id: binary_sensor.shower_motion
state: 'on' state: 'off'
- condition: state - condition: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_sensor
state: 'on' state: 'off'
action: action:
- service: media_player.turn_off - service: media_player.turn_off
entity_id: media_player.bathroom_speaker entity_id: media_player.bathroom_speaker

View File

@ -9,7 +9,7 @@
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.kitchen_motion_luminance entity_id: sensor.kitchen_motion_luminance
below: '50' below: '25'
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Day state: Day