mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2026-02-04 19:12:20 +00:00
Add option to finish at the givent time
This commit is contained in:
@ -16,6 +16,12 @@ blueprint:
|
|||||||
- domain: sensor
|
- domain: sensor
|
||||||
device_class: timestamp
|
device_class: timestamp
|
||||||
multiple: false
|
multiple: false
|
||||||
|
complete_at_start_time:
|
||||||
|
name: 🏁 Finish at Start Time
|
||||||
|
description:
|
||||||
|
Complete the transitions by the time given in the Start Time as opposed to starting at the Start Time.
|
||||||
|
selector:
|
||||||
|
boolean:
|
||||||
workday_sensor:
|
workday_sensor:
|
||||||
name: 📆 Workday Sensor
|
name: 📆 Workday Sensor
|
||||||
description:
|
description:
|
||||||
@ -168,6 +174,7 @@ blueprint:
|
|||||||
trigger:
|
trigger:
|
||||||
- trigger: time
|
- trigger: time
|
||||||
at: !input alarm_start_time
|
at: !input alarm_start_time
|
||||||
|
offset: "{{ -(alarm_length_1 + alarm_length_2 + alarm_length_3)*60 if complete_at_start_time else 0 }}"
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: !input workday_sensor
|
entity_id: !input workday_sensor
|
||||||
@ -220,5 +227,4 @@ action:
|
|||||||
steps_per_minute: !input steps_per_minute
|
steps_per_minute: !input steps_per_minute
|
||||||
light_timeout: !input light_timeout
|
light_timeout: !input light_timeout
|
||||||
target_light: !input target_light
|
target_light: !input target_light
|
||||||
mode: parallel
|
mode: single
|
||||||
max: 10
|
|
||||||
|
|||||||
Reference in New Issue
Block a user