14 Commits

Author SHA1 Message Date
1ba56d49fc Update parabolic_alarm.yaml 2025-04-18 12:31:02 -04:00
cc19261f50 Merge pull request #8 from shbatm/shbatm-patch-1
Allow Datetime Sensors and Offset for Start Time
2025-04-18 12:30:05 -04:00
d8665a518f Change offset to text 2025-04-16 14:57:15 -05:00
4f10220e5b Change to offset value instead of calculated 2025-04-16 14:25:25 -05:00
343b710ab9 Update parabolic_alarm.yaml 2025-04-16 14:10:42 -05:00
2f9adcfac8 Update parabolic_alarm.yaml 2025-04-16 13:19:47 -05:00
e91adc42ea Correct formatting for Offset 2025-04-16 13:10:57 -05:00
938f68ec39 Fix offset formatting 2025-04-16 12:56:04 -05:00
1b34146670 Add option to finish at the givent time 2025-04-16 12:43:39 -05:00
34f66f8ff8 Allow using alarm sensor as trigger time 2025-04-16 12:25:01 -05:00
0a6e879aad Merge pull request #6 from steku/remove-transition
Remove transition
2025-03-28 08:31:19 -04:00
9682c6c5e8 Update timeout description 2025-03-28 08:30:24 -04:00
3e1b33702a Update timeout description 2025-03-26 09:05:54 -04:00
78cb28e6a0 remove transistion 2025-03-26 08:43:12 -04:00
2 changed files with 16 additions and 7 deletions

View File

@ -6,14 +6,23 @@ blueprint:
alarm_start_time:
name: 🕒 Start Time
description:
Datetime helper for the alarm to start. Use time only and Workday sensor
Datetime helper or sensor for the alarm to start. Use time only and Workday sensor
to determine what days to run.
selector:
entity:
filter:
- domain:
- input_datetime
- domain: sensor
device_class: timestamp
multiple: false
offset_from_start_time:
name: 🏁 Offset From Start Time
description:
Adjust the amount of time before or after the set Start Time value to start the transition. Enter seconds or HH:MM:SS format (e.g. "-00:05:00" to start 5 minutes before the Start Time. Useful if the start time comes from an alarm entity and you want to adjust where in the brightness cycle you are when the alarm goes off. See https://www.home-assistant.io/docs/automation/trigger/#sensors-of-datetime-device-class-with-offsets for caution about using positive offsets.
default: "-00:00:00"
selector:
text:
workday_sensor:
name: 📆 Workday Sensor
description:
@ -54,11 +63,11 @@ blueprint:
multiple: false
light_timeout:
name: ⏱️ Timeout
description: Light will turn off after this time on last run
description: Light will turn off after this time on last run. Setting this to 0 will leave the light on.
default: 10
selector:
number:
min: 1.0
min: 0.0
max: 60.0
step: 1.0
mode: slider
@ -165,7 +174,9 @@ blueprint:
source_url: https://github.com/steku/ha_cercadian_alarm/blob/main/parabolic_alarm.yaml
trigger:
- trigger: time
at: !input alarm_start_time
at:
entity_id: !input alarm_start_time
offset: !input offset_from_start_time
condition:
- condition: state
entity_id: !input workday_sensor
@ -218,5 +229,4 @@ action:
steps_per_minute: !input steps_per_minute
light_timeout: !input light_timeout
target_light: !input target_light
mode: parallel
max: 10
mode: single

View File

@ -117,7 +117,6 @@ sequence:
- data:
brightness: "{{ brightness }}"
color_temp_kelvin: "{{ kelvin }}"
transition: "{{ individual_step - 1 }}"
target:
entity_id: "{{ target_light }}"
action: light.turn_on