i.e, when sunlight is out (in HA, you can get sunset triggers), and when there are people present in living room, turn on living room lights.
For standard power outlets I have "smart plugs" that measure the power draw, are there ones that support 40A/240V appliances?