Fork me on GitHub

pimatic-rfxcom by Tim van de Vathorst | github | npm

pimatic-rfxcom

Pimatic plugin for the RFXcom

ATTENTION: example config not up to date.

see: https://forum.pimatic.org/topic/2763/pimatic-rfxcom-major-update-1-0-0

Demo config - plugin

    {
      "plugin": "rfxcom",
      "usb": "/dev/cu.usbserial-03VGYP88",
      "debug": false
    }

Demo config - devices

At the moment only the devices below are supported.

Lighting 1 switch

    {
      "id": "rfx-switch-1",
      "name": "Room light",
      "class": "RFXComDevice",
      "code": "C4",
      "packetType": "Lighting1"
    }

Lighting 2 switch

    {
      "id": "rfx-switch-2",
      "name": "Room light",
      "class": "RFXComDevice",
      "code": "0x009DA962/1",
      "packetType": "Lighting2"
    }

Lighting 2 PIR (motion sensor)

    {
      "id": "rfx-pir-sensor",
      "name": "PIR",
      "class": "RfxComPir",
      "code": "0x011DC5FA",
      "unit": 10,
      "packetType": "Lighting2",
      "resetTime": 6000,
      "autoReset": true
    }

Lighting 2 Contact sensor

    {
      "id": "rfx-contact-sensor",
      "name": "Deur",
      "class": "RfxComContactSensor",
      "code": "0x00D5F8A6",
      "unit": 10,
      "packetType": "Lighting2",
      "resetTime": 6000,
      "autoReset": false
    }

Plugin Config Options

RFXCoM config options
OptionDescriptionDefault
usb
string
the usb port where the RFXCoM is connected, some values are: COM1 for Windows and /dev/ttyS0 or /dev/ttyUSB0 for Linux
"/dev/ttyUSB0"
debug
boolean
debug output on or off
false

Device Config Options

pimatic-rfxcom device config schemas

RfxComPowerSwitch

Rfxcom config options
OptionDescriptionDefault
id
string
unique ID
name
string
Name your device
code
string
The address based on what type you use
unitcode
integer
The unit based on what type you use
packetType
string
The lighting type old KaKu models use lighting1 new ones lighting2

RfxComDimmerSwitch

Rfxcom config options
OptionDescriptionDefault
id
string
unique ID
name
string
Name your device
code
string
The address based on what type you use
unitcode
integer
The unit based on what type you use
packetType
string
The lighting type old KaKu models use lighting1 new ones lighting2

RfxComPirSensor

Rfxcom config options
OptionDescriptionDefault
id
string
unique ID
name
string
Name your device
code
string
The address based on what type you use
unitcode
integer
The unit based on what type you use
packetType
string
The lighting type old KaKu models use lighting1 new ones lighting2
resetTime
integer
the reset time.
autoReset
boolean
enable reset yes or no.

RfxComContactSensor

Rfxcom config options
OptionDescriptionDefault
id
string
unique ID
name
string
Name your device
code
string
The address based on what type you use
unitcode
integer
The unit based on what type you use
packetType
string
The lighting type old KaKu models use lighting1 new ones lighting2
resetTime
integer
the reset time.
autoReset
boolean
enable reset yes or no.
pimatic-rfxcom is written by Tim van de Vathorst