GithubHelp home page GithubHelp logo

hobbyquaker / node-red-contrib-zigbee Goto Github PK

View Code? Open in Web Editor NEW
86.0 25.0 15.0 1.38 MB

Node-RED Nodes for ZigBee Devices 🐝

License: MIT License

HTML 42.39% JavaScript 57.61%
zigbee zigbee-shepherd node-red home-automation smarthome zigbee-herdsman cc2531 hue aqara tradfri

node-red-contrib-zigbee's Introduction

node-red-contrib-zigbee

NPM version Build Status XO code style License

Control Zigbee Devices (Xiaomi Aqara, Hue, Lightify, Tradfri, ...) with Node-RED via a CC253x Module. No need for proprietary bridges anymore, use devices of different vendors in one Zigbee network.

⚠️ Project abondoned, I'm not using it anymore and therefore I will not work on this anymore. I strongly advice against using it - I recommend using zigbee2mqtt!

Credits

Based on zigbee-herdsman, Koenkk's fork of Zigbee Shepherd. Strongly inspired by his awesome zigbee2mqtt project.

Hardware Prerequisites

see https://www.zigbee2mqtt.io/getting_started/what_do_i_need.html Ready to use firmware images are available here: https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

Getting started

Add any Zigbee Node, open it's configuration, add a "herdsman" node, configure it, close both nodes and deploy. Wait a few seconds and go to the configuration of the "herdsman" node again, now you should be able to pair devices. Keep an eye on Node-RED's log output.

Nodes

herdman

