0.1.7 • Published 4 years ago

pimatic-raspbee v0.1.7

Weekly downloads
50
License
GPL-2.0
Repository
github
Last release
4 years ago

pimatic-raspbee

build status version downloads license

This plugin provides a raspbee interface for pimatic.

Features

  • Auto-discover devices, groups and sensors
  • Control lights
  • Control groups
  • Control scenes
  • Support for all sensors
  • Observe changes over websocket
  • Start pairing for new devices
  • Backup the deconz config

Prerequisite

You need a rasbpee or conbee device and the deCONZ REST API must be installed and configured.

An other good solution is to run deconz as a docker container.

=> go to the WIKI - there are installation instructions and other useful tips.

Installation

Just activate the plugin over the pimatic webUI. The plugin manager automatically installs the package with his dependencys.

Configuration

You can also load the plugin by adding following in the config.json from your pimatic server:

{
  "plugin": "raspbee",
  "debug": true,
  "active": true,
  "ip": "<deconz ip>",
  "port": "<deconz port>"
}

Usages

To create a connection to the raspbee gateway, the gateway must be unlocked over the deconz UI. check the unlock howto Then make a device discovery in pimatic.

Supported devices

Lights

pimatic Device typeFeatureDeconz Resource Type
RaspBeeSwitchswitch on/offOn/Off plug-in unit & Smart plug
RaspBeeDimmerswitch and dimm lightDimmable light
RaspBeeCTchange temperatureColor temperature light
RaspBeeRGBchange colorColor light
RaspBeeRGBCTchange color and temperatureExtended color light

HINTs:

There are two color devices. RaspBeeRGB (Color light) emulates the ColorTemperature via a color code. RaspBeeRGBCT (Extended color light) supports native ColorTemperature actions. All lights are detected automatically

Tradfri bulbs do not support hue/sat actions. therefore only RGB values can be set in the rules.

Deconz also does not allow you to adjust the color or brightness when the lamp is off. Use a delay in rules. First switch on the lamp and then set the values.

Groups

pimatic Device typeFeatureDeconz Resource Type
RaspBeeDimmerGroup (DEPRECATED)switch and dimmGroup
RaspBeeRGBCTGroup (NEW)change color and temperatureGroup
RaspBeeGroupScenesswitch scene onGroup Scenes

I have created a new group device with all color controls.

Sensors

All sensors are represented as a RaspBeeMultiDevice.

The device has 3 arrays.

  • associated device IDs
    This array contains all device ID associated to this object.

  • support parameter flag
    This array contains all supported ressource types.

  • configMap
    During a device discovery, the config map is filled automatically. Customizable values ​​are stored in this config map. A custom config can be written to the API via the button (send config) on the new RaspBeeSystem device.

Supported resource types:

supports parameter flagUnitDeconz Resource Type
battery%(any battery-powered sensor)
lowbatterybool(any IAS Zone sensor)
carbonboolZHACarbonMonoxide
switchstringZHASwitch
fireboolZHAFire
humidity%ZHAHumidity
temperature°CZHATemperature and any sensor with temperaure support
presenceboolZHAPresence
darkboolZHAPresence & ZHALightLevel
luxluxZHALightLevel
daylightboolZHALightLevel
openboolZHAOpenClose
pressurehPAZHAPressure
waterboolZHAWater
vibrationboolZHAVibration
tamperedbool(any IAS Zone sensor)
consumptionWhZHAConsumption
powerWZHAPower & ZHAConsumption
voltageVZHAPower
currentmAZHAPower

The other sensor types are DEPRECATED

but still usable

  • RaspBeeMotionSensor
  • RaspBeeContactSensor
  • RaspBeeLightSensor
  • RaspBeeSwitchSensor
  • RaspBeeWaterSensor

RaspBeeSystem management device

discover lights & discover sensors

This button starts a light or sensor detection from the deconz api.

create backup

This button creates a local backup of the deconz config.
The target folder is configurable. (default folder is the pimatic-app folder)

send config

This button sends for all devices all config parameter (configMap) to the deconz apikey.

ActionProvider

  • "activate group scene -name-"

  • "set color temp -name- to -value-"

  • "set color rgb -name- to -hexvalue-"

  • "dim raspbee -name- to -value-"

Example:
set color temp Light1 to 10 and set color rgb Light2 to #121212 and activate group scene All-ON

Optional a -transtime- can be specified. This allows the changeover to be time-controlled.

Example:
dim raspbee Flur to 100 transition time 2s and set color rgb Light RGB to #FF0000 with transition time 2s

PredicateProvider

  • "received from -name- event "2001""

Example: recieved from Switch1 event "2001"

ButtonEvents

ValueAction
0x000Initial Press
1x001Hold
2x002Release (after press)
3x003Release (after hold)
4x004Double press
5x005Triple press
6x006Quadruple press
7x007Shake
8x008Drop
9x009Tilt
10x010Many press

CHANGELOG

-> see CHANGELOG


Contributors

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-beta.1

5 years ago

0.0.11-beta.10

5 years ago

0.0.11-beta.9

5 years ago

0.0.11-beta.8

5 years ago

0.0.11-beta.7

5 years ago

0.0.11-beta.6

5 years ago

0.0.11-beta.5

5 years ago

0.0.11-beta.4

5 years ago

0.0.11-beta.3

5 years ago

0.0.11-beta.2

5 years ago

0.0.11-beta.1

5 years ago

0.0.11-beta.0

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago