Hi guys, I’ve got a question:
I have a water pump that is connected to a switch and a boiler with another switch, and it already works very well with HA. And the washing machine is connected to a sonoff switch via MQTT with a timer: basically when the washing machine finishes the cycle, a timer turn off the washing machine and the pump get off, too.
Now I installed a new switch (xiaomi switch) in the bathroom thats turn on and off the water pump and boiler together, but when I turn off from switch (xiaomi) , if the washing machine is running and not receive water, it locks.
how can fix that if I press the button (xiaomi) and the washing machine is switched on, it doesn’t turn off the water pump but only the boiler?
Here my present automation and script …
You have one switch (switch.acqua_acqua_on) that turns on/off both, the boiler and the pump, but when your script (lavatrice_start) is triggered it only turns on one of the two?
If you want one to be turned on and the other to be turned off, wouldn’t you need two switches for that?
xiaomi switch
what I want to do I was:
when i press the xiaomi switch get boiler and water pump on or off, but if washing machine running get only boiler off.
Thank you
I kept the trigger part as explicit as it is because I want to make sure that I don’t trigger on status changes from or to ‘unavailable’. I have a few ‘smart’ devices that now and then drop off the WiFi for a few seconds and this would then result in ‘ghost triggers’.
As I’m writing this, though, I’m thinking that this could probably be caught with a condition, though.
In fairness, the way I’ve just done it might cause an endless loop of itself, would certainly need testing. If so you’ll need a condition to prevent a second firing.
And as you say, if the states could be ‘unknown’ then a condition to knock that one away would be preferable. It was more of a pointer to bring it down to half of the size than a ‘this will work’ - but it can definitely be shrunk significantly
if one switch is on, switching the group to on switches all entities in that group to on, even if the group was already on. Seems a bit strange, but I use that in my motion sensors groups to good effect.