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
Option | Description | Default |
---|
driverOptions object | | |
Properties serialport driver options Option | Description | Default |
---|
serialDevice string | The name of the serial device to use | "/dev/ttyUSB0" | baudrate integer | The baudrate to use for serial communication | 57600 |
|
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
Option | Description | Default |
---|
protocols array of objects | The switch protocols to use. | [] |
ElementsOption | Description | Default |
---|
name string | | | id string | The device/home id of the switch | | switch string | The button id of the switch | | send boolean | Toggle send with this protocol | true | receive boolean | Toggle receive with this protocol | true |
|
forceSend boolean | Resend signal even if switch has the requested state already | true |
RFL868Dimmer
RFL868Dimmer config options
Option | Description | Default |
---|
protocols array of objects | The dimmer protocols to use. | [] |
ElementsOption | Description | Default |
---|
name string | | | id string | The device/home id of the switch | | switch string | The button id of the switch | | send boolean | Toggle send with this protocol | true | receive boolean | Toggle receive with this protocol | true |
|
forceSend boolean | Resend signal even if switch has the requested state already | true |
RFL868ContactSensor
RFL868ContactSensor config options
Option | Description | Default |
---|
protocols array of objects | The switch protocols to use. | [] |
ElementsOption | Description | Default |
---|
name string | | | id string | The device/home id of the switch | | switch string | The button id of the switch | |
|
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
Option | Description | Default |
---|
protocols array of objects | The switch protocols to use. | [] |
ElementsOption | Description | Default |
---|
name string | | | id string | The device/home id of the switch | | switch string | The button id of the switch | |
|
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
Option | Description | Default |
---|
values array of strings | | [
"temp",
"hum"
] |
protocols array of objects | The data protocols to use. | [] |
ElementsOption | Description | Default |
---|
name string | | | id string | The device id | |
|
pimatic-rfl868 is written by Guss (akicker)