#Sunrise alarm clock
1 messages · Page 1 of 1 (latest)
The HA app for iOS doesn’t support a “next alarm” sensor (unlike Android). You’d have to create a shortcut on your phone that will push the alarm time to your HA instance every time you open up the alarm app.
Here is a thread in the forums:
https://community.home-assistant.io/t/ios-17-1-push-iphone-alarm-clock-to-ha/623821/56
So I added it but it seems to not update HA enityt
I haven’t used that shortcut but did you confirm all the input helpers you created matched the names of the entities referenced in the shortcut?
This entity ('sensor.first_alarm') does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.
Nvm seems like I had to remake my alarm for it to work
Oh it doesn’t seem to take anything on sleep schedule
Any recommendations on sunrise blueprint?
I don’t use blueprints either 😅
But this seems like it would do the trick:
Installation Create datetime helper for the time this is to be triggered. This is when the lights will start turing on from the lowest setting. You can calculate the finish time by adding the Alarm Length steps and timeout if you desire, but I find that I’m awake before it finishes. I’d suggest you play with this until you find what is right ...
Ill try it
Thanks so far ill see if it works
❤️
It works but the issue is that the alarm clock starts the blueprint so I need something that basically adds -30min or something to the timer. Else I have to set a clock manually
Can I make a entity that basically takes Alarm then converts it to alarm-30?
Yes you can create a helper from the UI. From integrations -> helpers -> template -> template a sensor
Make sure to set the device class to “timestamp”. Use this for the code, changing the source sensor entity name to whatever yours is:
{{ states('sensor.next_alarm_time') - timedelta(minutes=30) }}
Alternatively you might be able to take control of the blueprint so that you can edit the automation, and simply add an offset to the trigger
Yeah I accessed the blueprint immideatly and learned alot 🙂
How can I convert the right one to look like the left one?
Left one was added to the conf manually
"template:
- sensor:
- name: "Alarm set"
state: "{{ states('input_boolean.alarm_example') }}"
- name: "Alarm set"
- sensor:
- name: "First alarm"
state: "{{ state_attr('input_datetime.first_alarm_example', 'timestamp') | timestamp_custom('%H:%M', None) }}"
- name: "First alarm"
- sensor:
- name: "Last alarm"
state: "{{ state_attr('input_datetime.last_alarm_example', 'timestamp') | timestamp_custom('%H:%M', None) }}""
- name: "Last alarm"
Or mayeb its a good idea to be able to change it manually
The ones on the left are template sensors. The ones on the right are input datetime helpers