I'm preparing a smart home for the summer

The operation of a smart home in winter and summer is very different, because it is a different length of daylight, different air temperatures outside and, accordingly, different air draught in the apartment, and the influx of air from the street, too, different humidity outside and humidity inside, and therefore when you come up with a scenario in winter, I just forget a lot of things. to take into account is that, for example, it may be light outside and it starts to get light early, for example, and in winter, of course, I do not take into account and make a scenario like this, for example, lighting that simply turns on and off without taking into account the time of day, of course, there are also different temperatures, it's usually very cold in winter, and therefore you have to think about how to heat the apartment additionally, which radiators to use, how to measure the temperature of central heating radiators, and I don't think at all about how to improve air conditioning or ventilation, because in general there are no problems with this.

When I write or set up a script in the summer, another problem arises that I generally forget that I need to set up some kind of thermostat or underfloor heating, and what mode of operation it should have, I can basically turn off the script for the summer and not even think about it until it gets cold again. and then I go periodically and think that I probably need to get busy and set up, because soon it will be winter abruptly, you will need to turn on the underfloor heating or some other thermostat.

I have dashboards based on iPads that do not allow you to adjust the brightness normally and they actually have a constant brightness set, and just due to the image I change the brightness to lower or higher depending on the time of day, but in winter it is usually very dark and I set some kind of maximum brightness not very high, and when let's say it's completely dark outside or at night, so that it doesn't shine, I also lower this brightness very much with the help of a special command, the illumination value is sent to my dashboard, or rather, the brightness of this dashboard, this screen, from 0 to 100, and accordingly, I send almost 0, and it glows so slightly so that at night, if I look at it, it doesn't blind my eyes, but in fact, when the sun starts shining through the window in summer, for example, and maybe it doesn't even hit the iPad itself, but in in principle, the room is so bright that the image on the iPad itself becomes invisible at all and of course you have to increase the brightness on it manually and it is fixed until the iPad is turned off and of course there is not enough adjustment at night, that is, in principle, it starts to shine brightly, therefore, it is necessary to increase the maximum and minimum range itself, and of course it is very difficult to take this into account and write a scenario that will also take into account the weather, more precisely, it is sunny outside or not sunny, let's say winter or still summer, of course this scenario will be too complicated, I already have the brightness control scenario itself. The dashboard is probably the most difficult scenario, because it needs to be bright and therefore not bright, and depending on different conditions, I had to make it so that I don't just evaluate the illumination in the room and adjust the brightness, at first, that's how I had the light sensor, which simply measures the illumination and sends information to the smart home server, and then I look at what range there is and calibrate this value and already send either one hundred percent brightness on the dashboard, or 10 percent brightness, but the change itself was fast enough.it took an average of 10 seconds to change the brightness, it's just that I check these scenarios and these parameters with such frequency, but when it gets dark, for example, it turns out that in winter it's almost always dark and the curtains are closed, and if you turn on the light, then the image on this dashboard will not be visible again, so I had to make a tricky rule that works on the value of the light switches, if certain lights are turned on, then the brightness is set to around 50 percent, if the general large light is turned on, then the brightness is set to one hundred percent, and then it turns out that in in principle, it is very quickly adjusted and the brightness itself is, in principle, quite adequate, it is clear when the sun is shining brightly outside and I will not turn on any switches and of course I will need to do this, in order for it to work correctly depending on the brightness value, this rule will be rewritten and reconfigured again, and you have to make different rules every time and in winter and summer, and it's probably easier to just make two separate blocks that will be right there from such and such a date to such and such a date or such and such a month to work. it will probably be easier than making some kind of universal rule.

In some rooms, I have made it so that the light sensor is not responsible for assessing the brightness of the room, although it is also there, but there is a camera that basically takes a picture once a minute, and moreover it can still if the camera itself shoots more often, once per second, and if there is a sharp change in the size of the picture, that is, I get the size the pictures are in JPEG and I check if the size of the picture has changed a lot, then the brightness in the room has changed a lot, and when the brightness is high, the detail is higher and the size of the picture is higher, more, and if it is dark or not very dark yet, but in principle it is already dusk, then, of course, the detail drops and the size of the picture is correspondingly smaller, and if the size has changed dramatically, then I send this information to the smart home system, it is the size of the picture itself, not the picture, and in principle I understand that if there is a size of 10 kilobytes, then I believe that this is a very low brightness, if the size is about If this picture has 20 kilobytes, it's very bright, which means that the brightness in the room is normal, and first of all, I adjust the brightness of the dashboard from this and the brightness of the night light can also be adjusted from this.

As a night light, we also use a Xiaomi gateway flashed there, it also has a built-in light sensor, and even when it turns on itself, it sees this change in illumination and sends this signal to the smart home system, of course, it constantly sends the correct values of this illumination, even if, for example, opposite a window or opposite some kind of lamp. A man passed by and a shadow fell on this gateway, then it also reacts and sends it to the smart home system, so it's not very good to believe this value and I don't really use it, although, in principle, I keep it just in case, maybe I'll analyze it later and decide how to filter out these values, and even in principle the idea was just to determine if it was a motion sensor, if it saw a change, it means a person is walking and maybe you need to do something, that is, turn on the light or something else.

And of course, when summer comes, you have to think about how to set up the thermostats, either turn them off altogether, or switch them to some other mode, of course, you can just set the temperature on them, for example, 24 degrees, and it's clear that there is usually no such temperature in summer and they will actually always be off, and let's say if it's a heater, then it won't turn on, but sometimes, of course, I can put the heaters away for the summer somewhere or just physically pull it out of the socket, but sometimes it's cool enough, there are cool days, and of course, in this case, it's not very convenient to get it out again or reconfigure it again, I've done it so that the temperature and humidity sensor from Xiaomi and the smart socket from Tuya, which also works using Zigbee, are actually used as a thermostat, and the heater is simply plugged into it, so of course it turns on or turns on depending on the temperature, and if the temperature has dropped, it turns on, if it has increased, it turns off, but there is also a separate logic switch that basically switches this virtual thermostat to off mode, and then it doesn't react to the temperature, and of course you can turn it off and on manually, but it's not very convenient, and of course it's better to provide a rule that will work correctly.

For example, if there is a underfloor heating, then even in summer it is sometimes good when the underfloor heating is still warmer than a certain degree and it is more pleasant to walk on it, and if you wipe it there, it dries faster, that is, in general, it is much more comfortable when it is turned on, of course, and therefore it is probably not worth turning it off completely. well, of course, I also have one room that is practically not used in winter, it's a balcony, glazed, in fact a loggia, where in winter I just keep +4 degrees, I sometimes use it as a refrigerator, or it's as an additional storage room, in summer, of course, this is the main place where, in principle, there are two armchairs and most of the time is spent there, of course, I want both light and heat on this balcony to be maintained in a comfortable condition.

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.