The script is working but I would like to add the time with two slider (hours and minutes) instead of it being hardcoded. (Time is the last parameter) I have created the sliders (and sensors) for hours and minutes. The time needs to be formatted as seconds from midnight.
So the sensor values needs to be formatted to seconds. Maybe something like this:
Sensor.hours x 60 x 60 + Sensor.minutes x 60
Could somebody help me how to create template or something that would do the trick. And provide an example on how to add it correctly to the parameters.
Finally add your setting control to the UI. This will provide a nicely formatted input box that you can type your time into. This example also displays the current time in a separate UI control which is not necessary.
- type: entities
title: HA Application
show_header_toggle: false
entities:
- entity: sensor.time
name: Local time
- entity: input_datetime.system_archive
name: Archive at
I use similar code for all my system settings of datetime, numbers, etc. Enjoy!
I.e. set alarm on the squeezebox (my case Radio) and have Homeassistant automations/scripts triggered?
I really appreciate Homeassistant, but I don’t want to teach my kids, wife to remember to set alarms there. And least thing I want to do is to open phone/computer 30s before bedtime.
So I want to set alarms on my Logitech Squeezebox radio and have additional (e.g. wake-up lights) triggered based of the alarm time set on the radio.
I have exactly the same will of integration but cannot find how to recover the alarm infos on HA so that it can trigger events.
Have you found a way?
Thx