What I would like to do is the following (sounds pretty easy):
I have an aquarium, for which I control the lights over mqtt - intensity and color of the lights can be adjusted, both range from 0-100% (that’s what the MQTT receives).
For this (intensity for example) I have created the following input slider, which is working perfectly over the UI:
So my question is that is there a way to create an automation for this the following way:
I would like the intensity to ramp up from 8:00 -> 12:00 from 0-30 evenly. Then I’d like it to be @ 30 between 12:00 and 17:00, and then ramp down to 0 by 21:00. I know I could do it by setting up (60) manual timers, but it would be great if the max intensity and the durations could be easily adjusted in the future.
TIA, and also sorry for my bad english:slight_smile:
Cheers
Errrrm, it does what it says at the top “Creates an alarm clock”, if you scroll down a bit you can see where some of us change it a bit to use sliders to set the start and stop times for the alarm. My thought was that you could do the same sort of thing.
Sorry, my bad, didn’t realize you’ve linked a whole topic:)) Will look into it, but right now I can’t see how it evenly distributes 0-100 integers between for ex. 06:00 - 12:00…
Okay, so I’ve tried to use a time trigger. But I am amazed that it’s not possible to set like “Every 135 seconds” ?! You can only set "every 0-60 seconds " / minutes… Like really?! I must be missing something.
automation:
trigger:
platform: time
# Matches every hour at 5 minutes past whole
minutes: 5
seconds: 00
automation 2:
trigger:
platform: time
# When ‘at’ is used, you can also match on hour, minute, seconds.
# Military time format.
at: ‘15:32:00’
This would do what you want I think…
automation 3:
trigger:
platform: time
# You can also match on interval. This will match every 2 minutes 15secs
minutes: ‘/2’
seconds: 15
Hmmm OK, I see what you are saying in that case trigger every sec or perhaps 5s and increment a slider then have a 2nd automation matching on the slider at 135s and reset it then and do any other things that need doing Perhaps a bit convoluted but it should work or use appdeamon