[SOLVED] A simple rule for turning off power (=heating)

Please use the code fences when publishing code: