📜 ⬆️ ⬇️

Reliable user-friendly management of the power loads of the smart home: Domoticz + manual switch

Hi, Geektimes!

I implement my smart home and I want to share a few solutions achieved.

As a central controller in my smart home version, I use the Raspberry Pi with Domoticz and MQTT brokers installed Mosqito. The central controller controls a variety of loads, often located far enough away from the main building, for example, in a garage or in a greenhouse. In such remote nodes I use inexpensive KMTronic UDP relays for switching loads and Arduino with Ethernet Shield for data acquisition and feedback.
')
Moreover, I prefer to use a switching circuit such that at any time, including when the elements of the infrastructure of a smart home fail, I can switch loads manually. For me, the requirement of reliability is secondary - the main thing is that my wife always maintains the usual management interface, which will keep the peace in the family and give me the opportunity to continue my favorite hobby.

Idea


The idea is simple: the application of the classical inclusion scheme from two places:



The SA1 switch is one of the KMTronic relay outputs (NO-C-NC), and the SA2 switch is a common household single-key switch. Everything works fine, only there is one nuance - the controller has no information about the actual state of the load. It does not matter - we will add an intermediate relay or a KM contactor with a 24V coil to the circuit as a load:


So we kill several birds with one stone:

As intermediate relays I like to use Hager ERxxxx on 24V with forced manual control (OFF, AUTO, ON).



This option helps a lot when debugging and in further use.

Implementation


Connect KMTronic UDP Relay to Domoticz on Raspberry Pi




Collecting information about the state of loads with the help of Arduino using the MQTT protocol



Thank you for your attention, I hope someone my experience will be useful.

Source: https://habr.com/ru/post/397621/


All Articles