n3roGit / pimatic-z-way

pimatic plugin for controlling devices using Z-Way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pimatic-z-way plugin

This is a pimatic plugin which allows you to control Z-Wave devices using Z-Way.

Configuration

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

{
   "plugin": "z-way",
   "hostname": "10.10.7.46" // set hostname if necessary (localhost by default)
}

Devices can be defined by adding them to the devices section in the config file. Set the class attribute to ZWaySwitch, ZWayDimmer or ZWayPowerSensor. For example:

{
  "class": "ZWaySwitch",
  "id": "fibaro_plug",
  "name": "Wall Plug",
  "virtualDeviceId": "ZWayVDev_zway_2-0-42",
  "interval": 0
},
{
  "class": "ZWayDimmer",
  "id": "fibaro_dimmer",
  "name": "Dimmer",
  "virtualDeviceId": "ZWayVDev_zway_2-0-44",
  "interval": 0
},
{
  "class": "ZWayPowerSensor",
  "id": "fibaro_power_sensor",
  "name": "Power Sensor",
  "virtualDeviceId": "ZWayVDev_zway_2-0-43"
}

Figure the virtualDeviceId out by calling curl http://HOSTNAME:8083/ZAutomation/api/v1/devices. If the interval option is greater than 0 then the state of the device is updated automatically after the defined seconds. Sensors always should have a value greater than 0.

About

pimatic plugin for controlling devices using Z-Way

License:GNU General Public License v2.0


Languages

Language:CoffeeScript 100.0%