The main core of Pimatic Homeduino is to handle 433,92 MHz RF devices. Homeduino can switch on/off, up/down and dimm RF devices. Also you are able to receive data from devices like weather stations, switches or other devices like PIR sensors and even more.
Here’s the overview of actual protocol implementations.
Let’s begin with an simple example for switching a remote wall plug.
Determine the unit/id (or housecode/id) codes for your device.
1.) Then lets begin with determine your device codes.
Every RF device has a unique RF adress, similar like an IP or MAC adress. This adress is mostly a combination of unit and id or housecode and id (depends on the protocol) or just an id.
The above device is the wall plug YCR 1000 from Intertechno. I like Intertechno 'cause many devices have these “turn wheels”. They are easy to use and you can assign the codes for yourself.
Other devices have dip switches or are self learning.
Ok, now go to the Messages and select debug option as well as homeduino.
Now you will see all debug messages from homeduino.
Take your remote and press the on button several times for switching your wall plug.
Homeduino will receive the the RF code and tries to translate it into the several protocols.
Now it’s up to you to decide which protocol you need. For that you’ll have to check the supported protocols.
For my above Intertechno switch it’s the switch 4 protocol. Now take a look at the debug output again and read the unit and id for switch 4. For my example it would be unit 19 and id 14.
After you’ve gotten the unit and id codes for the device AND you know which protocol to use, you can set up your device.
For code examples you can have a look here https://github.com/pimatic/pimatic-homeduino.
Change this example according to your needs and insert it into the device section of the config.json.
After you have edited and saved your config.json go ahead and start Pimatic.
Voila! Here you are - your new switch.
Now you know how to add your switchtes. Maybe you will create a new page for your RF switches or maybe pages for each room in the house to get a clearly arranged interface.