Radio emitter is used to control radio plugs.
- First, install the Serial module in Gladys
- Then, install this module in Gladys
- Push the arduino code to your arduino with the Arduino IDE. You need to have
ArduinoJson
andRCSwitch
libraries installed. To install the libraries, in the arduino IDE (version > 1.6) go to "Sketch" => "Include Library" => "Manage Libraries". Then search "ArduinoJson" and click on "install". Same for "RCSwitch". - Reboot Gladys
- Connect your arduino in USB to your Raspberry Pi
- Click on the "config" button of the "Serial" module in the "Modules" view.
- Create a device in Gladys in the Device view with the following info =>
name | identifier | protocol | service |
---|---|---|---|
My Switch | YOUR_DECIMAL_CODE_FOR_THIS_SWITCH_OFF | radio | radioemitter |
- Then, inside this device, create a deviceType :
type | min | max |
---|---|---|
binary | 0 | 1 |
note: if phenix like outlets (decimalCodeOn = decomalCodeOff + 1), keep 1 as max value. If decimal codeON is not related to decialCodeOff, just put decimalCodeON as max.
- You can specify canal & pulseLength of signal sent in deviceTypeIdentifier. Default are 1 & 100 if not specified and work for most devices.
identifier | type | min | max |
---|---|---|---|
CANAL:PULSELENGTH | binary | 0 | 1 |
Thanks to Irumi for the first version of this module :)