npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pimatic-raspbee-plus

v0.1.1

Published

Extended Pimatic plugin for raspbee zigbee network

Downloads

40

Readme

pimatic-raspbee-plus

Extended version of pimatic-raspbee by Treban

Extended Features

  • New devices: Cover, Warning(Siren) and SmartPlug
  • Hybrid light and sensor device SmartPlug

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: The extra feature

{
  "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 type | Feature | Deconz Resource Type | ---------------------- | ---------------------------- | -------------- | RaspBeeSwitch | switch on/off | On/Off plug-in unit & Smart plug | RaspBeeDimmer | switch and dimm light | Dimmable light | RaspBeeCT | change temperature | Color temperature light | RaspBeeRGB | change color | Color light | RaspBeeRGBCT | change color and temperature | Extended 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 type | Feature | Deconz Resource Type | --------------------------------- | ---------------------------- | -------------- | RaspBeeDimmerGroup (DEPRECATED) | switch and dimm | Group | RaspBeeRGBCTGroup (NEW) | change color and temperature | Group | RaspBeeGroupScenes | switch scene on | Group 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 flag | Unit | Deconz Resource Type | ------------------------ | ---------------------------- | --------------- | battery | % | (any battery-powered sensor) | lowbattery | bool | (any IAS Zone sensor) | carbon | bool | ZHACarbonMonoxide | switch | string | ZHASwitch | fire | bool | ZHAFire | humidity | % | ZHAHumidity | temperature | °C | ZHATemperature and any sensor with temperaure support | presence | bool | ZHAPresence | dark | bool | ZHAPresence & ZHALightLevel | lux | lux | ZHALightLevel | daylight | bool | ZHALightLevel | open | bool | ZHAOpenClose | pressure | hPA | ZHAPressure | water | bool | ZHAWater | vibration | bool | ZHAVibration | tampered | bool | (any IAS Zone sensor) | consumption | Wh | ZHAConsumption | power | W | ZHAPower & ZHAConsumption | voltage | V | ZHAPower | current | mA | ZHAPower

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

| | Value | Action | - | ----- | ------- | 0 | x000 | Initial Press | 1 | x001 | Hold | 2 | x002 | Release (after press) | 3 | x003 | Release (after hold) | 4 | x004 | Double press | 5 | x005 | Triple press | 6 | x006 | Quadruple press | 7 | x007 | Shake | 8 | x008 | Drop | 9 | x009 | Tilt | 10 | x010 | Many press

CHANGELOG

-> see CHANGELOG


Contributors pimatic-raspbee