Everyday when people wake up, they turn on the light and its in full power though there is sun light outside. The thermostat is either in low power or in full, they have to adjust it after they get up. He has to start the electronics(coffee machines, heaters etc.), which takes some of his time.
Afterwards, during the night lights and other electronics should turn off automatically, when he goes to bed. In the middle of the night we he wakes up to do something, suddenly turning on bright light can hurt his eyes.
Controlling electronic devices according a users habits to reduce energy consumption and comfort. The system will have two basic modes.
Day Mode
Night Mode
An approach that allows us to create balance; we produce, use services (resources) and environmental affects without compromising the future.
Code snippets for night light and air control mode:
1. define air_controller notify grp5_motion { if ($EVENT eq "motion"){fhem "set grp5_light 60 20 100"} else {fhem "set grp5_light off"} } 2. define light_controller notify grp5_window {if (($EVENT eq "closed") && (ReadingsVal("grp5_THsensor","temperature","") gt "25.0")) {fhem "set grp5_switch on"} else {fhem "set grp5_switch off"}}