Config node that holds the serial port and ZigBee network configuration of zigbee-herdsman. You should change the networkKey for security reasons before pairing the first devices. I suggest to use a password manager (like e.g. KeyPass) to create and store a random key (has to be 16 Byte in uppercase hex representation (32 chars 0-9A-F). With this config node you can also manage your devices (pairing, removing, renaming), reporting, groups and binds.

converter

This Node utilizes Koenkk's zigbee-herdsman-converters and offers payload formats as known from zigbee2mqtt. In fact most of this nodes code is taken 1:1 from zigbee2mqtt.

hue

This node aims to be a drop-in replacement for https://github.com/hobbyquaker/hue2mqtt.js

offline

This node outputs the online/offline status of the devices.

event

This Node outputs events as received from zigbee-herdsman.

command

Send a command to a device endpoint or group.

controller

Call methods of the herdsman controller

Todo

  • Converter node: readAfterWrite
  • Hue node: readAfterWrite
  • Converter node: Determine endpoint
  • Converter node: Group support
  • Converter node: Get command
  • Hue node: Group support
  • Command node: Group support
  • Group bind support
  • remove frontend debug output
  • per-device configurable ping
  • per-device configurable configure
  • Secure shepherd node REST API, use Authentication
  • Documentation
  • Adapt to Node-RED 1.0 message API
  • OTA Update

License

MIT (c) Sebastian Raff

node-red-contrib-zigbee's People

Contributors

g1k avatar hobbyquaker avatar hogthrob avatar hypnos3 avatar jokakilla avatar maladus avatar sineos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-contrib-zigbee's Issues

zigbee-shepherd node fails to deploy

I have completely empty node-red installation and I want to try zigbee-shepherd plugin. When I am trying to add and deploy zigbee shepherd node I get the following error:

27 Jan 11:59:19 - [error] [zigbee-shepherd:zigbee shepherd] Error: ENOENT: no such file or directory, open '/data/zigbee/e46dcccc.8871e/names.json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at new ZigbeeShepherd (/data/node_modules/node-red-contrib-zigbee/nodes/shepherd.js:148:50)
    at createNode (/usr/src/node-red/node_modules/node-red/red/runtime/nodes/flows/Flow.js:305:18)
    at Flow.start (/usr/src/node-red/node_modules/node-red/red/runtime/nodes/flows/Flow.js:67:31)
    at start (/usr/src/node-red/node_modules/node-red/red/runtime/nodes/flows/index.js:328:29)
    at /usr/src/node-red/node_modules/node-red/red/runtime/nodes/flows/index.js:164:25
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
27 Jan 11:59:19 - [info] Started flows
27 Jan 11:59:19 - [red] Uncaught Exception:
27 Jan 11:59:19 - Error: ENOENT: no such file or directory, open '/data/zigbee/e46dcccc.8871e/dev.db'

TypeError: Cannot read property 'joinPermitted' of undefined

After installing Node-Red, node-red-dashboard and node-red-contrig-zigbee I just started Node Red and found this in the systemd journal (The messages are coming every second):

Sep 29 15:37:14 miranda red.js[6417]: TypeError: Cannot read property 'joinPermitted' of undefined
Sep 29 15:37:14 miranda red.js[6417]: at RED.httpAdmin.get (........./node_modules/node-red-contrib-zigbee/nodes/shepherd.js:33:58)
Sep 29 15:37:14 miranda red.js[6417]: at Layer.handle [as handle_request] (........./node_modules/express/lib/router/layer.js:95:5)
Sep 29 15:37:14 miranda red.js[6417]: at next (........./node_modules/express/lib/router/route.js:137:13)
Sep 29 15:37:14 miranda red.js[6417]: at Route.dispatch (........./node_modules/express/lib/router/route.js:112:3)
Sep 29 15:37:14 miranda red.js[6417]: at Layer.handle [as handle_request] (........./node_modules/express/lib/router/layer.js:95:5)
Sep 29 15:37:14 miranda red.js[6417]: at ........./node_modules/express/lib/router/index.js:281:22
Sep 29 15:37:14 miranda red.js[6417]: at Function.process_params (........./node_modules/express/lib/router/index.js:335:12)
Sep 29 15:37:14 miranda red.js[6417]: at next (........./node_modules/express/lib/router/index.js:275:10)
Sep 29 15:37:14 miranda red.js[6417]: at expressInit (........./node_modules/express/lib/middleware/init.js:40:5)
Sep 29 15:37:14 miranda red.js[6417]: at Layer.handle [as handle_request] (........./node_modules/express/lib/router/layer.js:95:5)

Exemple Flow

Hello

Congrats for your hard work, would it be possible to had a small example flow?

Error: endpoint not found

Hello everybody,

I have a CC2531. This works perfectly with my HUE bulbs. I can control everything. That is not the problem.
But I keep getting the following message: endpoint not found 0x001788010275aec2 11
Although the bulbs are controllable, the status is "offline".
It is also noticeable that the file /data/zigbee/e13a1ef9.f7921/dev.db grows larger with each Node-Red reload. The same number of devices, just a new JoinTime.

I don't see my mistake ;-)

Can you help me with this? Do you need more information?

Thanks und regards,
Benni


2019-05-13 07_37_59-Clipboard


2019-05-13 07_40_48-Node-RED _ node neumann space - Brave


Here is some log:

13 May 05:11:54 - [debug] [zigbee-shepherd:zigbee shepherd] stopping
13 May 05:11:54 - [debug] [zigbee-shepherd:zigbee shepherd] stopped shepherd
13 May 05:11:54 - [info] [zigbee-shepherd:zigbee shepherd] persistPath /data/zigbee/e13a1ef9.f7921
13 May 05:11:54 - [info] [zigbee-shepherd:zigbee shepherd] connecting /dev/ttyACM0 {"baudRate":115200,"rtscts":true}
13 May 05:11:54 - [debug] [zigbee-converter:ControlHueLight] topic=zigbee/0x001788010275aec2/set name=Wohnzimmer Schrank ieeeAddr=0x001788010275aec2 attribute=undefined payload={"brightness":0,"transition":3}
13 May 05:11:54 - [debug] [zigbee-converter:ControlHueLight] payload {"brightness":0,"transition":3}
13 May 05:11:54 - [error] [zigbee-shepherd:zigbee shepherd] endpoint not found 0x001788010275aec2 11
13 May 05:11:54 - [warn] [zigbee-converter:ControlHueLight] no conversion for transition
13 May 05:11:54 - [debug] [zigbee-converter:ControlHueLight] topic=zigbee/0x00178801011cb05a/set name=Wohnzimmer Couch ieeeAddr=0x00178801011cb05a attribute=undefined payload={"brightness":0,"transition":3}
13 May 05:11:54 - [debug] [zigbee-converter:ControlHueLight] payload {"brightness":0,"transition":3}
13 May 05:11:54 - [error] [zigbee-shepherd:zigbee shepherd] endpoint not found 0x00178801011cb05a 11
13 May 05:11:54 - [warn] [zigbee-converter:ControlHueLight] no conversion for transition
13 May 05:11:55 - [error] [zigbee-shepherd:zigbee shepherd] endpoint not found 0x001788010275aec2 11
13 May 05:11:55 - [error] [zigbee-shepherd:zigbee shepherd] endpoint not found 0x00178801011cb05a 11
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] coordinator 0x00124b0018e1b1c4 firmware version: 2.6.3 20190223
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] started panId: 0xbe9b channel: 11 (11)
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] ready
13 May 05:11:56 - [debug] [zigbee-shepherd:zigbee shepherd] device list unchanged
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] Currently 2 devices are joined:
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] 0x001788010275aec2 Wohnzimmer Schrank (Router Philips LCT010)
13 May 05:11:56 - [info] [zigbee-shepherd:zigbee shepherd] 0x00178801011cb05a Wohnzimmer Couch (Router Philips LST002)
13 May 05:12:12 - [info] [zigbee-shepherd:zigbee shepherd] permitJoin 0 all
13 May 05:12:14 - [info] [zigbee-shepherd:zigbee shepherd] permitJoin 0 all
13 May 05:12:17 - [info] [zigbee-shepherd:zigbee shepherd] permitJoin 0 all
13 May 05:12:35 - [info] [zigbee-shepherd:zigbee shepherd] permitJoin 0 all


