Compare commits
No commits in common. "722d1d0d4c1d359ebbf503217add641abbc06e09" and "47e191f22f5168b86434cf316cd2316d062f9cab" have entirely different histories.
722d1d0d4c
...
47e191f22f
|
|
@ -6,8 +6,3 @@ A collection of blueprints used on my local home assitant installation.
|
||||||
Alarm Clock with wake up light
|
Alarm Clock with wake up light
|
||||||
|
|
||||||
[](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgit.thethomaas.net%2FTheThomaas%2Fhome-assistant-blueprints%2Fraw%2Fbranch%2Fmain%2Falarm_clock.yaml)
|
[](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgit.thethomaas.net%2FTheThomaas%2Fhome-assistant-blueprints%2Fraw%2Fbranch%2Fmain%2Falarm_clock.yaml)
|
||||||
|
|
||||||
## Presence lights
|
|
||||||
Lights management using presence sensor
|
|
||||||
|
|
||||||
[](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgit.thethomaas.net%2FTheThomaas%2Fhome-assistant-blueprints%2Fraw%2Fbranch%2Fmain%2Fpresence_lights.yaml)
|
|
||||||
|
|
@ -62,8 +62,7 @@ blueprint:
|
||||||
domain: switch
|
domain: switch
|
||||||
additional_section:
|
additional_section:
|
||||||
name: Additional Actions
|
name: Additional Actions
|
||||||
icon: mdi:plus
|
description: Additional actions before and after the lights turn on
|
||||||
collapsed: true
|
|
||||||
input:
|
input:
|
||||||
before_wake_up:
|
before_wake_up:
|
||||||
name: Before wake up action
|
name: Before wake up action
|
||||||
|
|
|
||||||
|
|
@ -1,108 +0,0 @@
|
||||||
blueprint:
|
|
||||||
name: Presence lights
|
|
||||||
description: Lights management using presence sensor
|
|
||||||
domain: automation
|
|
||||||
source_url: https://git.thethomaas.net/TheThomaas/home-assistant-blueprints/raw/branch/main/presence_lights.yaml
|
|
||||||
input:
|
|
||||||
presence_binary:
|
|
||||||
name: Presence trigger
|
|
||||||
description: Trigger to turn on the lights
|
|
||||||
default: []
|
|
||||||
selector:
|
|
||||||
entity:
|
|
||||||
filter:
|
|
||||||
domain:
|
|
||||||
- binary_sensor
|
|
||||||
multiple: false
|
|
||||||
|
|
||||||
additional_conditions:
|
|
||||||
name: Additional conditions
|
|
||||||
description: Extra conditions
|
|
||||||
default: []
|
|
||||||
selector:
|
|
||||||
condition:
|
|
||||||
|
|
||||||
scene_name:
|
|
||||||
name: Scene name
|
|
||||||
description: Scene name - Must be unique
|
|
||||||
default: []
|
|
||||||
selector:
|
|
||||||
text:
|
|
||||||
|
|
||||||
time_delay:
|
|
||||||
name: Turn off delay
|
|
||||||
description: Delay until the lights turn off after no presence is detected
|
|
||||||
default: 1
|
|
||||||
selector:
|
|
||||||
number:
|
|
||||||
min: 0
|
|
||||||
max: 360
|
|
||||||
step: 1
|
|
||||||
unit_of_measurement: seconds
|
|
||||||
|
|
||||||
lights:
|
|
||||||
name: Lights
|
|
||||||
description: Lights to manage
|
|
||||||
default: []
|
|
||||||
selector:
|
|
||||||
entity:
|
|
||||||
filter:
|
|
||||||
domain:
|
|
||||||
- light
|
|
||||||
multiple: true
|
|
||||||
|
|
||||||
mode: restart
|
|
||||||
max_exceeded: silent
|
|
||||||
|
|
||||||
variables:
|
|
||||||
scene_name: !input scene_name
|
|
||||||
|
|
||||||
triggers:
|
|
||||||
- trigger: state
|
|
||||||
entity_id: !input presence_binary
|
|
||||||
to: "on"
|
|
||||||
id: "presence_on"
|
|
||||||
- trigger: state
|
|
||||||
entity_id: !input presence_binary
|
|
||||||
id: "presence_off"
|
|
||||||
to: "off"
|
|
||||||
for:
|
|
||||||
hours: 0
|
|
||||||
minutes: 0
|
|
||||||
seconds: !input time_delay
|
|
||||||
|
|
||||||
conditions: !input additional_conditions
|
|
||||||
|
|
||||||
actions:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: trigger
|
|
||||||
id:
|
|
||||||
- presence_on
|
|
||||||
sequence:
|
|
||||||
- action: scene.turn_on
|
|
||||||
metadata: {}
|
|
||||||
data: {}
|
|
||||||
target:
|
|
||||||
entity_id: "scene.{{ scene_name }}"
|
|
||||||
- action: scene.delete
|
|
||||||
metadata: {}
|
|
||||||
data: {}
|
|
||||||
target:
|
|
||||||
entity_id: "scene.{{ scene_name }}"
|
|
||||||
|
|
||||||
- conditions:
|
|
||||||
- condition: trigger
|
|
||||||
id:
|
|
||||||
- presence_off
|
|
||||||
sequence:
|
|
||||||
- action: scene.create
|
|
||||||
metadata: {}
|
|
||||||
data:
|
|
||||||
scene_id: "{{ scene_name }}"
|
|
||||||
snapshot_entities: !input lights
|
|
||||||
- action: light.turn_off
|
|
||||||
metadata: {}
|
|
||||||
data: {}
|
|
||||||
target:
|
|
||||||
entity_id: !input lights
|
|
||||||
Loading…
Reference in a new issue