tradfri-fhem tester gesucht

Begonnen von justme1968, 19 Januar 2019, 10:26:46

Vorheriges Thema - Nächstes Thema

Det20

#15
Ui, dann wird es spannend, da ich aktuell die JAVA Version (erfolgreich) im Einsatz habe.

Also, Node installiert, PM kopiert, Device definiert ... Aber: Es sind keine Lampen (ich habe 3 Lampen und ein Panel) angelegt. Bei der installation von NODE wurde auch gemeckert, dass ich nur Version 4.9.1 habe und nicht 6, habe ich eben noch aktualisiert und Setup erneut vorgenommen; ohne Erfolg, nach wie vor keine Lampen da. Muss ich nicht, wie bei der JAVA Variante, die IP vom Gateway angeben?

justme1968

du brauchst node mindestens in version 8 glaube ich.

fang mal mit der kommandozeile ganz unten im beitrag an. 

ob die discover immer geht weiß ich noch nicht. zur not ip mit —ip angeben.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

sorry. habe die falsche CoProcess.pm hochgeladen. damit geht das automatische starten nicht. arg...

richtige version kommt heute abend.

der test auf der kommandozeile geht aber trotzdem.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rippi46

Hallo justme1968,

habe auch mehrere Ikea-Lampen im Einsatz einige über den Gateway angebunden und ein paar über den CC2530/CC2531
Zigbeestick  und wollte auch mal mittesten.
Leider bekomme ich bei der Installation des Moduls folgende Fehlermeldung:
pi@raspberrypi:~ $ sudo npm install -g tradfri-fhem
/usr/bin/tradfri-fhem -> /usr/lib/node_modules/tradfri-fhem/bin/tradfri

> node-aead-crypto@2.1.4 install /usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto
> node lib/install.js

running default installation script
npm ERR! path /root/.npm/_logs
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall scandir
npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR!  { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm ERR!   stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'scandir',
npm ERR!   path: '/root/.npm/_logs' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
  stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
  errno: -13,
  code: 'EACCES',
  syscall: 'scandir',
  path: '/root/.npm/_logs' }

> node-aead-crypto@2.1.4 install:default /usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto
> prebuild-install || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto/.node-gyp'
gyp ERR! System Linux 4.14.79-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-aead-crypto@2.1.4 install:default: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-aead-crypto@2.1.4 install:default script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
child_process.js:650
    throw err;
    ^

Error: Command failed: npm run install:default
    at checkExecSyncError (child_process.js:607:13)
    at execSync (child_process.js:647:13)
    at Object.<anonymous> (/usr/lib/node_modules/tradfri-fhem/node_modules/node-aead-crypto/lib/install.js:29:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/tradfri-fhem/node_modules/node-aead-crypto):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ tradfri-fhem@0.0.1
updated 1 package in 25.292s


Fehlen mir noch andere Module oder muß ich noch etwas beachten.


Gruß rippi
FHEM, LMS, VDR ,Dell 9010 Ubuntu 20.04,Raspimatic, HM/HMIP, Max, Elro, Brennenstuhl u. Intertechno mit Connair.
Picoreplayer, Raspi IR-Lanadapter, Firmata(wifi), LaCrosse,
nanocul433, nanocul868, Signalduino, Connexoon,
MySensor-GW+Sensoren, RGBWW, Zigbee2mqtt,Xiaomi,Nextion,LEDMatrix,Alexa

justme1968

installier mal bitte mit sudo npm install -g --unsafe-perm tradfri-fhem
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

die beiden files im ersten beitag sind jetzt die korrekten.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rippi46

Hallo justme1968,

kann es sein dass mit den neuen files fhem nicht mehr erreichbar ist bzw nicht mehr startet?

Gruß rippi
FHEM, LMS, VDR ,Dell 9010 Ubuntu 20.04,Raspimatic, HM/HMIP, Max, Elro, Brennenstuhl u. Intertechno mit Connair.
Picoreplayer, Raspi IR-Lanadapter, Firmata(wifi), LaCrosse,
nanocul433, nanocul868, Signalduino, Connexoon,
MySensor-GW+Sensoren, RGBWW, Zigbee2mqtt,Xiaomi,Nextion,LEDMatrix,Alexa

