unky wrote: To operate the air conditioning I will use an IR transmitter - Broadlink RM MINI3
- the concept of cutting the power has already fallen through.
Depending on the air-conditioner, you may want to think about low-voltage switches - e.g. Sonoff SV (or similar) and their integration into the air-conditioner (e.g. button simulation).
It is also worth doing a status verification - you can use a circuit breaker with current measurement (without using the shutdown or as an alternative) and check if the air conditioner has been correctly switched off based on the current drawn.
E.g. open a window -> 1. check if the air conditioner is running (current drawn) -> 2. if yes: send IR off code -> 3. wait x sec. -> 4. check if the air conditioner is working (current drawn) -> if no: back to 2.
It is also possible to add a protection in case of switching on with the window open
1. detect switch on (current drawn) -> 2. check window -> 3. if open send IR off code -> 4. wait x sec. -> 5. check if the air conditioner is working (current drawn) -> if yes: back to 3.
The switch itself with the current measurement can be used to block the air-conditioner from switching on (e.g. based on temperature, time, departure, etc. - whatever you can think of) preferably also based on the principle of safe shutdown 1. send shutdown code -> 2. wait x sec. ->check current -> if clique in STB you can switch off power, if not go back to 1.
Current (value) and time x to be checked experimentally.