This is an old revision of the document!
Author: Dragos Macovei
Source code on Github:
Youtube video:
Control of sockets + lights (energy saving + comfort) in houses of any size.
In the current project, there is an esp module connected individually to each socket in the room by means of relays. The lights that are static are also controlled by relays, and the lights that have the dimmer function are connected through a module that allows proportional switching on/off.
There is also a PIR module on each camera.
Home user mode: Pir active, application control active. If the pir does not detect movement for more than 30 minutes, it switches to the user gone mode (if the user has not blocked the function - in which case all elements are switched on) Operating mode user gone: Pir active, application control active. all sockets off (except those that the user wants to keep permanently on), all lights off. When the user enters the house and is detected by the pir, all elements turn on.