Browse Source

Fixed incorrect boolean state

master
Teknikode 1 week ago
parent
commit
7a01a28d13
3 changed files with 16 additions and 16 deletions
  1. 4
    4
      automations/light_motion_detection.yaml
  2. 6
    6
      scripts/bedtime.yaml
  3. 6
    6
      scripts/manage_automation.yaml

+ 4
- 4
automations/light_motion_detection.yaml View File

@@ -11,7 +11,7 @@
value_template: '{{ states.sensor.kitchen_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.kitchen_light_automation
state: 'off'
state: 'on'
action:
service: scene.turn_on
@@ -43,7 +43,7 @@
value_template: '{{ states.sensor.hallway_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.hallway_light_automation
state: 'off'
state: 'on'
action:
service: scene.turn_on
@@ -75,7 +75,7 @@
value_template: '{{ states.sensor.upper_hallway_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.hallway_light_automation
state: 'off'
state: 'on'
action:
service: scene.turn_on
@@ -107,7 +107,7 @@
value_template: '{{ states.sensor.bedroom_light_level.state|float < 10.0 }}'
- condition: state
entity_id: input_boolean.bedroom_light_automation
state: 'off'
state: 'on'
action:
service: scene.turn_on

+ 6
- 6
scripts/bedtime.yaml View File

@@ -6,13 +6,13 @@ goodnight:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.in_bed
- service: input_boolean.turn_on
- service: input_boolean.turn_off
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_on
- service: input_boolean.turn_off
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_on
- service: input_boolean.turn_off
data:
entity_id: input_boolean.kitchen_light_automation
- service: script.lock_door
@@ -22,12 +22,12 @@ good_morning:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.in_bed
- service: input_boolean.turn_off
- service: input_boolean.turn_on
data:
entity_id: input_boolean.bedroom_light_automation
- service: input_boolean.turn_off
- service: input_boolean.turn_on
data:
entity_id: input_boolean.hallway_light_automation
- service: input_boolean.turn_off
- service: input_boolean.turn_on
data:
entity_id: input_boolean.kitchen_light_automation

+ 6
- 6
scripts/manage_automation.yaml View File

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

Loading…
Cancel
Save