Wifi or Zigbee for smart sockets in a smart home
I recently talked about wi-fi sockets, I have three of them. The disadvantage of these outlets is that they work through the Tuya cloud, and the plus is that they only need a router to work. Through the app, you can set up different timers, you can set up simple scenarios, but the problem is to add these devices to the smart home, since they are always some kind of crutches and there are no normal solutions.
I also have Zigbee sockets and I don't plan to completely switch to them, but of course they have a minus, this is one, this is the presence of a gateway. In fact, this is not such a big problem as it is usually shown, because the cost of the gateway is quite low-about 1000 rubles, this is if you buy a universal one that can also add Bluetooth plus to zigbee.
If you only buy a zigbee gateway, then in principle it is even cheaper. The downside is that each ecosystem will need its own gateway. For example, I have a purchased Xiaomi gateway, I bought it a long time ago, at the very beginning, and I just tried to experiment on it how zigbee devices work.
It was possible to make small scenarios on it, for example, it included motion sensors and opening sensors, it was possible to make the plus process these sensors and work as a night light, and turn on when moving or opening the door. I had it lying around for a while, because I realized that it was easier to switch to one universal gateway and not use several different ones, because I didn't buy the Tuya gateway anymore.
After good people came up with a way to reflash the Xiaomi gateway, I did it, although I broke several fasteners there, after that its functionality has greatly increased, now I think that this is probably the most useful device in the house, since it can work as a speaker that voices various events, it also works as a night light in I have set up several channels on my server and broadcast them to this speaker.
But now I don't use it because the quality of music is so-so, but I have a Yandex speaker that plays quite well. If I need to listen to music not from Yandex, but my own, then I have Bluetooth amplifiers that are connected to normal speakers, and I can already broadcast the necessary music from my server's smart home system to them.
Through the app, you can configure different timers and small scenarios. I have set up automation based on the motion sensor, and you can use the dawn and sunset sensors. The Tuya app also has the ability to adjust the temperature of the air outside.
To use the Xiaomi gateway, the Mi Home app is used. It also has the ability to configure timers by time and day of the week. I have set up several scripts, but there is also an option to disable and enable scripts from other scripts, but when I created about five scripts, it became quite difficult to manage this and in principle I already decided to give up.
I also bought a Xiaomi wi-fi camera that connects to the MiHome app, and you can control different scenarios related to motion sensors from one app, and for example turn on the camera. In principle, the camera itself is not bad, it has IR illumination, it has an SD card, and you can record video on it, you can watch it through the camera recording app, but the problem was that this camera cannot be connected to the smart home system.
After I bought Tapo cameras from tp-link, they have almost the same functionality as Xiaomi, but they have a big plus, they give a stream over RTSP, and they can be easily connected to a smart home system. Therefore, the Xiaomi camera is now practically unused and useless, but for a start it was quite suitable.
Smart sockets can switch on and off, measure the mains voltage, measure the amperage of the connected load, and measure consumption. The problem is that there are some smart sockets that handle power consumption information in a very strange way. They send information with a certain delay of up to 30 seconds, which is sometimes an eternity. For example, my kettle can boil much faster, and other outlets update information much faster, in the region of 10 seconds, I don't think that they have any super computer there, so they often send information as it is and it may not have had time to pay yet.
In different systems, of course, this is handled differently. For example, in Home Assistant, they offer to create a virtual sensor and already record this parameter in it, filtering the values, and then the graphs will not be plotted with a large spread from 0 to 230 volts, for example, but will be plotted correctly in the acceptable range. But since I process my sensors in my own script, I don't have such a problem, I added a filter there immediately and save the base with the correct value.
Of course, you need to check all the values since the current strength and consumption can be zero, the voltage can not be zero, because when the voltage is turned off, the socket will not be able to transmit anything, but I think that nothing will work on the receiver side either.
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.