join hue light by serial number

Hi hobbyquaker,

ich habe gebrauchte Hue Lights gekauft und möchte diese über CC2531 -> CCU3 -> Redmatic -> node-red-contrib-zigbee ansprechen. Das hat bei der ersten auch wunderbar funktionert, aber bei der zweiten nicht.
Daher würde ich diese gerne auf die Werkseinstellungen zurück setzen. Ich habe keine Hue oder TRÅDFRI Fernbedienung, aber ich habe gelesen, dass man diese auch an der Hue Bridge mittels Seriennummer Verbinden und damit resetten kann. Geht das auch mit deinem node?

Danke und Grüße
Christoph

Need help for configuring node to control bulb

Hey all,

sorry for questioning this question, but i need help as i dont find the issue/ root cause for this error.
My flow looks like that, but unfortunaletyl, the bulb is not controlled...

grafik

Precisely, i receive the following errors from the debug nodes:
12.5.2019, 08:52:13node: zigbee shepherd msg : string[20] "Unrecognized command"
12.5.2019, 08:52:13node: 4d93410.405084zigbee/0x90fd9ffffe04bdb6/brightness : msg.payload : number 254

The JSON node looks like that:
grafik

The switch node is to filter the inputs of the WallSwitch. Its a two-sided button.

Can anyone help?
Would appreciate that! Many thanks!

Errors running version 0.8.0

Upgraded to latest version 0.8.0
I now get many timeout errors on the zigbee nodes.
1/2 times a node red restart fixes it. the rest 1/2 times - 2 node red restarts fixes it

Every deployment also causes a timeout on the nodes.

Here's my scenario now

  1. Deploy
  2. Zigbee nodes switch to Closing state
    zig1
  3. After deployment:
    zig2

Also in debug:
zig12

