Air Conditioning automation for Guests

Hi all,

I frequently have guests in our home and have notest that most of them misuse the air conditioning. They mostly leave them on while not at home or leave them on on rooms they are not in. So I thought to add an automation to “fix this issue” I got a zigbee mmwave presence detection and want to implement this idea:

When aircon is on and no one is in the room for 30min turn off. (that should be easy to do) but I also want to turn it back on when presence is detected if the aircon was turned off by the automation. If the aircon is turned off by remote control then do not do anything.

Is this something that can be done reliably ? Any other suggestions ?