Hi, I have a circulation pump connected to a switch which now is on between 9am to 9pm. Once a day I need to turn it off for 15 minutes and clean a filter. I often forget to turn it back on. It would be convenient if I in the Home assistant frontend would have a card with on/off switch and a slider where I can decide the amount of time for the switch to be turned off.
The senario would be
Decide amount of time to be turned off with a slider
Click switch to turn off
Switch turns on automatically after the decided time in the slider.
Also there needs to be an automation for the pump to continue to turn off at 9pm and then back on at 9pm
I have looked at these links but I can´t get it to work:
Not trying to be the safety police but do you think itâs a good idea to have the pump turn on automatically if youâve turned it off in order to open the system to do maintenance on it?
Letâs say you set the timer for 30 minutes and turn the switch off, open the filter to change it and something comes up that draws your attention from the time. Then after 30 minutes the system is still open and the pump suddenly turns back on. Especially bad if you are working on it when it does not to mention possible property damage at a minimum.
Wouldnât it be better to set up a persistent notification to keep telling you that you forgot to turn the pump back on? That way it will keep annoying you if you forget but you wonât suddenly get sprayed by whatever liquid the pump is supposed to be circulating!
I understand your point but if the pump would turn on with the filter removed it would not do any harm. The water would just pass the filter since the pump is operating on a low pressure.
I would prefer home assistant to turn tje pump back on automatically.
I have thought about putting in a delay, but what´s the fun in that. It would also look nicer with a card in the frontend of homeassistant with a slider
The âinput_sliderâ has been renamed to âinput_numberâ. Change that.
And Iâm not really sure if itâs a problem but I think you canât have the colon in your alias. remove that also (âPumo Automatically turn onâ).
You can use that automation for your turn back on delay but you said you wanted to use a variable selectable delay.
I donât think you can combine the two automations since they are fundamentally performing two opposing actions (turning back on after a delay, turning off at a certain time). you might be able to do it but it would take a bunch of templating that gets hairy.
Easiest to just handle those different situations with two automations. But you can put a condition in so that if itâs after 9pm when the dekllay runs out and should be turning the pump back it wonât fire.
If you want to test whether just the automations or script conditions and actions work then just either execute the script or select the automation in the frontend and then click âtriggerâ
to fully test the automation and make sure it works in a normal production environment just turn off your switch (switch.pump_low) then wait to see if the switch gets turned back on at the time set by the input number.
Then change the input number and try it again to make sure the time delay changes.