command node improvements

  • cmd specific input form
  • overwrite via msg
  • .foundation()
  • .functional()
  • .read()
  • .write()
  • .bind(), .unbind() - tbd: makes bind node obsolete
  • .report() (#19)

Hue Motion Sensor is not supported correctly?

Hi there!

It seems that the Hue Motion Sensor is not working properly?!
I can pair this Sensor successfully and the zigbee shepherd reports it as correctly paired to the system.
grafik

But the sensor is not reporting any data to the system at all. It can happen that the sensor reports data for some time, but at any time it stopps.

This is the log i get:

19.5.2019, 00:47:34node: zigbee shepherd
msg : string[88]
"configure failed 0x0017880104b5003b Bewegungsmelder Flur Error: Timed out after 10000 ms"

I can imagine that it is related to this topic here:
Koenkk/zigbee2mqtt#893

But i am not able to delete/ unpair this sensor from the system, i always get the following error when pressing on the X next to device within node-red:

19.5.2019, 00:47:29node: zigbee shepherd
msg : string[57]
"remove 0x0017880104b5003b Error: Timed out after 10000 ms"

Anyone knows how to delete this device to repair?

devices Node - keine Devices aufgelistet - sonst läuft es

Hallo,

obwohl ich 5 Geräte verbinden konnte sehe ich in der Detail-Ansicht vom Device-Node keine Devices. Ganz am Anfang meine ich mich erinnern zu können, dass dort die ID + 2 Text-Felder pro Device waren - diese sind nicht mehr da - einfach ein leeres Feld mich keinerlei Text / Textfeldern.

Gruß
Markus

Livolo zigbee switches

Hi can you please tell if the Livolo zigbee switches are compatible?
Thanks ina advance
Chris

Control of Trafdri Bulbs - Issue related to new version 0.8.0 or syntax error?

Hi all,

concerning this issue here https://github.com/hobbyquaker/node-red-contrib-zigbee/issues/46#issue-493701926 i am wondering of i did something wrong to adress my tradfri bulbs or if someone else experience atm the same issue.

Can we compare the payload we send to the bulbs, just to verify that i did not have done any mistaktes in the syntax or something else?

E.g. one example of a flow is as follows:
grafik

[{"id":"793cc81.0892e38","type":"zigbee-converter","z":"9e4c8be8.7454f8","shepherd":"9a81a4dd.f9bc5","name":"Lampe Flur","topic":"zigbee/${ieeeAddr}","settopic":"zigbee/${ieeeAddr}/set","device":"0x90fd9ffffe04bdb6","attribute":"","payload":"plain","x":1570,"y":120,"wires":[[]]},{"id":"9a81a4dd.f9bc5","type":"zigbee-shepherd","z":"","name":"zigbee shepherd","path":"/dev/ttyUSB-zigbee2mqtt","baudRate":"115200","rtscts":true,"channelList":[18],"led":"enabled"}]

Meaning my payload is:
grafik

What do you have?
Many thanks!

Configuring the shepherd node

Hi,

what settings do I need to configure exactly? Which ones do I need to change? Which channels do I have to select?
I want to connect IKEA Tradfri devices and got to work with the instructions from https://www.zigbee2mqtt.io/, but I wasn't able to get to to work with the node-red-contrib-zigbee.

Thanks and regards

How to set the color temperature at GLEDOPTO GL-C-008 in the right way?

I got the GLEDOPTO GL-C-008 controller for an RGB + CW + WW LED strip.
I can set the RGB color and the brightness, but if I want to set the color temperature the strip will fade from complett cold white to complett warm white, there is no step in between :/
I send them e.g. 100 thats total cold white and 1000 is total warm white ... 200 is even total cold ...

ZigBee_GLEDOPTO_GL-C-008_1

This is the code in set temperature
var temperature = msg.payload; var set_temperature = {payload: { "state": "ON", "brightness": 100, "color_temp": temperature, "alert": "single", "transition": 0 } }; return set_temperature;

To compare this is the code in set color:
var color_hex = msg.payload; var set_color = {payload: { "state": "ON", "color": { "hex": color_hex }, "alert": "none", "transition": 0 } }; return set_color;

Do you know any JSON example for this controller or could you tell me the right syntax?

cannot install this pluing on a Virtual Machine based installation on an x86 architecture.

I use NoderRed instance as container inside Home Assistant (hass.io) and this last one is installed on my NAS as a Virtual Machine.
I'vo no problems installing any other nodes but this one gives an error:

2019-04-22T04:55:47.783Z [err] install
2019-04-22T04:55:47.783Z [err] No prebuilt binaries found (target=10.14.2 runtime=node arch=x64 libc=musl platform=linux)
2019-04-22T04:55:50.484Z [err] gyp
2019-04-22T04:55:50.486Z [err]
2019-04-22T04:55:50.486Z [err] ERR!
2019-04-22T04:55:50.487Z [err]
2019-04-22T04:55:50.487Z [err] build error

PS: on the exact same VM zigbee2mqtt is happily running so I guess these nodes shoudl do as well!

"TypeError: Cannot read property 'disFeedbackRsp' of undefined"

Hi there,

since today, a new failure arrised. I updated to the newest version of node-red-contrib-zigbee (version 0.8.0) and did a full update of the rpi.

Since yesterday, communication to all my zigbee actors worked perfectly, but today, no actions are set anymore.

Log Entry of Node-Red:
grafik

The bulbs i want to set are IKEA tradfri bulbs, maybe that helps.

Many thanks!

Bekomme Osram Lightify nicht geschaltet über CCU.

Nach anfänglichen Schwierigkeiten habe ich es geschafft eine Osram Lampe anzulernen.
Ich habe mir anschließend einen Converter angelegt und die angelernte Lampe ausgewählt.
Davor habe ich einen switch angelegt und diesen einmal mit true/false und on/off ausprobiert. Doch bei beiden schaltet die Lampe nicht. Was mache ich da falsch?
switch

Ich antworte mir mal selber :)
Im switch fehlte das Thema : zigbee/Lampe/set
Hat der Aufbau des Thema irgendeine Bedeutung? Oder Trage ich das in alle Lampen/Steckdosen die ich schalten will?

