#Sunrise alarm clock

1 messages · Page 1 of 1 (latest)

stoic cedar
#

Hello im pretty new to HA but I basically wanna make a sunrise alarm clock using my smart bulbs that syncs with my alarm clock on my iphone.

thanks in advance

worn nimbus
#

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

stoic cedar
#

So I added it but it seems to not update HA enityt

worn nimbus
#

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?

stoic cedar
#

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

stoic cedar
#

Any recommendations on sunrise blueprint?

worn nimbus
#

I don’t use blueprints either 😅

But this seems like it would do the trick:

https://community.home-assistant.io/t/simple-light-wake-up-alarm-with-parabolic-sunrise-effect/673747

stoic cedar
#

Thanks so far ill see if it works

#

❤️

stoic cedar
#

Can I make a entity that basically takes Alarm then converts it to alarm-30?

worn nimbus
#

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

stoic cedar
#

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') }}"
  • sensor:
    • name: "First alarm"
      state: "{{ state_attr('input_datetime.first_alarm_example', 'timestamp') | timestamp_custom('%H:%M', None) }}"
  • sensor:
    • name: "Last alarm"
      state: "{{ state_attr('input_datetime.last_alarm_example', 'timestamp') | timestamp_custom('%H:%M', None) }}""
#

Or mayeb its a good idea to be able to change it manually

worn nimbus
#

The ones on the left are template sensors. The ones on the right are input datetime helpers