ioBroker / ioBroker.zigbee

Zigbee communcation with Hue, Xiaomi, Lighttify... via TI CC2xxx USB stick
MIT License
309 stars 191 forks source link

Can't switch to herdsman #432

Closed jobe451 closed 4 years ago

jobe451 commented 4 years ago

I try to move to herdsman.

Background: I have an issue with pairing devices. It seems once I pair the first Ikea device, no more devices can be paired. For other devices (i.e. Xiaomi) I have no such problems. Since development has shifted to herdsmen, I guess it's not worse to investigate this issue further on Shepard.

I did remove iobroker.zigbee via admin ui and installed the herdsman branch from admin ui with https://github.com/ioBroker/ioBroker.zigbee/tarball/herdsman.

The installation is then declared successful. However, Zigbee is missing in the instances list. Plus in the installation logs I find a number of errors. I am using Node v10.15.2 on a raspberry pi 4.

Any ideas?

$ ./iobroker url "https://github.com/ioBroker/ioBroker.zigbee/tarball/herdsman" --debug
install https://github.com/ioBroker/ioBroker.zigbee/tarball/herdsman
npm install https://github.com/ioBroker/ioBroker.zigbee/tarball/herdsman --production --save --prefix "/opt/iobroker" (System call)
> @serialport/bindings@8.0.4 install /opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install
 WARN install No prebuilt binaries found (target=10.15.2 runtime=node arch=arm libc= platform=linux)
make: Verzeichnis „/opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings/build“ wird betreten
  CXX(target) Release/obj.target/bindings/src/serialport.o
In file included from ../src/./serialport.h:6,                 from ../src/serialport.cpp:1:
../../../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                     ^~~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                       ^~~~~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                      ^~~~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                      ^~~~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                    ^~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                    ^~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                            ^~~~~~~~~~~~~~~~~~~~

../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                      ^~~~~~~~~~~~~~

../src/serialport.cpp: At global scope:../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
 SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                            ^

../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                              ^

In file included from ../../../../../nan/nan.h:54,                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/node.h:570:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/iobroker/.cache/node-gyp/10.15.2/include/node/node.h:604:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(serialport, init);
 ^~~~~~~~~~~

In file included from /home/iobroker/.cache/node-gyp/10.15.2/include/node/node.h:63,                 from ../../../../../nan/nan.h:54,
                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/node_object_wrap.h:85:78:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:../../../../../nan/nan_object_wrap.h:65:61:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]

  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
In file included from ../src/serialport.h:6,                 from ../src/serialport_unix.cpp:2:
../../../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^

In file included from /home/iobroker/.cache/node-gyp/10.15.2/include/node/node.h:63,                 from ../../../../../nan/nan.h:54,
                 from ../src/serialport.h:6,
                 from ../src/serialport_unix.cpp:2:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/node_object_wrap.h:85:78:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:../../../../../nan/nan_object_wrap.h:65:61:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]

../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  CXX(target) Release/obj.target/bindings/src/poller.o
In file included from ../src/poller.cpp:1:../../../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^

In file included from /home/iobroker/.cache/node-gyp/10.15.2/include/node/node.h:63,                 from ../../../../../nan/nan.h:54,
                 from ../src/poller.cpp:1:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/iobroker/.cache/node-gyp/10.15.2/include/node/node_object_wrap.h:85:78:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:../../../../../nan/nan_object_wrap.h:65:61:   required from here
/home/iobroker/.cache/node-gyp/10.15.2/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]

  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make: Verzeichnis „/opt/iobroker/node_modules/iobroker.zigbee/node_modules/@serialport/bindings/build“ wird verlassen
> serialport@8.0.5 postinstall /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport
> node thank-you.js

Thank you for using serialport!If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/serialport/donate

npm
 WARN bl@0.7.0 requires a peer of stream-browserify@* but none is installed. You must install peer dependencies yourself.npm WARN node-red-contrib-sun-position@0.4.10 requires a peer of util@>=0.8.0 but none is installed. You must install peer dependencies yourself.

npm
 WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

+ iobroker.zigbee@1.0.0-aadded 52 packages from 42 contributors and audited 4989 packages in 52.093s

