Last active
December 28, 2020 12:52
-
-
Save thesorin/59137152fd9e6fb42cc5cef9327fee18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Aprinde lumina la miscare in anumite ore ale zilei. | |
domain: automation | |
input: | |
motion_entity: | |
name: Senzor miscare | |
selector: | |
entity: | |
domain: binary_sensor | |
device_class: motion | |
light_target: | |
name: Lumina | |
selector: | |
target: | |
entity: | |
domain: light | |
no_motion_wait: | |
name: Timp de asteptare | |
description: Timpul de asteptat pana cand inchizi lumina dupa ce nu s-a mai detectat miscare. | |
default: 120 | |
selector: | |
number: | |
min: 0 | |
max: 3600 | |
unit_of_measurement: seconds | |
time_limit_before: | |
name: Ora dezactivare automatizare | |
description: Ora la care vrei sa nu se mai aprinde lumina la miscare | |
default: 08:00:00 | |
selector: | |
time: {} | |
time_limit_after: | |
name: Ora activare automatizare | |
description: Ora de la care vrei sa se aprinda lumina la miscare | |
default: '18:00:00' | |
selector: | |
time: {} | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
platform: state | |
entity_id: !input motion_entity | |
from: "off" | |
to: "on" | |
condition: | |
- condition: time | |
after: !input time_limit_after | |
before: !input time_limit_before | |
action: | |
- service: light.turn_on | |
target: !input light_target | |
- wait_for_trigger: | |
platform: state | |
entity_id: !input motion_entity | |
from: "on" | |
to: "off" | |
- delay: !input no_motion_wait | |
- service: light.turn_off | |
target: !input light_target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment