Fork me on GitHub

pimatic-rfl868 by Guss (akicker) | github | npm

0.7.3 to run on node 8 using serialport 6.2.2

Install with:

sudo service pimatic stop

cd /home/pi/pimatic-app/node_modules/

git clone https://github.com/akicker/pimatic-rfl868.git

cd /home/pi/pimatic-app/node_modules/pimatic-rfl868

npm install

You can load the plugin by editing your config.json to include:

{
  "plugin": "rfl868",
  "driverOptions": {
    "serialDevice": "/dev/tty.ACM0"
  }
}

cd

sudo /home/pi/pimatic-app/node_modules/pimatic/pimatic.js

pimatic-rfl868

This is a modified copy of pimatic-rflink Usage: to add a second rflink device - so you can use a 433 MHz module AND a 868 MHz module simultanous

Plugin Config Options

RFL868 config
OptionDescriptionDefault
driverOptions
object
Properties
serialport driver options
connectionTimeout
integer
Time in ms to wait for ready package or data to be received
10000
pingInterval
integer
Ping is requested at this interval when no other data hase been received
300000
reconnectInterval
integer
Time in ms between reconnect attempts, if undefined will increment gradually to maximum interval of 1 minute
debug
boolean
Log information for debugging, including received messages
true
rfdebug
boolean
Log raw RF packets
false
rfudebug
boolean
Log raw undecoded RF packets
false
qrfdebug
boolean
Log raw undecoded RF packets
false

Device Config Options

RFL868 device config schemes

RFL868Switch

RFL868Switch config options
OptionDescriptionDefault
protocols
array of objects
The switch protocols to use.
[]
Elements
forceSend
boolean
Resend signal even if switch has the requested state already
true

RFL868Dimmer

RFL868Dimmer config options
OptionDescriptionDefault
protocols
array of objects
The dimmer protocols to use.
[]
Elements
forceSend
boolean
Resend signal even if switch has the requested state already
true

RFL868ContactSensor

RFL868ContactSensor config options
OptionDescriptionDefault
protocols
array of objects
The switch protocols to use.
[]
Elements
invert
boolean
Trigger on OFF signal. Useful for pir sensors that emit OFF instead of ON signal
false
autoReset
boolean
Reset the state after resetTime. Useful for pir sensors that emit a absent signal
true
resetTime
integer
Time after that the presence value is reset to absent.
10000

RFL868Pir

RFL868Pir config options
OptionDescriptionDefault
protocols
array of objects
The switch protocols to use.
[]
Elements
invert
boolean
Trigger on OFF signal. Useful for pir sensors that emit OFF instead of ON signal
false
autoReset
boolean
Reset the state after resetTime. Useful for pir sensors that don't emit a absent signal
true
resetTime
integer
Time after that the presence value is reset to absent.
10000

RFL868Data

RFL868 config options
OptionDescriptionDefault
values
array of strings
[
  "temp",
  "hum"
]
protocols
array of objects
The data protocols to use.
[]
Elements
pimatic-rfl868 is written by Guss (akicker)