Wie Schalte ich die Zigbee Lampe denn über einen Taster der CCU?
Dort fehlt mir die Information ein Thema einzutragen.

hue api node - mimic the philips hue bridge api

  • map devices to hue light number (tbd: configurable or automatically?)
  • 1.1 Get all lights
  • 1.2 TBD: Get new lights
  • 1.3 TBD: Search for new lights
  • 1.4 Get light attributes and state
  • 1.5 TBD: Set light attributes (rename)
  • 1.6 Set light state
  • 1.6 Set light state ct_inc
  • 1.6 Set light state hue_inc
  • 1.6 Set light state sat_inc
  • 1.6 Set light state convert xy values
  • 1.6 Set light state response
  • 1.7 TBD: Delete lights
  • TBD: Groups API
  • TBD: Schedules API
  • TBD: Sensors API
  • TBD: Rules API
  • TBD: Configratuon API
  • TBD: Info API
  • TBD: Resourcelinks API
  • TBD: Capabilities API
  • TBD: announce bridge, try to make hue apps work ?

keine Statusmeldung von Osram smart plug

Hallo Hobbyquaker,

die Osram smart plug Steckdose scheint keine Statusmeldung abzugeben, wenn das Gerät geschaltet wird, oder ob es geschaltet hat.

Kannst man das noch einbauen?

Danke

Conbee

Hello,

Is it possible that this will work with Conbee from Dresden Elektronik?

Thanks in advance!

Installation errors

Hi,

Trying to install in node-red running in a docker as part of a hassio (home assistant) install and getting a bunch of errors. A little help please?

