What I want to achieve is to count people in the room,
The sensor is to be mounted in the ceiling, and will be triggered by door opening in most cases(entrance,bedrooms,balcony and bathroom), however I do have two open zones(no door) which I would also like to count people in. These zones are kitchen and living room.
I will use arduino to set a counter, i.e livingRoomCounter = 3 the logic to handle what to do with this counter will be regulated by rules in Openhab(my smart home system) to set light,temperature,music and ventilation.
For instance, if I leave the leaving room and enter bathroom, lights will go on in bathroom, the music will change speaker to bathroom, however if my gf is still left in i.e livingRoomCounter = 1 then also keep playing in livingroom.
On top of this I also know what time of the day it is and what scene is activated and can also use this in my rules what to do when the counter changes. For instance if its after 10pm and all counters except of bedrooms are 0 then I can activate nightmode(door locks, tv and music in all rooms(except bedroom) will enter sleepmode,lights will then turn red(if someones gets up in the night), phone are set to silent(IFTT trigger), switch off floor heating, slow down ventilation in all rooms except of bedrooms. )
That was my idea, feel free to collaborate about the idea
But to achieve this i need to know how many is in each room. Or rather i need to know if a room is empty or not.. Maybe IR camera instead or netatmo welcome camera?