@Sbyx is there a way to increase the “steps” of the automation? I changed the trigger to seconds: '/10'
and even though the automation runs every 10 seconds it effectively only updates the light every minute. When it’s not updating the light, I get the message: Stopped because only a single execution is allowed.
I have come to the conclusion that I need som help setting up the required sensors, after spending too much time trying to do it myself.
I have enabled the ‘date_time_iso’ and date sensors in my configuration.yaml file. The blueprint also works when I set the time manually in the automation. But I am using an iPhone and have to create a timestamp sensor manually.
I have read through all the posts and tried other solutions from the forum and documentation but the created sensor replies either ‘unknown’ or ‘unavailable’. I have tried creating a time_date helper with both date and time or only time. Both with the same result.
-------------------- UPDATE -----------------------
My solution is using today_at() and an automation updating the sensor at 0:05.
- sensor:
name: "Alarm tid med dato"
device_class: timestamp
state: "{{today_at(states('input_datetime.alarm'))}}"
I only need to find out how to update the sensor input_datetime_alarm with the app shortcuts on iPhone.
In shortcuts on iPhone the time is displayed with a dot but home assistant needs the time with a semicolon. So instead of 12.00 it has to be 12:00. That can be changed in shortcuts.
I’m having interesting problems when trying to use next alarm from phone. I could not find any information about these errors. Same thing happens with bare google clock and default Oneplus clock seems to transfer data correctly to HA.
* Error while executing automation automation.wake_up_light_alarm_with_sunrise_effect: In 'template' condition: TypeError: forgiving_as_timestamp() takes 1 positional argument but 2 were given * Error while executing automation automation.wake_up_light_alarm_with_sunrise_effect: In 'template' condition: AttributeError: 'dict' object has no attribute 'lower'
Worked like a charm “straight out of the box”, thanks!
But would like a “built in” option to turn the lights off after x time from alarm.
As of now you can add a script in “Post-sunrise actions” with delays and stuff but it’s still a secondary script which clutters up things imho.
This Wake-Up-Automation is awesome! Thanks for your work.
I don’t always stay up at the same time. Is it possible to adjust the Wake-Up-Time on the “Homescreen” of my HA? I tried with a Time-Helper but as you explained, it doesn’t work. A Date&Time-Helper work but it isn’t nice to change the Date every Day. Any Ideas how i can solve this?
I currently use the innr zigbee bulbs which dim to a fairly low light. I have 2 colour temperature varying ones in our bedside lights that work quite well.
I’m fairly new to HA, but I found a possible solution to your issue. The below reference is a way to set the time helper to a timestamp. However, I did also have to use an automation to update_entity at 2:30 each morning.
I have tried the solution from deathbybandaid but newer got them to work.
I use the today_at function which creates a sensor with todays date. You can then create an automation or a trigger to update the sensor at a given time.
- sensor:
name: "Alarm tid med dato"
device_class: timestamp
state: "{{today_at(states('input_datetime.alarm'))}}"```
I left a comment on the blueprint thread that is relevant here. I’m in the process of finding a replacement for my code editor that I actually like to code in (I write python mostly), and would love some help achieving some of my goals in a fork of the blueprint.
This is essentially what I’d like a dashboard for my wife to look like, We have 3 kids with completely different morning routines (3 schoolbus pickup times, over the span of 3 hours!), and I’d like her to be able to easily adjust a few things without having to learn HA at all. I’m working out some quirks before migrating from a Hue Bridge.
I then have a couple helpers for setting a time, and possibly a duration if I can figure out how to modify the blueprint.
I then had to add an automation to update_entities whenever a the duration or the time has a change. I also have a trigger for 2:30AM to make sure the today_at gets modified before I need to wake up.
Edit: It’s on my list to try and add some logic to the template sensors to determine if the time helper time is already passed for the day.
Also, it would almost be TOO HELPFUL if HA were to have a built-in scheduling/caldav service. HA could then allow us to use a UI to add calendar events with recurrence, with entity objects that expose datetime versus timestamp. Calendar entity for next_event would also be incredibly useful. A calendar system could then incorporate auto-adjustments for stuff like Holidays, or other dates that a workplace schedules off (for instance, where I work, I get Thanksgiving AND the Friday after off). With a calendar system, it would also be able to modify a single instance of a recurring event and remove a single occurance when needed,
I want to use this automation with a light that used the WLED integration.
I’m using a Wemos d1 mini with a ws2812 ledstrip inside a diy 3d printed moodlight.
Unfortunately it’s currently not working, can someone make it compatible with WLED ?