`-----------------------------------------------------------
2019-09-16T11:18:00.811Z Install : node-red-contrib-zigbee 0.8.0

2019-09-16T11:18:03.219Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-09-16T11:18:11.671Z [err] npm
2019-09-16T11:18:11.672Z [err] WARN deprecated
2019-09-16T11:18:11.672Z [err] [email protected]: Please consider using https://github.com/visjs
2019-09-16T11:19:14.730Z [out]
2019-09-16T11:19:14.730Z [out] > @serialport/[email protected] install /config/node-red/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
2019-09-16T11:19:14.730Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2019-09-16T11:19:14.730Z [out]
2019-09-16T11:19:17.445Z [err] prebuild-install
2019-09-16T11:19:17.446Z [err] WARN install
2019-09-16T11:19:17.446Z [err] No prebuilt binaries found (target=10.16.3 runtime=node arch=x64 libc=musl platform=linux)
2019-09-16T11:19:20.977Z [err] gyp
2019-09-16T11:19:20.979Z [err]
2019-09-16T11:19:20.979Z [err] ERR!
2019-09-16T11:19:20.979Z [err] build error
2019-09-16T11:19:20.979Z [err]
2019-09-16T11:19:20.981Z [err] gyp
2019-09-16T11:19:20.981Z [err]
2019-09-16T11:19:20.982Z [err] ERR!
2019-09-16T11:19:20.982Z [err] stack Error: not found: make
2019-09-16T11:19:20.982Z [err] gyp
2019-09-16T11:19:20.982Z [err] ERR!
2019-09-16T11:19:20.982Z [err] stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2019-09-16T11:19:20.982Z [err] gyp
2019-09-16T11:19:20.983Z [err] ERR!
2019-09-16T11:19:20.983Z [err] stack
2019-09-16T11:19:20.983Z [err] at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2019-09-16T11:19:20.983Z [err] gyp
2019-09-16T11:19:20.983Z [err] ERR!
2019-09-16T11:19:20.983Z [err] stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2019-09-16T11:19:20.983Z [err] gyp
2019-09-16T11:19:20.983Z [err] ERR!
2019-09-16T11:19:20.984Z [err] stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2019-09-16T11:19:20.984Z [err] gyp
2019-09-16T11:19:20.984Z [err] ERR!
2019-09-16T11:19:20.984Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2019-09-16T11:19:20.984Z [err] gyp
2019-09-16T11:19:20.984Z [err] ERR!
2019-09-16T11:19:20.984Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2019-09-16T11:19:20.985Z [err] gyp
2019-09-16T11:19:20.985Z [err] ERR!
2019-09-16T11:19:20.985Z [err] stack at FSReqWrap.oncomplete (fs.js:153:21)
2019-09-16T11:19:20.986Z [err] gyp
2019-09-16T11:19:20.986Z [err] ERR!
2019-09-16T11:19:20.986Z [err] System
2019-09-16T11:19:20.986Z [err] Linux 4.15.0-62-generic
2019-09-16T11:19:20.987Z [err] gyp
2019-09-16T11:19:20.987Z [err] ERR!
2019-09-16T11:19:20.987Z [err] command
2019-09-16T11:19:20.987Z [err] "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2019-09-16T11:19:20.987Z [err] gyp
2019-09-16T11:19:20.988Z [err] ERR!
2019-09-16T11:19:20.988Z [err] cwd
2019-09-16T11:19:20.988Z [err] /config/node-red/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
2019-09-16T11:19:20.988Z [err] gyp
2019-09-16T11:19:20.988Z [err] ERR!
2019-09-16T11:19:20.988Z [err] node -v v10.16.3
2019-09-16T11:19:20.989Z [err] gyp
2019-09-16T11:19:20.989Z [err] ERR!
2019-09-16T11:19:20.989Z [err] node-gyp -v v3.8.0
2019-09-16T11:19:20.989Z [err] gyp
2019-09-16T11:19:20.989Z [err] ERR!
2019-09-16T11:19:20.990Z [err] not ok
2019-09-16T11:19:34.046Z [err] npm
2019-09-16T11:19:34.046Z [err] WARN
2019-09-16T11:19:34.046Z [err] optional
2019-09-16T11:19:34.046Z [err] SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/zigbee-herdsman/node_modules/fsevents):
2019-09-16T11:19:34.047Z [err] npm
2019-09-16T11:19:34.047Z [err]
2019-09-16T11:19:34.047Z [err] WARN
2019-09-16T11:19:34.047Z [err] notsup
2019-09-16T11:19:34.047Z [err] SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2019-09-16T11:19:34.049Z [err]
2019-09-16T11:19:34.076Z [err] npm ERR! code ELIFECYCLE
2019-09-16T11:19:34.076Z [err] npm ERR! errno 1
2019-09-16T11:19:34.076Z [err] npm ERR! @serialport/[email protected] install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2019-09-16T11:19:34.076Z [err] npm ERR! Exit status 1
2019-09-16T11:19:34.076Z [err] npm ERR!
2019-09-16T11:19:34.076Z [err] npm ERR! Failed at the @serialport/[email protected] install script.
2019-09-16T11:19:34.076Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-09-16T11:19:34.409Z [err]
2019-09-16T11:19:34.409Z [err] npm ERR! A complete log of this run can be found in:
2019-09-16T11:19:34.409Z [err] npm ERR! /root/.npm/_logs/2019-09-16T11_19_34_286Z-debug.log
2019-09-16T11:19:34.429Z rc=1`