found 77 vulnerabilities (56 low, 21 high)  run `npm audit fix` to fix them, or `npm audit` for details

process exited with code 0
kirovilya commented 4 years ago

I think it's alright :) don't forget to perform the upload admin files

arteck commented 4 years ago

the installer notfy process exited with code 0

also its OK

where you a problem ??

jobe451 commented 4 years ago

The instance does not appear on the UI, it can't be started from console even though version 1.0.0-a is present and uploaded.

Post upload the system reports "system.adapter.zigbee does not exist":

image

kirovilya commented 4 years ago

try to add instance of zigbee adapter

jobe451 commented 4 years ago

Thanks for the hint, sorry, didn't do much from console, didn't know that you can do that so easily. That solved it for me.

In case anybody else has the same issue: How I switched to Herdsman from console (remove shepard, install, add instance):

iobroker del zigbee
iobroker url "https://github.com/ioBroker/ioBroker.zigbee/tarball/herdsman" --debug
iobroker add zigbee 0
Adler-Tiefflug commented 4 years ago

Hello, I am new to iobroker. I have tried Openhab before, but the programming of the items is not accessible to me. Nevertheless, I would like to ask you something about ZigBee. In OH there is the Ember Coordinator. Does he also exist in ioBroker? Or did you choose the Conbee. I have the Nortek stick. But I only get it integrated with Z-Wave.

DaCHRIS commented 4 years ago

Hello, I am new to iobroker. I have tried Openhab before, but the programming of the items is not accessible to me. Nevertheless, I would like to ask you something about ZigBee. In OH there is the Ember Coordinator. Does he also exist in ioBroker? Or did you choose the Conbee. I have the Nortek stick. But I only get it integrated with Z-Wave.

Ahoi, Deine Anfrage macht in einem schon ewig geschlossenen Issue wenig Sinn.

Die iobroker.zigbee library in deren Repo Du hier bist benutzt Texas Instruments Hardware mit spezieller Firmware, im günstigsten Fall den cc2531 für ein paar Euro. Deine Gateways, die Du an anderer Stelle aufgezählt hast (Tradfri, Hue, Xiaomi/Aqara), lassen sich damit alle ersetzen, aber Du bräuchtest nen kompatiblen Stick.

Für mehr Infos kannst Du mich auch gerne anmailen: dachrLs0@gmail.com

Cheers Chris

Adler-Tiefflug commented 4 years ago

Danke, dann werde ich mir Mal so ein Stick besorgen. Hauptsache dich ganze Verkabelung verschwindet.

Mit freundlichen Grüßen Jonny J. Bettinger Lindberghstr. 2 56812 Cochem Tel.: 02671-2324239 Fax: 02671-2324241 Mob: 01578-1274442

DaCHRIS notifications@github.com schrieb am So., 23. Feb. 2020, 18:35:

Hello, I am new to iobroker. I have tried Openhab before, but the programming of the items is not accessible to me. Nevertheless, I would like to ask you something about ZigBee. In OH there is the Ember Coordinator. Does he also exist in ioBroker? Or did you choose the Conbee. I have the Nortek stick. But I only get it integrated with Z-Wave.

Ahoi, Deine Anfrage macht in einem schon ewig geschlossenen Issue wenig Sinn.

Die iobroker.zigbee library in deren Repo Du hier bist benutzt Texas Instruments Hardware mit spezieller Firmware, im günstigsten Fall den cc2531 für ein paar Euro. Deine Gateways, die Du an anderer Stelle aufgezählt hast (Tradfri, Hue, Xiaomi/Aqara), lassen sich damit alle ersetzen, aber Du bräuchtest nen kompatiblen Stick.

Für mehr Infos kannst Du mich auch gerne anmailen: dachrLs0@gmail.com

Cheers Chris

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ioBroker/ioBroker.zigbee/issues/432?email_source=notifications&email_token=AOUKSKUKSY4C34KT67XGQLLREKXU7A5CNFSM4JUU2GPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMWCCAQ#issuecomment-590094594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUKSKTLYYK7J3SJINJ5AVLREKXU7ANCNFSM4JUU2GPA .