Browse Source

Added switches for specific light automations

master
Teknikode 1 week ago
parent
commit
de7e5ffcbd

+ 4
- 4
automations/light_motion_detection.yaml View File

@@ -10,7 +10,7 @@
- condition: template
value_template: '{{ states.sensor.kitchen_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.in_bed
entity_id: input_boolean.kitchen_light_automation
state: 'off'
action:
@@ -42,7 +42,7 @@
- condition: template
value_template: '{{ states.sensor.hallway_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.in_bed
entity_id: input_boolean.hallway_light_automation
state: 'off'
action:
@@ -74,7 +74,7 @@
- condition: template
value_template: '{{ states.sensor.upper_hallway_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.in_bed
entity_id: input_boolean.hallway_light_automation
state: 'off'
action:
@@ -106,7 +106,7 @@
- condition: template
value_template: '{{ states.sensor.bedroom_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.in_bed
entity_id: input_boolean.bedroom_light_automation
state: 'off'
action:

+ 6
- 0
input_booleans.yaml View File

@@ -2,3 +2,9 @@ kodi_lights_living_room:
name: Dim Lights
in_bed:
name: In Bed
bedroom_light_automation:
name: Bedroom Light Automation
hallway_light_automation:
name: Hallway Light Automation
kitchen_light_automation:
name: Kitchen Light Automation

+ 18
- 0
scripts/bedtime.yaml View File

@@ -6,6 +6,15 @@ goodnight:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.in_bed
- service: input_boolean.turn_on
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_on
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_on
data:
entity_id: input_boolean.kitchen_light_automation
- service: script.lock_door

good_morning:
@@ -13,3 +22,12 @@ good_morning:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.in_bed
- service: input_boolean.turn_off
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_off
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_off
data:
entity_id: input_boolean.kitchen_light_automation

+ 23
- 0
scripts/manage_automation.yaml View File

@@ -0,0 +1,23 @@
light_auto_off:
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_on
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_on
data:
entity_id: input_boolean.kitchen_light_automation
light_auto_on:
sequence:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_off
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_off
data:
entity_id: input_boolean.kitchen_light_automation

Loading…
Cancel
Save