Device Node - Wenn 0 injiziert wird 30 Sekunden Timer für Join?

Hallo,

ich hatte die Doku so verstanden, wenn ich 255 injiziere, dann ist das Joinen dauerhaft an - das läuft auch.
Wenn ich 0 injiziere, dann sollte das Joinen deaktiviert werden - allerdings läuft dann ein Timer 30 Sekunden runter und erst dann ist "Schluss".

Soll das so?

Gruß
Markus

device node

  • device node: pairing, removing
  • device node: friendly names
  • device node: output device list after devIncoming/devLeaving events
  • device node: network map
  • device node: network map - integrate web graphviz

RSSI / linkquality

Hello

First of all, great job on porting all this to node-red
How can we access the device's RSSi or linkquality?
I tried the devices node output, event and converter outputs.

advantages of this library

I currently control all my devices over mqtt and I am using zigbee2mqtt. Are there any advantages switching to this library?

No converter found for WXKG11LM even with latest zigbee-shepherd-converters

I have performed a classic install (latest releas 0.2.0-alpha.0 with latest zigbee-shepherd-converters 8.1.0). I have paired two xiaomi aqara wireless switch with success. I have created/configured and deployed a converter node in my node-red tab.
But when I push one of the buttons, I have these node-red debug messages:
"No converter available for 'WXKG11LM' with cid 'genOnOff', type 'attReport' and data '{"cid":"genOnOff","data":{"onOff":1}}'"
"Please see: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html."

In my names.json file the switch is recognised as
"0x00158d0002044432": {
"name": "",
"type": "EndDevice",
"ieeeAddr": "0x00158d0002044432",
"nwkAddr": 49583,
"manufId": 4151,
"manufName": "LUMI",
"powerSource": "Battery",
"modelId": "lumi.sensor_switch.aq2",
"epList": [
1
],
"status": "online",
"joinTime": 1554228918
}

Installation failed

The following is the error I got when tried to install:


root@raspberrypi:/home/pi# npm install node-red-contrib-zigbee
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t https://github.com/Koenkk/zigbee-shepherd.git
npm ERR! 
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR! 
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-01-30T15_55_58_392Z-debug.log

Lampe mit Inject-Node schalten

