Still for the lighting case, an occupancy sensing light switch with timed shutoff could take care of most usage. Actually lots of jurisdictions have updated their building code in recent years to require occupancy sensing light switch to save energy.
When I arm the perimeter alarm of the alarm system at night, it would check to make sure all the doors and windows are closed. Most alarm systems support perimeter alarm.
Most thermostats can run on a schedule to adjust the temperature. Nest and the likes can do occupancy check.
Of course they won't support the exotic uses but most of the basic needs are met.