How to determine who is in a smart home

The main problem and the most important element of the smart home system is, of course, the identification of people, the presence of people in the apartment or in the house.

Because depending on this, of course, it determines what tasks to perform, whether to turn on the light, whether to control the heating or climate. And of course, there are not so many ways to determine the presence of people, and they are not all very simple and have varying degrees of accuracy.

I've tried a lot of different ways, many different scenarios, some I still use, some I've already abandoned, but of course the most important thing is probably to determine how many people are present. And in general, it is desirable, of course, to determine even who is present, and then it will be possible to make some kind of scenario for a particular person.

That is, he is of course, one person can not be simultaneously in different places of the house or apartment, respectively, you can understand if he is in the same room, then accordingly there can be some scenarios to perform and for example turn on the light or do some other actions. In other rooms, respectively, there of course you can just turn everything off and, accordingly, let's say the temperature is maintained at some other temperature. But some people get to be in several places, of course, who like to move around the apartment or around the house, go to different rooms, turn on the lights everywhere and forget to turn them off, that is, there are such things too, and of course a smart home can help fix this situation.

If there are several people in a smart home, then of course it becomes much more difficult to track who is where and what scenarios to apply, and sometimes it is important, for example, that in one room, where there is one person, there are only one scenarios, there is only one music playing or some light is on and some devices work. And in the other room, everything was completely different and of course I would like to determine who exactly is where and, accordingly, do, execute the appropriate script for this case.

I used different ways of determining, for example, the simplest and of course the most obvious is to bind to the phone, that is, understanding for example that such a phone is connected to wi-fi and, accordingly, by IP address or some other phone parameters, determine who exactly is currently in this wifi network and based on this, you can understand who is in the apartment, who is not in the apartment, and what actions need to be taken.

But of course, the obvious problem here is that wi-fi may not always be turned on, that is, it may be on purpose, it may not have been turned on accidentally, and accordingly, of course, it will be difficult to determine that this phone and this person are at home.

In general, of course, it is much easier to determine whether there is something at home or not - just track which sensors are triggered, for example, some motion sensors are triggered. It is obvious that if there are no pets, then this person is present and you can mark somewhere in the smart home system that the person is now inside and make the corresponding scenario already linked with this.

Well, also for example, the use of switches, it is clear that animals most likely do not have to use switches and if some doors open or switches / turns on, then you can certainly understand that people are doing this and thus also note in the smart home system.

But in general, this way, of course, will be presence sensors, but they may actually be presence sensors even to some extent worse than motion sensors, because they actually react to different types of movement, they can react to some device that moves and simply reflects microwave radiation, and of course, this will also not be very convenient when the smart home system, for example, notices some movement and it may even be behind the wall, for example, from neighbors, and if it works and turns on the mode that someone is at home and starts cooling, turn on the air conditioner, turn on different devices, this will also not be very correct and the system may get completely confused.

But if, of course, she has already determined quite reliably that the person is inside, then you can track how I do that the front door is open or opened or did not open and on this basis understand that if it did not open, then of course no one can get out somehow differently and accordingly you can somehow don't switch scripts to no-people mode.

A very interesting solution was to use webcams to recognize the presence of people, of course, if a person is far from the camera, then it may not see him, and even the movement is unlikely to be able to determine, but if you get close enough, then of course it understands that there is movement and at the same time sends it as a trigger to the at home, but many cameras now also have the function of detecting people, even in cheap ones, and if a person is close enough and something is not hidden, then of course it can also highlight it as a person is detected and transmit it to the smart home system. And then, accordingly, of course, you can use different scenarios for tracking that a person has not left and of course take appropriate actions in the work of the scenarios.

Well, as an analog of wi-fi and other connections, you can use, for example, just geolocation. I have now done so that a program is installed on the phones that tracks the location and, in principle, with a certain error of 250-200 meters, it can certainly determine that a person is in the house, but this will be convenient only if this person really goes far away, but if he went to the store next door, or somewhere else- if you didn't go very far ,then you can make mistakes and, accordingly, the modes will not switch and all scenarios will be supported as if a person is present. But this is also not so terrible in principle, that is, it can be used in principle, and if a person has completely gone far or left, then of course you can determine exactly and there will be no problems with this with accuracy.

But there are different NFC tags that also allow you to track the position of people. To do this, you need to use additional components that work via BLE and allow you to track these tags. This may not be very convenient, but I tried it this way. I use a fitness tracker that works via BLE and of course, it is defined in principle. But there is some delay in determining whether the device does not immediately appear in the smart home system, because apparently the connection does not occur so often, but in principle it is quite operational and in what scenarios it can also be used. But again, if a person, for example, forgot the device, then of course it will show that the person is at home, but in fact he has already left.

And of course, the most versatile will probably still be the presence sensor, they can be placed quite a lot, according to the instructions, they are generally recommended to be placed very close to a person, for example, if a person is sleeping, then you need to put the sensor either above the person, or next to the person, or even under the bed, for example, install.

Of course, it seems that microwave radiation is bad, but in fact its power is not very large in principle, all these sensors somewhere consume 20 milliamps, so this is not critical at all, it is very small, respectively, they cannot train someone normally and strongly.

Because of this, of course, it is also not so scary and you can really use it in scenarios, but first, the sensors are not very cheap, and secondly, they certainly need to be installed in this way, they did not notice other movements outside the walls, that is, it will also need to be very carefully selected this location, because For example, I have a sensor in the kitchen, a presence sensor, but it even notices in the next room, if I open the door there, for example, it sees this door and reacts to it, which is not very convenient and sometimes looks very strange when I open the closet door, that is, when I open the closet door, the light in the next room turns on, it seems to be wrong, but it is almost impossible to get around it, because this sensor has a fairly wide viewing angle and its range is large, and even if it is limited, it will still notice it in one way or another and there is some error in determining the distance, for example, if I used the Tuya sensor, there the error jumps in the area of a meter, that is, a meter more, a meter less, and accordingly, of course, in the scenario that exactly two meters and then not to determine it will not work.

And in general, of course, because of all sorts of different restrictions, you most often have to adapt to automation, that is, you still need to understand that the system cannot understand everything, detect everything, react correctly, quickly, and quickly, so even when the door opens there or the light turns on, all this, or some sensor opening the door works, all this also works with some delay and you need to follow the exact sequence of all actions and probably the easiest way is of course just to install as you did before, set the switch at home / out of the house and just when people leave, switch this switch to out of the house mode and then the system will definitely understand that no one is there and will always work correctly.

Automation in a smart home should be useful and create additional comfort, but sometimes everything goes wrong… The reasons for this, and how to configure everything, see on my channel.

You may also watch

Article By Alex

If you have any ideas on how to improve automation, make it more reliable, fast and useful, then you can leave a comment below. I will try to implement the proposals and tell you in the following videos.