adds gitignore
This commit is contained in:
@@ -4,13 +4,14 @@ blueprint:
|
|||||||
domain: automation
|
domain: automation
|
||||||
author: Florian Klemenz
|
author: Florian Klemenz
|
||||||
input:
|
input:
|
||||||
motion_entity:
|
motion_sensors:
|
||||||
name: Motion Sensor
|
name: Motion Sensor
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
|
multiple: true
|
||||||
filter:
|
filter:
|
||||||
device_class: motion
|
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
|
device_class: motion
|
||||||
no_motion_wait:
|
no_motion_wait:
|
||||||
name: Wait time
|
name: Wait time
|
||||||
description: Time to leave the scene on after last motion is detected.
|
description: Time to leave the scene on after last motion is detected.
|
||||||
@@ -20,13 +21,15 @@ blueprint:
|
|||||||
min: 0
|
min: 0
|
||||||
max: 300
|
max: 300
|
||||||
unit_of_measurement: seconds
|
unit_of_measurement: seconds
|
||||||
illuminance_sensor:
|
illuminance_sensors:
|
||||||
name: Illuminance sensor
|
name: Illuminance sensor
|
||||||
description: The illuminance sensor to get lux data.
|
description: The illuminance sensor to get lux data.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: sensor
|
multiple: true
|
||||||
device_class: illuminance
|
filter:
|
||||||
|
domain: sensor
|
||||||
|
device_class: illuminance
|
||||||
illuminance_cutoff:
|
illuminance_cutoff:
|
||||||
name: Illuminance threshold
|
name: Illuminance threshold
|
||||||
description: Lux above this threshold will activate the "off" scene.
|
description: Lux above this threshold will activate the "off" scene.
|
||||||
@@ -70,17 +73,17 @@ mode: restart
|
|||||||
max_exceeded: silent
|
max_exceeded: silent
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
- platform: state
|
||||||
entity_id: !input motion_entity
|
entity_id: !input motion_sensors
|
||||||
from: "off"
|
from: "off"
|
||||||
to: "on"
|
to: "on"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
# "Activate off-scene if illuminance is above threshold"
|
# "Activate off-scene if illuminance is above threshold"
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: !input illuminance_sensor
|
entity_id: !input illuminance_sensors
|
||||||
above: !input illuminance_cutoff
|
above: !input illuminance_cutoff
|
||||||
sequence:
|
sequence:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
@@ -107,7 +110,7 @@ action:
|
|||||||
- alias: "Wait until there is no motion from device"
|
- alias: "Wait until there is no motion from device"
|
||||||
wait_for_trigger:
|
wait_for_trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: !input motion_entity
|
entity_id: !input motion_sensors
|
||||||
from: "on"
|
from: "on"
|
||||||
to: "off"
|
to: "off"
|
||||||
- alias: "Wait the number of seconds that has been set"
|
- alias: "Wait the number of seconds that has been set"
|
||||||
|
|||||||
Reference in New Issue
Block a user