Skip to content

Latest commit

 

History

History
executable file
·
35 lines (24 loc) · 1.64 KB

README.md

File metadata and controls

executable file
·
35 lines (24 loc) · 1.64 KB

Gladys radioemitter

Radio emitter is used to control radio plugs.

Installation

  • 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 and RCSwitch 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

Credits

Thanks to Irumi for the first version of this module :)