"I have configured an Ikea switch to turn on and off my microwave, and another Ikea switch to turn on and off my dishwasher in Home Assistant. I would like to set up some automation rules so that:
The microwave and dishwasher are turned off after a certain amount of time (e.g. 30 minutes for the microwave and 1 hour for the dishwasher).
If the dishwasher is running and I turn on the microwave, the dishwasher is turned off and the timer is paused. Once the microwave is turned off again, the dishwasher is turned back on and the timer is resumed.
I am new to HA, so please treat me as a beginner, still learning even how to find my way around the UI.
Its not that easy to explain, but let me try to break it down.
So I have an Ikea on/off switch that controls an Ikea outlet where I plugged in my microwave.
I have another Ikea on/off switch and outlet where I plugged in my dishwasher.
I made it work so that I can turn them on and off, that is no problem. But the problem is when I try to set up a timer to turn a device off.
I tried creating 2 automations for each switch. Turn the device on/ turn the device off. And I put in a timer in the “on” automation where I turn the device on and start a timer, then have the timer turn the device off after a set period of time. This kinda works, but not really. The problem is that if I turn the device on and then use the switch to turn the device off again, then it wont allow me to turn the device back on again until the timer has expired. So not sure how to make it work so that I can turn on and off manually for as much as I want, and if I dont turn off that it turns off once the timer expires.
the second thing I want to do is that if I turn the microwave on, the dishwasher should turn off and pause the timer. when the microwave is turned off again, the dishwasher should turn back on and the timer should continue.