soef / ioBroker.wifilight

WiFi Light for ioBroker
MIT License
9 stars 8 forks source link

Adapter startet nicht. #14

Open matze1708 opened 6 years ago

matze1708 commented 6 years ago

Hallo,

der Adapter startet nicht und bringt Fehler ins log. Forum Thread: http://forum.iobroker.net/viewtopic.php?f=20&t=9270&p=99007#p99007

Fehler:

`node node_modules/iobroker.wifilight/wifilight.js --logs --force /opt/iobroker/node_modules/soef/soef.js:1141 fns.adapter = fns.adapter(options); ^

TypeError: fns.adapter is not a function at Object.exports.Adapter (/opt/iobroker/node_modules/soef/soef.js:1141:23) at Object. (/opt/iobroker/node_modules/iobroker.wifilight/wifilight.js:20:20) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:383:7) at startup (bootstrap_node.js:149:9)`

LOG:

host.ioBroker-RasPi 2017-11-26 11:42:42.830 error instance system.adapter.wifilight.0 terminated with code 1 ()
Caught 2017-11-26 11:42:42.830 error by controller[0]: at startup (bootstrap_node.js:149:9)
Caught 2017-11-26 11:42:42.830 error by controller[0]: at run (bootstrap_node.js:383:7)
Caught 2017-11-26 11:42:42.829 error by controller[0]: at Module.runMain (module.js:604:10)
Caught 2017-11-26 11:42:42.829 error by controller[0]: at Function.Module._load (module.js:438:3)
Caught 2017-11-26 11:42:42.829 error by controller[0]: at tryModuleLoad (module.js:446:12)
Caught 2017-11-26 11:42:42.829 error by controller[0]: at Module.load (module.js:487:32)
Caught 2017-11-26 11:42:42.829 error by controller[0]: at Object.Module._extensions..js (module.js:579:10)
Caught 2017-11-26 11:42:42.828 error by controller[0]: at Module._compile (module.js:570:32)
Caught 2017-11-26 11:42:42.828 error by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.wifilight/wifilight.js:20:20)
Caught 2017-11-26 11:42:42.828 error by controller[0]: at Object.exports.Adapter (/opt/iobroker/node_modules/soef/soef.js:1141:23)
Caught 2017-11-26 11:42:42.828 error by controller[0]: TypeError: fns.adapter is not a function
Caught 2017-11-26 11:42:42.827 error by controller[0]: ^
Caught 2017-11-26 11:42:42.827 error by controller[0]: fns.adapter = fns.adapter(options);
Caught 2017-11-26 11:42:42.824 error by controller[0]: /opt/iobroker/node_modules/soef/soef.js:1141
soef commented 6 years ago

Hallo, da muss bei dir noch eine altes soef Modul im Einsatz sein. Mache einmal ein Update des Wifilight Adapters, oder deinstalliere und installiere ihn neu. Oder du führst npm install soef im node_modules/iobroker.wifilight Verzeichnis.

matze1708 commented 6 years ago

Tatsächlich.... "sudo npm install soef" hat es gelöst.... zumindest ist er direkt mal grün.

Spricht der auch dieses magicHome?

https://www.amazon.de/Kontrolleur-Fernbedienung-Steuerung-Controller-RGBW/dp/B075KHJ871/ref=sr_1_1?ie=UTF8&qid=1513776608&sr=8-1&keywords=led+rgbw+controller

Vielen Dank für deine Hilfe.

soef commented 6 years ago

Die Lichterkette wird ja nicht per WLAN sondern per Infrarot gesteuert. Funktioniert also mit diesem Adapter nicht. Du kannst aber den Broadlink oder Logitech Hub Adapter mit der entsprechenden Hardware verwenden und die Tasten der Fernbedienung anlernen.

matze1708 commented 6 years ago

Ich kann doch die lichtstreifen per wlan auch am iPhone steuern.

soef commented 6 years ago

Ups, hatte nur die IR Fernbedienung gesehen. Aber dann kann ich nicht sagen ob der Kontroller auch gesteuert werden kann.

matze1708 commented 6 years ago

Er findet ihn unter ak001-zj200

soef commented 6 years ago

Dann müsste es ja mit dem gemergeten Pull Request funktionieren, oder?

matze1708 commented 6 years ago

Leider nein. Also starten tut er. Nur das device nicht einbinden

soef commented 6 years ago

Ich habe nun noch ein paar Änderungen vorgenommen. Eigentlich ist die Geräte-Bezeichnung nur beim Ermitteln neuer Geräte notwendig. Wenn IP, Port und Geräte Typ richtig konfiguriert sind ist die Bezeichnung irrelevant.

matze1708 commented 6 years ago

Jetzt bekomme ich diese Meldung

wifilight.0 2017-12-26 21:15:27.316 error wrong device type. not yet supported! wifilight.0 2017-12-26 21:15:27.314 error Known types are: LW12, LD382A, LD382, UFO, MiLight, MiLightRGB, MiLightW wifilight.0 2017-12-26 21:15:27.314 error config.device.type (AK001-ZJ200) is not a known device type. Skipping this device!

soef commented 6 years ago

Der Geräte Type scheint leer zu sein. Es müsste LD382A sein. Schaue mal in die Spalte Type in der Konfiguration.

matze1708 commented 6 years ago

Jetzt klappt es! Er hatte im auto discover den typ nicht gesetzt.

Daher ging es wahrscheinlich nicht.

soef commented 6 years ago

Eigentlich sollte der Typ erkannt werden. Kannst Du noch einmal die Instance deinstallieren und wieder neu installieren? Oder für einen Test eine zweite Instanz installieren und ein auto discover durchführen?

jogibear9988 commented 5 years ago

This issue was moved to iobroker-community-adapters/ioBroker.wifilight-community#3

Rumpelstilzche commented 4 years ago

moin moin, gibt es hierfür schon eine lösung? bei mir geht auch nichts