justme1968

das sollte nicht sein. was steht im log?

hast du neu gestartet?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

MadMax-FHEM

Hallo André,

so bin zurück von IKEA...
...leider nur mit Teilerfolg: der Tradfri Gateway war aus...  :-\

Evtl. morgen...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rippi46

Habe neu gestartet


hier ein Auszug aus dem log:
2019.01.21 19:21:48 2: TradGW: starting tradfri-fhem: /usr/bin/tradfri-fhem -s sssss
2019.01.21 19:21:48 3: TradGW: starting
2019.01.21 19:21:48 3: TradGW: using FHEM logfile
2019.01.21 19:21:49 3: ESPEasy espBridge3: Bridge v2.16 port [TCP:IPV4:8383] opened.
2019.01.21 19:21:49 1: usb create starting
2019.01.21 19:21:50 3: Probing ZWDongle device /dev/serial1
2019.01.21 19:21:50 3: Probing CUL device /dev/ttyACM0
2019.01.21 19:21:51 3: Probing TCM_ESP3 device /dev/ttyACM0
2019.01.21 19:21:51 3: Probing ZWDongle device /dev/ttyACM0
2019.01.21 19:21:51 3: Probing FRM device /dev/ttyACM0
2019.01.21 19:21:56 3: Probing CUL device /dev/ttyAMA0
2019.01.21 19:21:56 3:2019.01.21 19:22:12 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_HUEDevice.pm line 1261.
2019.01.21 19:22:12 3: HUEDevice65537: I/O device is TradGW
Undefined subroutine &main::HUEBridge_updateGroups called at ./FHEM/39_tradfri.pm line 290. Probing TCM_ESP3 device /dev/ttyAMA0
2019.01.21 19:21:57 3: Probing ZWDongle device /dev/ttyAMA0
2019.01.21 19:21:57 3: Probing FRM device /dev/ttyAMA0
2019.01.21 19:22:02 1: usb create end
2019.01.21 19:22:02 3: Opening nextion device 192.168.178.61:23
2019.01.21 19:22:05 1: nextion: Can't connect to 192.168.178.61:23: Connection timed out
2019.01.21 19:22:05 2: x10_receiver: device :0x0bc7:0x0006 not found
2019.01.21 19:22:05 0: Featurelevel: 5.9
2019.01.21 19:22:05 0: Server started with 259 defined entities (fhem.pl:18343/2019-01-20 perl:5.024001 os:linux user:fhem pid:1807)
2019.01.21 19:22:06 3: sduino sduinoIdList: whitelistIds=
2019.01.21 19:22:06 3: sduino sduinoIdList: blacklistIds=
2019.01.21 19:22:06 3: sduino sduinoIdList: development=
2019.01.21 19:22:06 3: sduino: ID=63 skiped (developId=y)
2019.01.21 19:22:06 3: sduino: ID=p76 skiped (developId=p)
2019.01.21 19:22:06 3: sduino: ID=73 skiped (developId=y)
2019.01.21 19:22:06 3: sduino: ID=74 skiped (developId=y)
2019.01.21 19:22:06 3: sduino: ID=p76.1 skiped (developId=p)
2019.01.21 19:22:06 3: sduino: IDlist MS 0 1 13 14 15 17 2 22 23 25 3 3.1 32 33 35 38 4 41 51 55 6 68 7 72.1
2019.01.21 19:22:06 3: sduino: IDlist MU 13.1 16 20 21 24 26 27 28 29 30 31 36 37 39 40 44 44.1 45 46 48 49 5 50 56 59 60 61 62 64 65 66 67$
2019.01.21 19:22:06 3: sduino: IDlist MC 10 11 12 18 43 47 52 57 58
2019.01.21 19:22:06 3: DbLog myDbLog - Creating Push-Handle to database mysql:database=fhem;host=localhost;port=3306 with user fhemsql
2019.01.21 19:22:07 3: DbLog myDbLog - Push-Handle to db mysql:database=fhem;host=localhost;port=3306 created
2019.01.21 19:22:08 3: sduinoUSB sduinoIdList: whitelistIds=
2019.01.21 19:22:08 3: sduinoUSB sduinoIdList: blacklistIds=
2019.01.21 19:22:08 3: sduinoUSB sduinoIdList: development=
2019.01.21 19:22:08 3: sduinoUSB: ID=63 skiped (developId=y)
2019.01.21 19:22:08 3: sduinoUSB: ID=p76 skiped (developId=p)
2019.01.21 19:22:08 3: sduinoUSB: ID=73 skiped (developId=y)
2019.01.21 19:22:08 3: sduinoUSB: ID=74 skiped (developId=y)
2019.01.21 19:22:08 3: sduinoUSB: ID=p76.1 skiped (developId=p)
2019.01.21 19:22:08 3: sduinoUSB: IDlist MS 0 1 13 14 15 17 2 22 23 25 3 3.1 32 33 35 38 4 41 51 55 6 68 7 72.1
2019.01.21 19:22:08 3: sduinoUSB: IDlist MU 13.1 16 20 21 24 26 27 28 29 30 31 36 37 39 40 44 44.1 45 46 48 49 5 50 56 59 60 61 62 64 65 66$
2019.01.21 19:22:08 3: sduinoUSB: IDlist MC 10 11 12 18 43 47 52 57 58
2019.01.21 19:22:08 3: DbRep myDbRep - Connectiontest to database mysql:database=fhem;host=localhost;port=3306 with user fhemsql
2019.01.21 19:22:08 3: telnetForBlockingFn_1548094928: port 35311 opened
2019.01.21 19:22:08 3: GW_Xiaomi: getGatewaySID> Find SID for Gateway: 34ce00854560
2019.01.21 19:22:08 3: GW_Xiaomi: connect> Connected
2019.01.21 19:22:10 1: my_StoreBatteryStatus      ignoring Device: MAX_07d0d5
2019.01.21 19:22:10 1: my_StoreBatteryStatus      ignoring Device: MAX_07d0d5
2019.01.21 19:22:10 1: my_StoreBatteryStatus      ignoring Device: MAX_07ffcb
2019.01.21 19:22:10 1: my_StoreBatteryStatus      ignoring Device: MAX_07ffcb
2019.01.21 19:22:10 1: sduino/define: 192.168.178.65:23
2019.01.21 19:22:10 1: sduino/init: 192.168.178.65:23
2019.01.21 19:22:10 3: sduino device opened
2019.01.21 19:22:11 3: HUESensor65536: I/O device is TradGW
2019.01.21 19:22:12 1: PERL WARNING: Argument "02.000Z" isn't numeric in addition (+) at ./FHEM/99_Utils.pm line 119.
2019.01.21 19:22:12 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/31_HUEDevice.pm line 1261.
2019.01.21 19:22:12 3: HUEDevice65537: I/O device is TradGW
Undefined subroutine &main::HUEBridge_updateGroups called at ./FHEM/39_tradfri.pm line 290.



Gruß rippi
FHEM, LMS, VDR ,Dell 9010 Ubuntu 20.04,Raspimatic, HM/HMIP, Max, Elro, Brennenstuhl u. Intertechno mit Connair.
Picoreplayer, Raspi IR-Lanadapter, Firmata(wifi), LaCrosse,
nanocul433, nanocul868, Signalduino, Connexoon,
MySensor-GW+Sensoren, RGBWW, Zigbee2mqtt,Xiaomi,Nextion,LEDMatrix,Alexa

justme1968

ok. mein fehler. da ist noch eine anhängigkeit zum hue bridge modul die nicht automatisch aufgelöst wird.

kannst du am anfang von 30_tradfri.pm noch ein use 30_HUEBridge.pm; einbauen?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Det20

Hmmm

syntax error at ./FHEM/30_tradfri.pm line 9, near "use 30_"
BEGIN not safe after errors--compilation aborted at ./FHEM/30_tradfri.pm line 10.

justme1968

ich mach gleich eine version fertig.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

so...

es gib noch mal eine neue version im ersten beitrag.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968