I’ve been using HA since the beginning of the year and it;s time to get more into the automations. I had a simple alarm clock that that brighten the lights and turned on a few others. Same time every day.
Looking at the thread about alarm clock I like the move to sliders to set the time. So following the one I liked I added an automation to automation.yaml, sensors to sensor.yaml, but don’t know where to put the input_sliders and input_booleans. Do I need to create new yaml files for them.
I tried different places and the only yaml file that would do anything that would load after restarting HA was in the configuration.yaml. But the alarm doesn’t work and I get the following errors in the log.
17-03-05 18:42:44 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Minutes, the state is unknown.
17-03-05 18:42:44 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Hour, the state is unknown.
17-03-05 18:42:44 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Alarm, the state is unknown.
Everything in the HA UI looks good. Can move the sliders and activate the alarm, but the automation will not run.
You can either put it directly in the config.yaml or you can create separate yaml files and include them.
If you can post all of the code related to your automation I’m sure someone here can help you.
Just make sure after you paste your code in the post you highlight and click the preformatted text button in the editor menu. Button that looks like < / >.
With creating a yaml/s file for the input_boolean and the input_slider can they be in one file or separate yaml files like input_boolean.yaml and input_slider.yaml and then list them in the configuration.yaml?
I basically did a copy and paste of code put up for use and added my action and default alarm time… At this time, I don’t understand this enough to start from scratch. Everything seems to be working, but the alarm is not going off. See errors in the first post. I’m clueless till I learn more.