Check two plugs to disconnect one of them

Good evening, I am looking for an automation for HA in which with two Zigbee sockets I can control that the electric water heater is disconnected when I have the A/C on so that the thermal switch in my house does not trip, I don’t know if there is anything to do. program with YAML or can it be done easier, I’m a newbie and I don’t understand, thank you.

Hi, welcome. This can be done in HA, but if having two appliances on at the same time trips the circuit breaker, I would consider buying a hardware solution that does this. They are for sale (most used for washer dryer combo) and are more reliable then using HA. If HA should be down because it is restarting or there is a commuication problem with Zigbee you are not safe.

1 Like

Thank you for answering, it would be to program, for example, two hours after a shower at night, so that the two devices do not coincide, that is, when the air conditioning is on the heater does not work, it would be punctual.