Hallo Hobbyquaker,
Ich versuche nur mit einem Inject-Node, direkt an einem converter, eine Philips-Lampe ein und aus zu schalten.
Mit einem JSON : {"on":true} oder {"on":false} funktioniert es nicht.
Beim senden erscheinen im debug-Log die Zeilen:
[zigbee-converter:Philips] topic mismatch undefined zigbee/${ieeeAddr}/set
[zigbee-converter:Philips] topic mismatch zigbee/${ieeeAddr}/set
Was wäre denn der richtige Befehl?
Besten Dank

How to keep up to date with the zigbeetomqtt updates

Is there an easy way to make sure the library is more or less up to date with the developments on koenkk's side (converters and devices). I thought perhaps to update the dependencies in the package.json and run npm install again, but I don't know if that's smart :-)

"zigbee-shepherd": "git+https://github.com/Koenkk/zigbee-shepherd.git#a8b5828200140adf4de83457508576f6879f7ec1", "zigbee-shepherd-converters": "8.1.4"

A suggestion on attribute reports

Hi, hobbyquaker,

what a promising work!
As it is in a 'work-in-progress' status I'd suggest a minor change, so the topic of the attReport event message to reflect full ZigBee characteristics, like this:

ieeeAddr / attReport / endPoint / clusterId / attributeId

since now it is impossible to determine, which endpoint of my dual switch the report came from since the 'device' property of the message object holds the whole epList, not the source endpoint.

With complex devices, a good number of clusters with dozens of attributes could appear, so that's why I suggest the topic structure above.

Regards,
András

Get state of device

Hi,

any idea how I can get the state of a device (Osram Smart+ Plug)? I would like to use the tradfri remote (button "toggle") to turn the plug on or off. For that I need to retrieve the current state from the plug (ON/OFF) in order to send the appropriate message.

Thanks!

Possible crash when pairing a Xiaomi Mijia Smart Door Window Sensor

The RedMatic server can crash while trying to pair the sensor.

The trick was to keep the sensor 'alive' after initiating the pairing process by hitting the the pair button every 1-2s until it was found from the zigbee node.

Mar 18 22:15:37 homematic-ccu2 daemon.err node-red[3403]: [zigbee-shepherd:zigbee shepherd] Cannot get the Node Descriptor of the Device: 0x00158d0002c78554 (Error: Timed out after 10000 ms)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red: 18 Mar 22:15:37 - [red] Uncaught Exception:
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red: 18 Mar 22:15:37 - Error [ERR_UNHANDLED_ERROR]: Unhandled error. (Cannot get the Node Descriptor of the Device: 0x00158d0002c78554 (Error: Timed out after 10000 ms))
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at ShepherdProxy.emit (events.js:178:17)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at ZigbeeShepherd.errorHandler (/usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/nodes/shepherd.js:317:24)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at ZShepherd.error (/usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/nodes/shepherd.js:256:38)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at ZShepherd.emit (events.js:189:13)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at /usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/zigbee-shepherd/lib/components/controller.js:647:28
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at _rejected (/usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/q/q.js:864:24)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at /usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/q/q.js:890:30
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at Promise.when (/usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/q/q.js:1142:31)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at Promise.promise.promiseDispatch (/usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/q/q.js:808:41)
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red:     at /usr/local/addons/redmatic/lib/node_modules/node-red-contrib-zigbee/node_modules/q/q.js:624:44
Mar 18 22:15:37 homematic-ccu2 daemon.err node-red: Node-RED exited with non-zero exit status 1

group node

  • Each node represents a group
  • Node configuration offers possibility to add/remove devices to group
  • TBD: Input acts like command node or converter node?
  • TBD: Output: none?

Hue Dimmer Switch gepaired aber keine Ausgabe

Hallo,
ich konnte den Switch pairen aber jetzt erhalte ich keine Ausgabe bei einem Tastendruck. Converter-node und Event-node getestet.
Ich habe den Switch auch schon mal removed und neu gepaired, das ändert leider nichts. Welche Möglichkeiten gibt es da noch?
Gruß Ralf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.