I just want to go further the processus to create an alarm on a specific time. I want to get an alarm on weekend day at a specific time only if weather outside is OK to go running / biking or skiing
Do I need to create another alarm or modify this to get a more complex automation script ?
This topic inspired me to my first HA project. I’m new to YAML but not really to coding in general and I can’t get my natural wakeup to work. My light cannot use “transition” so I decided to make a script out of it.
My setup in the dashboard looks like this (don’t mind 23:01, it’s for testing ):
I want to be able to choose for how long the light will transition into full brightness!
I’m going to do it in 10 steps with 10% brightness, 20% brightness etc… so the script has to fetch from the slider, how long time the delay between every increment is.
The script right now looks like this and are being called succesfully from the trigger. For the purpose of testing, I’m putting the value of the slider directly as the delay time:
The “wakeuplight_fade” is the fading time slider shown in the dashboard.
This script runs through without problem if I use an integer instead of the slider state.
@thundergreen@bluenote73@itsamenathan
Hey guys, sorry for the late reply. I recently moved to a new place and just got internet. Which also means my raspi and HASS is not up yet. Before I moved out, the function was only working for fixed times. I would like it to work for any time specified (setting the alarm to 08:10 should automatically calculate -30min for the fade to start at 07:40). I never got this to work though… so my code atm is only working with my normal wakup time.
The code is on my raspi which is not packed up yet…
As soon as I get plugged in I will post it to you guys! Hang tight!
I’ve also implemented the alarm by picking up some bits here and there, here is the complete configuration:
(also available on PasteBin: http://pastebin.com/TnJGQhtf )
This alarm will only be triggered if someone is home (device_tracker in alarm_executor automation).
When the alarm “ring” it while turn on the light call “light.ikea_boy” in my system, of course you’ll have to adapt it according to your light/group/etc…
A group is created showing the alarm settings:
I thanks all the participant to this topic from which i took part of code to assemble this alarm clock
I have same situation as @Fnykis
Currently in process of building led lamp with ESP8266 which will emulate the sunrise, so I need the automation to be triggered about 30 minutes before the actual wake up.