Hello,
I’m trying to create an alarm clock that can be easily adjusted by using an input_number
.
Currently I have the alarm clock setup so when I log a feeding (for new born), it will automatically adjust the alarm clock 2 hours into the future. This part works perfectly, the issue is that it’s static, meaning its always two hours. Sometimes though we may want to have the alarm be 2.5 or 3 hours into the future.
My goal, is to use an input_number
to dynamically set the time between feedings. For example, lets say I log a feeding at 2pm. The next part of the automation should check the current time, then add the state of the input_number
to be the next feeding time. So if its 2pm and the input_number
is set to 3, the next feeding time would be 5pm.
I also want to make sure any time the input_number
is adjusted it automatically adjusts the next feeding time. Following the same example above, the next feeding time is 5pm but later I decide to change the input_number
to 3.5, now the next feeding time should be 5:30pm. (btw I only plan on doing half hour increments).
I hope this post makes sense to someone that can help me. I know dealing with time is often a pain. If anyone has questions about my current sensors and automations please let me know. It’s kind of a lot which is why I’m not posting from the start.
1 post - 1 participant