The purpose is control each room, automatically, manually, anche use it on mqtt broker.
In each room there are:
-a light sensor
-a light to control
-a switch button (no push button)
This project is based on ESP NON OS SDK 1.5 and Sming 3.5.
I merge some of example included in Sming framework, but I've some issue with interrupts.
Without interrupts seems to work well, but obviously the interrupts are mandatory for pir sensor, and buttons actions.
The code is on github, on my public repo, if someone want to keep an eye (sorry for the expression)
If someone wants, I'll post schematics of the project.