Package Exports
- pimatic-coc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pimatic-coc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pimatic-coc
This is a pimatic plugin which allows you to connect a busware COC module or a busware CUL to the pimatic home automation framework.
##Installation
###Add the plugin To enable the COC plugin add this section to your config.json file.
...
{
"plugin": "coc"
}
...To use a CUL device connected to an USB port instead of an internally connected COC module, you need to set the hardware type and the serial device name.
...
{
"plugin": "coc",
"hardwareType": "CUL",
"serialDeviceName": "/dev/tty_your_name_here"
}
...Use
dmesg | grep ttyto find the serial device name of the CUL.
###Add devices
The COC plugin currently defines two types of devices.
- The COCSwitch device supports the COC generic commands for on and off. You can use it for all supported protocols.
- The COCSwitchFS20 device is a specialized version which controls FS20 devices. It creates the needed on/off commands internally.
This is an example for the devices section in the config.json file.
...
"devices": [
{
"class": "COCSwitch",
"id": "socket2",
"name": "Socket 2",
"commandOn": "F1234A811",
"commandOff": "F1234A810"
},
{
"class": "COCSwitchFS20",
"id": "socketF1",
"name": "Socket FS20",
"houseid": "1234",
"deviceid": "A8"
}
],
Attention: This plugin uses the onoff module, which has some issues with Raspian jessie. Check this to fix the issue.