iobroker-community-adapters / ioBroker.wifilight

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

Colors.rgb2hsv is not a function #407

Closed mcuiobroker closed 2 months ago

mcuiobroker commented 3 months ago
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
-- | -- | -- | --
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at processImmediate (node:internal/timers:483:21)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11200:62)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at Object.options.stateChange (/opt/iobroker/node_modules/iobroker.wifilight/lib/dontBeSoSoef.js:1113:21)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at Object.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:150:12)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at WifiLight.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:272:18)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: at WifiLight.bri (/opt/iobroker/node_modules/iobroker.wifilight/main.js:751:24)
host.iobrokerPROD | 2024-08-14 19:18:46.212 | error | Caught by controller[0]: TypeError: Colors.rgb2hsv is not a function
wifilight.0 | 2024-08-14 19:18:45.971 | error | Colors.rgb2hsv is not a function
wifilight.0 | 2024-08-14 19:18:45.971 | error | TypeError: Colors.rgb2hsv is not a function at WifiLight.bri (/opt/iobroker/node_modules/iobroker.wifilight/main.js:751:24) at WifiLight.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:272:18) at Object.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:150:12) at Object.options.stateChange (/opt/iobroker/node_modules/iobroker.wifilight/lib/dontBeSoSoef.js:1113:21) at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11200:62) at processImmediate (node:internal/timers:483:21)
wifilight.0 | 2024-08-14 19:18:45.971 | error | uncaught exception: Colors.rgb2hsv is not a function
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at processImmediate (node:internal/timers:483:21)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11200:62)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at Object.options.stateChange (/opt/iobroker/node_modules/iobroker.wifilight/lib/dontBeSoSoef.js:1113:21)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at Object.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:150:12)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at WifiLight.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:272:18)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: at WifiLight.bri (/opt/iobroker/node_modules/iobroker.wifilight/main.js:751:24)
host.iobrokerPROD | 2024-08-14 19:18:30.709 | error | Caught by controller[0]: TypeError: Colors.rgb2hsv is not a function
wifilight.0 | 2024-08-14 19:18:30.475 | error | Colors.rgb2hsv is not a function
wifilight.0 | 2024-08-14 19:18:30.475 | error | TypeError: Colors.rgb2hsv is not a function at WifiLight.bri (/opt/iobroker/node_modules/iobroker.wifilight/main.js:751:24) at WifiLight.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:272:18) at Object.onStateChange (/opt/iobroker/node_modules/iobroker.wifilight/main.js:150:12) at Object.options.stateChange (/opt/iobroker/node_modules/iobroker.wifilight/lib/dontBeSoSoef.js:1113:21) at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11200:62) at processImmediate (node:internal/timers:483:21)

Versions:

Ilovegym66 commented 3 months ago

Ist mir heute auch aufgefallen..

reloxx13 commented 3 months ago

me2

Ilovegym66 commented 3 months ago

@GermanBluefox any news ? the Adapter crashs, if the command object is set with r:0, g:0, b:0, on:true, transition:30

otherwise we have to roll back to version 1.2.1, this have the faulty states but don't crashs.. :(

GermanBluefox commented 2 months ago

I really do not understand, why function is not a function. without hardware is to hard to reproduce this error. image

On other side, there are at least 3 people with hardware and no one could even look into adapter. Very sad

mcuiobroker commented 2 months ago

What should I do?

GermanBluefox commented 2 months ago

What should I do?

For now: just test the new version 1.3.3 For future, I am recording the video: "How to debug the ioBroker adapter to help the developer". It is possible with ease without any additional tools. Just chrome and CLI (shell)

https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27

cd /opt/iobroker
iob stop wifilight
node --inspect-brk=0.0.0.0 node_modules/iobroker.wifilight/main.js --debug

Add into chrome://inspect your raspberry pi image

and then after 10-30 seconds the inspect will appear in the list: image

after that set the breakpoint to line main.js:751 and generate the error Show the developer scopes and in this particular case the value of rgb2hsv

mcuiobroker commented 2 months ago

When I start/restart the Instance all Devices set to On=true all devices, which are reachable.

When devices will power off for save energy and power will be turned on, then the device is not reachable further on. So I have to restart the instance. It should rescan after a time (10s)?

GermanBluefox commented 2 months ago

When I start/restart the Instance all Devices set to On=true all devices, which are reachable.

When devices will power off for save energy and power will be turned on, then the device is not reachable further on. So I have to restart the instance. It should rescan after a time (10s)?

Sorry I could not understand you. May be "deutsch"?

Apollon77 commented 2 months ago

Mich wundert das dort Colors.rgb2hsv steht ... der Direktimport würde and er Stelle an sich ne andere Meldung verursachen ... das ist mega komisch ... @mcuiobroker Wirklich sicher das die neue version korrekt installiert ist? Korrekter host bei multihost und so? Bitte mal volles Debug log posten bis zu dem Fehler

Apollon77 commented 2 months ago

@mcuiobroker Please check the most recent verison 1.3.3

mcuiobroker commented 2 months ago

@GermanBluefox Wenn ich die Instanz starte oder neu starte werden alle erreichbaren Geräte eingeschaltet. Die Lichter gehen an. Die zugehörigen on-DPs werden auf true gesetzt -> on=true

Der obige Fehler kommt nicht mehr.

Um Energie zu sparen sind einige LED an einem Power-Switch, so dass sie nicht permanent Strom ziehen. Dort sind auch noch andere Geräte (keine wifilight) mit involviert. Sind diese Geräte bei Instanzstart nicht an werden sie als reachable false erkannt -> ok Schalte ich nun den Power-Switch wieder ein, so sind die Wifilight, die eben noch aus waren jetzt an. Jetzt sollten die wifilight Geräte ja von iobroker erreichbar sein, sind sie aber nicht.

Damit ich sie über iobroker steuern kann, muss ich die Instanz neu starten. Sie werden nicht automatisch erkannt (erst nach restart der Instanz) und somit deren reachable auf true gesetzt.

Ist das Gerät bei Instanzstart an und ich schalte es dann durch Power-Switch ab, so wird der reachable nicht geändert, er bleibt weiterhin auf true. Es findet also keine korrekte reachable-Prüfung statt?

Debug-Log im nächster Post

https://github.com/iobroker-community-adapters/ioBroker.wifilight/blob/cba8cfc4967b8c43af2693dbfacdcec006ebbddc/lib/devices.js#L119 und https://github.com/iobroker-community-adapters/ioBroker.wifilight/blob/cba8cfc4967b8c43af2693dbfacdcec006ebbddc/lib/devices.js#L159

Soweit ich es im Code bislang verstanden habe, wird bei einem device, welches ein error hat (nicht erreichbar), einmal versucht es zu erreichen, wenn nicht, wird es gelöscht( destroyClient() ). Somit werden nur noch die devices abgefragt die wirklich erreichbar sind. Es müssen aber immer alle definierten Devices abgefragt werden. Es darf kein Device destroyed werden?

mcuiobroker commented 2 months ago

@Apollon77 Der obige Fehler wurde ja behoben mit 1.3.3. Es ist nur ein anderes Problem entstanden. Habe es einen Post höher beschrieben.


2024-09-03 13:01:00.105 - debug: wifilight.0 (1375541) Redis Objects: Use Redis connection: 127.0.0.1:9001
--
2024-09-03 13:01:00.126 - debug: wifilight.0 (1375541) Objects client ready ... initialize now
2024-09-03 13:01:00.126 - debug: wifilight.0 (1375541) Objects create System PubSub Client
2024-09-03 13:01:00.127 - debug: wifilight.0 (1375541) Objects create User PubSub Client
2024-09-03 13:01:00.157 - debug: wifilight.0 (1375541) Objects client initialize lua scripts
2024-09-03 13:01:00.158 - debug: wifilight.0 (1375541) Objects connected to redis: 127.0.0.1:9001
2024-09-03 13:01:00.176 - debug: wifilight.0 (1375541) Redis States: Use Redis connection: 127.0.0.1:9000
2024-09-03 13:01:00.187 - debug: wifilight.0 (1375541) States create System PubSub Client
2024-09-03 13:01:00.188 - debug: wifilight.0 (1375541) States create User PubSub Client
2024-09-03 13:01:00.246 - debug: wifilight.0 (1375541) States connected to redis: 127.0.0.1:9000
2024-09-03 13:01:00.261 - debug: wifilight.0 (1375541) Plugin sentry Initialize Plugin (enabled=true)
2024-09-03 13:01:00.363 - info: wifilight.0 (1375541) starting. Version 1.3.3 (non-npm: iobroker-community-adapters/ioBroker.wifilight) in /opt/iobroker/node_modules/iobroker.wifilight, node: v20.17.0, js-controller: 5.0.19
2024-09-03 13:01:00.468 - debug: wifilight.0 (1375541) [192.168.178.32] write: 31 ff ff ff 00 00 f0 0f 2d
2024-09-03 13:01:00.469 - debug: wifilight.0 (1375541) [192.168.178.64] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.469 - debug: wifilight.0 (1375541) [192.168.178.65] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.469 - debug: wifilight.0 (1375541) [192.168.178.82] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.470 - debug: wifilight.0 (1375541) [192.168.178.83] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.470 - debug: wifilight.0 (1375541) [192.168.178.93] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.470 - debug: wifilight.0 (1375541) [192.168.178.62] write: 31 ff ff ff 00 00 f0 0f 2d
2024-09-03 13:01:00.470 - debug: wifilight.0 (1375541) [192.168.178.30] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.30] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.62] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.93] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.83] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.82] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.65] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.64] onClose hasError=false client=null
2024-09-03 13:01:00.471 - debug: wifilight.0 (1375541) [192.168.178.32] onClose hasError=false client=null
2024-09-03 13:01:00.483 - debug: wifilight.0 (1375541) [192.168.178.65] 192.168.178.65 connected
2024-09-03 13:01:00.483 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.486 - debug: wifilight.0 (1375541) [192.168.178.62] 192.168.178.62 connected
2024-09-03 13:01:00.487 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.488 - debug: wifilight.0 (1375541) [192.168.178.64] 192.168.178.64 connected
2024-09-03 13:01:00.488 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.493 - debug: wifilight.0 (1375541) [192.168.178.65] write: 81 8a 8b 96
2024-09-03 13:01:00.494 - debug: wifilight.0 (1375541) [192.168.178.82] 192.168.178.82 connected
2024-09-03 13:01:00.494 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.497 - debug: wifilight.0 (1375541) [192.168.178.62] write: 81 8a 8b 96
2024-09-03 13:01:00.498 - debug: wifilight.0 (1375541) [192.168.178.64] write: 81 8a 8b 96
2024-09-03 13:01:00.499 - debug: wifilight.0 (1375541) [192.168.178.93] 192.168.178.93 connected
2024-09-03 13:01:00.500 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.502 - debug: wifilight.0 (1375541) [192.168.178.30] 192.168.178.30 connected
2024-09-03 13:01:00.503 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.504 - debug: wifilight.0 (1375541) [192.168.178.82] write: 81 8a 8b 96
2024-09-03 13:01:00.510 - debug: wifilight.0 (1375541) [192.168.178.93] write: 81 8a 8b 96
2024-09-03 13:01:00.513 - debug: wifilight.0 (1375541) [192.168.178.30] write: 81 8a 8b 96
2024-09-03 13:01:00.578 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.578 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 13:01:00.579 - debug: wifilight.0 (1375541) [192.168.178.93] onData: raw: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 13:01:00.579 - debug: wifilight.0 (1375541) [192.168.178.93] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":1,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:00.583 - debug: wifilight.0 (1375541) [192.168.178.32] 192.168.178.32 connected
2024-09-03 13:01:00.583 - debug: wifilight.0 (1375541) self.client.connect: connected
2024-09-03 13:01:00.593 - debug: wifilight.0 (1375541) [192.168.178.32] write: 81 8a 8b 96
2024-09-03 13:01:00.625 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.625 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:00.625 - debug: wifilight.0 (1375541) [192.168.178.64] onData: raw: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:00.625 - debug: wifilight.0 (1375541) [192.168.178.64] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:00.669 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.669 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:00.669 - debug: wifilight.0 (1375541) [192.168.178.32] onData: raw: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:00.669 - debug: wifilight.0 (1375541) [192.168.178.32] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:00.673 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.673 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0f 0c 0b 0b 00 06 00 00 70
2024-09-03 13:01:00.673 - debug: wifilight.0 (1375541) [192.168.178.82] onData: raw: 81 33 23 61 01 0f 0c 0b 0b 00 06 00 00 70
2024-09-03 13:01:00.673 - debug: wifilight.0 (1375541) [192.168.178.82] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":15,"red":12,"green":11,"blue":11,"white":0}
2024-09-03 13:01:00.709 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.709 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0f 07 07 07 00 06 00 00 63
2024-09-03 13:01:00.710 - debug: wifilight.0 (1375541) [192.168.178.30] onData: raw: 81 33 23 61 01 0f 07 07 07 00 06 00 00 63
2024-09-03 13:01:00.710 - debug: wifilight.0 (1375541) [192.168.178.30] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":15,"red":7,"green":7,"blue":7,"white":0}
2024-09-03 13:01:00.718 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.718 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0a 15 14 14 00 06 00 00 86
2024-09-03 13:01:00.718 - debug: wifilight.0 (1375541) [192.168.178.62] onData: raw: 81 33 23 61 01 0a 15 14 14 00 06 00 00 86
2024-09-03 13:01:00.718 - debug: wifilight.0 (1375541) [192.168.178.62] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":21,"green":20,"blue":20,"white":0}
2024-09-03 13:01:00.727 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:00.727 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0a 0d 0d 0d 00 06 00 00 70
2024-09-03 13:01:00.727 - debug: wifilight.0 (1375541) [192.168.178.65] onData: raw: 81 33 23 61 01 0a 0d 0d 0d 00 06 00 00 70
2024-09-03 13:01:00.727 - debug: wifilight.0 (1375541) [192.168.178.65] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":13,"green":13,"blue":13,"white":0}
2024-09-03 13:01:03.539 - debug: wifilight.0 (1375541) [192.168.178.83] onError: EHOSTUNREACH connect EHOSTUNREACH 192.168.178.83:5577
2024-09-03 13:01:03.539 - debug: wifilight.0 (1375541) [192.168.178.83] onClose hasError=true client=[object Object]
2024-09-03 13:01:30.483 - debug: wifilight.0 (1375541) [192.168.178.65] write: 81 8a 8b 96
2024-09-03 13:01:30.487 - debug: wifilight.0 (1375541) [192.168.178.62] write: 81 8a 8b 96
2024-09-03 13:01:30.487 - debug: wifilight.0 (1375541) [192.168.178.64] write: 81 8a 8b 96
2024-09-03 13:01:30.492 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.492 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 13:01:30.492 - debug: wifilight.0 (1375541) [192.168.178.65] onData: raw: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 13:01:30.492 - debug: wifilight.0 (1375541) [192.168.178.65] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.493 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.493 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 13:01:30.493 - debug: wifilight.0 (1375541) [192.168.178.62] onData: raw: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 13:01:30.493 - debug: wifilight.0 (1375541) [192.168.178.62] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.493 - debug: wifilight.0 (1375541) [192.168.178.82] write: 81 8a 8b 96
2024-09-03 13:01:30.497 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.497 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:30.497 - debug: wifilight.0 (1375541) [192.168.178.64] onData: raw: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:30.497 - debug: wifilight.0 (1375541) [192.168.178.64] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.500 - debug: wifilight.0 (1375541) [192.168.178.93] write: 81 8a 8b 96
2024-09-03 13:01:30.501 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.501 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 13:01:30.501 - debug: wifilight.0 (1375541) [192.168.178.82] onData: raw: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 13:01:30.501 - debug: wifilight.0 (1375541) [192.168.178.82] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":15,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.503 - debug: wifilight.0 (1375541) [192.168.178.30] write: 81 8a 8b 96
2024-09-03 13:01:30.505 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.505 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 13:01:30.505 - debug: wifilight.0 (1375541) [192.168.178.93] onData: raw: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 13:01:30.505 - debug: wifilight.0 (1375541) [192.168.178.93] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":1,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.507 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.507 - debug: wifilight.0 (1375541) raw data: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 13:01:30.507 - debug: wifilight.0 (1375541) [192.168.178.30] onData: raw: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 13:01:30.507 - debug: wifilight.0 (1375541) [192.168.178.30] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":15,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 13:01:30.583 - debug: wifilight.0 (1375541) [192.168.178.32] write: 81 8a 8b 96
2024-09-03 13:01:30.592 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 13:01:30.592 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:30.592 - debug: wifilight.0 (1375541) [192.168.178.32] onData: raw: 81 33 24 61 01 0a ff ff ff 00 04 00 00 45
2024-09-03 13:01:30.592 - debug: wifilight.0 (1375541) [192.168.178.32] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}

Es werden nicht mehr alle IPs abgefragt


2024-09-03 14:35:00.495 - debug: wifilight.0 (1375541) [192.168.178.65] write: 81 8a 8b 96
--
2024-09-03 14:35:00.523 - debug: wifilight.0 (1375541) [192.168.178.62] write: 81 8a 8b 96
2024-09-03 14:35:00.531 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:00.531 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:00.531 - debug: wifilight.0 (1375541) [192.168.178.62] onData: raw:
2024-09-03 14:35:00.538 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:00.538 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:00.538 - debug: wifilight.0 (1375541) [192.168.178.65] onData: raw: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:00.538 - debug: wifilight.0 (1375541) [192.168.178.65] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 14:35:00.540 - debug: wifilight.0 (1375541) [192.168.178.82] write: 81 8a 8b 96
2024-09-03 14:35:00.540 - debug: wifilight.0 (1375541) [192.168.178.93] write: 81 8a 8b 96
2024-09-03 14:35:00.545 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:00.545 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0f ff ff ff 00 06 00 00 4c
2024-09-03 14:35:00.545 - debug: wifilight.0 (1375541) [192.168.178.82] onData: raw: 81 33 24 61 01 0f ff ff ff 00 06 00 00 4c
2024-09-03 14:35:00.545 - debug: wifilight.0 (1375541) [192.168.178.82] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":15,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 14:35:00.636 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:00.636 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 23 01 ff ff ff 00 08 00 00 62
2024-09-03 14:35:00.636 - debug: wifilight.0 (1375541) [192.168.178.93] onData: raw: 81 33 24 61 23 01 ff ff ff 00 08 00 00 62
2024-09-03 14:35:00.636 - debug: wifilight.0 (1375541) [192.168.178.93] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":1,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 14:35:02.447 - info: tvspielfilm.0 (1398583) objects written
2024-09-03 14:35:12.949 - info: tvspielfilm.0 (1398583) Terminated (NO_ERROR): Without reason
2024-09-03 14:35:13.456 - info: host.iobrokerPROD instance system.adapter.tvspielfilm.0 terminated with code 0 (NO_ERROR)
2024-09-03 14:35:30.495 - debug: wifilight.0 (1375541) [192.168.178.65] write: 81 8a 8b 96
2024-09-03 14:35:30.502 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:30.502 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:30.502 - debug: wifilight.0 (1375541) [192.168.178.65] onData: raw: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:30.502 - debug: wifilight.0 (1375541) [192.168.178.65] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 14:35:30.523 - debug: wifilight.0 (1375541) [192.168.178.62] write: 81 8a 8b 96
2024-09-03 14:35:30.526 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:30.526 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0a ff ff ff 00 06 00 00 47
2024-09-03 14:35:30.526 - debug: wifilight.0 (1375541) [192.168.178.62] onData: raw:
2024-09-03 14:35:30.540 - debug: wifilight.0 (1375541) [192.168.178.82] write: 81 8a 8b 96
2024-09-03 14:35:30.540 - debug: wifilight.0 (1375541) [192.168.178.93] write: 81 8a 8b 96
2024-09-03 14:35:30.554 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:30.554 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 23 01 ff ff ff 00 08 00 00 62
2024-09-03 14:35:30.554 - debug: wifilight.0 (1375541) [192.168.178.93] onData: raw: 81 33 24 61 23 01 ff ff ff 00 08 00 00 62
2024-09-03 14:35:30.554 - debug: wifilight.0 (1375541) [192.168.178.93] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":1,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 14:35:30.557 - debug: wifilight.0 (1375541) raw data length: 14
2024-09-03 14:35:30.557 - debug: wifilight.0 (1375541) raw data: 81 33 24 61 01 0f ff ff ff 00 06 00 00 4c
2024-09-03 14:35:30.557 - debug: wifilight.0 (1375541) [192.168.178.82] onData: raw: 81 33 24 61 01 0f ff ff ff 00 06 00 00 4c
2024-09-03 14:35:30.557 - debug: wifilight.0 (1375541) [192.168.178.82] onData: {"on":false,"progNo":97,"progOn":false,"preogSpeed":15,"red":255,"green":255,"blue":255,"white":0}
GermanBluefox commented 2 months ago

Wenn ich die Instanz starte oder neu starte werden alle erreichbaren Geräte eingeschaltet. Die Lichter gehen an. Die zugehörigen on-DPs werden auf true gesetzt -> on=true

Ist dieser Fehler erst mit 1.3.x gekommen oder war der auch in 1.2.2 drin?

Um Energie zu sparen sind einige LED an einem Power-Switch, so dass sie nicht permanent Strom ziehen. Dort sind auch noch andere Geräte (keine wifilight) mit involviert. Sind diese Geräte bei Instanzstart nicht an werden sie als reachable false erkannt -> ok Schalte ich nun den Power-Switch wieder ein, so sind die Wifilight, die eben noch aus waren jetzt an. Jetzt sollten die wifilight Geräte ja von iobroker erreichbar sein, sind sie aber nicht.

Damit ich sie über iobroker steuern kann, muss ich die Instanz neu starten. Sie werden nicht automatisch erkannt (erst nach restart der Instanz) und somit deren reachable auf true gesetzt.

Ist das Gerät bei Instanzstart an und ich schalte es dann durch Power-Switch ab, so wird der reachable nicht geändert, er bleibt weiterhin auf true. Es findet also keine korrekte reachable-Prüfung statt?

Ist dieser Fehler erst mit 1.3.x gekommen oder war der auch in 1.2.2 drin?

Da der Adapter schlecht geschrieben ist (globale variablen, nicht mehr unterstütze Pakete) für mich sehr kompliziert ohne Hardware den Adapter zu pflegen.

mcuiobroker commented 2 months ago

Ist erst mit 1.3.3 gekommen. Soll ich Dir die Hardware zuschicken? Hab aber nur eine Variante (MagicHome) Wifi LED Controller, kein MiLight.

mcuiobroker commented 2 months ago

Geräte suchen in der Instanz-Konfiguration -> Fehler

image


2024-09-03 19:25:24.132 - error: wifilight.0 (63730) uncaught exception: result.include is not a function
--
2024-09-03 19:25:24.133 - error: wifilight.0 (63730) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.133 - error: wifilight.0 (63730) result.include is not a function
2024-09-03 19:25:24.137 - error: wifilight.0 (63730) uncaught exception: result.include is not a function
2024-09-03 19:25:24.137 - error: wifilight.0 (63730) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.137 - error: wifilight.0 (63730) result.include is not a function
2024-09-03 19:25:24.138 - error: wifilight.0 (63730) uncaught exception: result.include is not a function
2024-09-03 19:25:24.138 - error: wifilight.0 (63730) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.139 - error: wifilight.0 (63730) result.include is not a function
2024-09-03 19:25:24.139 - error: wifilight.0 (63730) uncaught exception: result.include is not a function
2024-09-03 19:25:24.139 - error: wifilight.0 (63730) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.139 - error: wifilight.0 (63730) result.include is not a function
2024-09-03 19:25:24.141 - info: wifilight.0 (63730) terminating
2024-09-03 19:25:24.141 - warn: wifilight.0 (63730) Terminated (UNCAUGHT_EXCEPTION): Without reason
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[0]: TypeError: result.include is not a function
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:events:519:28)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:domain:488:12)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[0]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[1]: TypeError: result.include is not a function
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[1]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[1]: at Socket.emit (node:events:519:28)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[1]: at Socket.emit (node:domain:488:12)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[1]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[2]: TypeError: result.include is not a function
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[2]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[2]: at Socket.emit (node:events:519:28)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[2]: at Socket.emit (node:domain:488:12)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[2]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[3]: TypeError: result.include is not a function
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[3]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[3]: at Socket.emit (node:events:519:28)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[3]: at Socket.emit (node:domain:488:12)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD Caught by controller[3]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:25:24.436 - error: host.iobrokerPROD instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)

mit debug-Log


2024-09-03 19:29:56.067 - debug: wifilight.0 (64999) Redis Objects: Use Redis connection: 127.0.0.1:9001
--
2024-09-03 19:29:56.088 - debug: wifilight.0 (64999) Objects client ready ... initialize now
2024-09-03 19:29:56.089 - debug: wifilight.0 (64999) Objects create System PubSub Client
2024-09-03 19:29:56.089 - debug: wifilight.0 (64999) Objects create User PubSub Client
2024-09-03 19:29:56.120 - debug: wifilight.0 (64999) Objects client initialize lua scripts
2024-09-03 19:29:56.121 - debug: wifilight.0 (64999) Objects connected to redis: 127.0.0.1:9001
2024-09-03 19:29:56.140 - debug: wifilight.0 (64999) Redis States: Use Redis connection: 127.0.0.1:9000
2024-09-03 19:29:56.149 - debug: wifilight.0 (64999) States create System PubSub Client
2024-09-03 19:29:56.150 - debug: wifilight.0 (64999) States create User PubSub Client
2024-09-03 19:29:56.208 - debug: wifilight.0 (64999) States connected to redis: 127.0.0.1:9000
2024-09-03 19:29:56.223 - debug: wifilight.0 (64999) Plugin sentry Initialize Plugin (enabled=true)
2024-09-03 19:29:56.315 - info: wifilight.0 (64999) starting. Version 1.3.3 (non-npm: iobroker-community-adapters/ioBroker.wifilight) in /opt/iobroker/node_modules/iobroker.wifilight, node: v20.17.0, js-controller: 5.0.19
2024-09-03 19:29:56.429 - debug: wifilight.0 (64999) [192.168.178.32] write: 31 ff ff ff 00 00 f0 0f 2d
2024-09-03 19:29:56.429 - debug: wifilight.0 (64999) [192.168.178.64] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.430 - debug: wifilight.0 (64999) [192.168.178.65] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.430 - debug: wifilight.0 (64999) [192.168.178.82] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.430 - debug: wifilight.0 (64999) [192.168.178.83] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.431 - debug: wifilight.0 (64999) [192.168.178.93] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.431 - debug: wifilight.0 (64999) [192.168.178.62] write: 31 ff ff ff 00 00 f0 0f 2d
2024-09-03 19:29:56.431 - debug: wifilight.0 (64999) [192.168.178.30] write: 31 ff ff ff ff 00 0f 3c
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.30] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.62] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.93] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.83] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.82] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.65] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.64] onClose hasError=false client=null
2024-09-03 19:29:56.432 - debug: wifilight.0 (64999) [192.168.178.32] onClose hasError=false client=null
2024-09-03 19:29:56.439 - debug: wifilight.0 (64999) [192.168.178.82] 192.168.178.82 connected
2024-09-03 19:29:56.439 - debug: wifilight.0 (64999) self.client.connect: connected
2024-09-03 19:29:56.440 - debug: wifilight.0 (64999) [192.168.178.65] 192.168.178.65 connected
2024-09-03 19:29:56.440 - debug: wifilight.0 (64999) self.client.connect: connected
2024-09-03 19:29:56.445 - debug: wifilight.0 (64999) [192.168.178.93] 192.168.178.93 connected
2024-09-03 19:29:56.445 - debug: wifilight.0 (64999) self.client.connect: connected
2024-09-03 19:29:56.449 - debug: wifilight.0 (64999) [192.168.178.82] write: 81 8a 8b 96
2024-09-03 19:29:56.449 - debug: wifilight.0 (64999) [192.168.178.62] 192.168.178.62 connected
2024-09-03 19:29:56.449 - debug: wifilight.0 (64999) self.client.connect: connected
2024-09-03 19:29:56.449 - debug: wifilight.0 (64999) [192.168.178.65] write: 81 8a 8b 96
2024-09-03 19:29:56.456 - debug: wifilight.0 (64999) [192.168.178.93] write: 81 8a 8b 96
2024-09-03 19:29:56.459 - debug: wifilight.0 (64999) [192.168.178.62] write: 81 8a 8b 96
2024-09-03 19:29:56.479 - debug: wifilight.0 (64999) raw data length: 14
2024-09-03 19:29:56.479 - debug: wifilight.0 (64999) raw data: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 19:29:56.479 - debug: wifilight.0 (64999) [192.168.178.65] onData: raw: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 19:29:56.479 - debug: wifilight.0 (64999) [192.168.178.65] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 19:29:56.491 - debug: wifilight.0 (64999) raw data length: 14
2024-09-03 19:29:56.491 - debug: wifilight.0 (64999) raw data: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 19:29:56.491 - debug: wifilight.0 (64999) [192.168.178.62] onData: raw: 81 33 23 61 01 0a ff ff ff 00 06 00 00 46
2024-09-03 19:29:56.491 - debug: wifilight.0 (64999) [192.168.178.62] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":10,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 19:29:56.527 - debug: wifilight.0 (64999) raw data length: 14
2024-09-03 19:29:56.528 - debug: wifilight.0 (64999) raw data: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 19:29:56.528 - debug: wifilight.0 (64999) [192.168.178.93] onData: raw: 81 33 23 61 23 01 ff ff ff 00 08 00 00 61
2024-09-03 19:29:56.528 - debug: wifilight.0 (64999) [192.168.178.93] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":1,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 19:29:56.557 - debug: wifilight.0 (64999) raw data length: 14
2024-09-03 19:29:56.557 - debug: wifilight.0 (64999) raw data: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 19:29:56.557 - debug: wifilight.0 (64999) [192.168.178.82] onData: raw: 81 33 23 61 01 0f ff ff ff 00 06 00 00 4b
2024-09-03 19:29:56.557 - debug: wifilight.0 (64999) [192.168.178.82] onData: {"on":true,"progNo":97,"progOn":false,"preogSpeed":15,"red":255,"green":255,"blue":255,"white":0}
2024-09-03 19:29:59.487 - debug: wifilight.0 (64999) [192.168.178.30] onError: EHOSTUNREACH connect EHOSTUNREACH 192.168.178.30:5577
2024-09-03 19:29:59.487 - debug: wifilight.0 (64999) [192.168.178.83] onError: EHOSTUNREACH connect EHOSTUNREACH 192.168.178.83:5577
2024-09-03 19:29:59.487 - debug: wifilight.0 (64999) [192.168.178.64] onError: EHOSTUNREACH connect EHOSTUNREACH 192.168.178.64:5577
2024-09-03 19:29:59.487 - debug: wifilight.0 (64999) [192.168.178.32] onError: EHOSTUNREACH connect EHOSTUNREACH 192.168.178.32:5577
2024-09-03 19:29:59.488 - debug: wifilight.0 (64999) [192.168.178.32] onClose hasError=true client=[object Object]
2024-09-03 19:29:59.488 - debug: wifilight.0 (64999) [192.168.178.64] onClose hasError=true client=[object Object]
2024-09-03 19:29:59.488 - debug: wifilight.0 (64999) [192.168.178.83] onClose hasError=true client=[object Object]
2024-09-03 19:29:59.488 - debug: wifilight.0 (64999) [192.168.178.30] onClose hasError=true client=[object Object]
2024-09-03 19:29:59.535 - info: admin.0 (178) ==> Connected system.user.admin from ::ffff:192.168.178.77
2024-09-03 19:30:00.018 - info: host.iobrokerPROD instance system.adapter.tvspielfilm.0 started with pid 65014
2024-09-03 19:30:00.020 - info: javascript.0 (205) script.js.JARVIS.MasterIconButtons.masterIconButtons: rssfeed aktualisieren
2024-09-03 19:30:00.301 - info: javascript.0 (205) script.js.ENTWICKLUNG.N-TV-Allgemein: Neue N-TV Allgemein Daten geholt!
2024-09-03 19:30:00.965 - info: tvspielfilm.0 (65014) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.tvspielfilm, node: v20.17.0, js-controller: 5.0.19
2024-09-03 19:30:02.982 - info: tvspielfilm.0 (65014) objects written
2024-09-03 19:30:03.173 - error: wifilight.0 (64999) uncaught exception: result.include is not a function
2024-09-03 19:30:03.173 - error: wifilight.0 (64999) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.173 - error: wifilight.0 (64999) result.include is not a function
2024-09-03 19:30:03.178 - error: wifilight.0 (64999) uncaught exception: result.include is not a function
2024-09-03 19:30:03.178 - error: wifilight.0 (64999) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.178 - error: wifilight.0 (64999) result.include is not a function
2024-09-03 19:30:03.179 - error: wifilight.0 (64999) uncaught exception: result.include is not a function
2024-09-03 19:30:03.179 - error: wifilight.0 (64999) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.179 - error: wifilight.0 (64999) result.include is not a function
2024-09-03 19:30:03.228 - info: wifilight.0 (64999) terminating
2024-09-03 19:30:03.229 - debug: wifilight.0 (64999) Plugin sentry destroyed
2024-09-03 19:30:03.229 - warn: wifilight.0 (64999) Terminated (UNCAUGHT_EXCEPTION): Without reason
2024-09-03 19:30:03.229 - error: wifilight.0 (64999) uncaught exception: result.include is not a function
2024-09-03 19:30:03.229 - error: wifilight.0 (64999) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.229 - error: wifilight.0 (64999) result.include is not a function
2024-09-03 19:30:03.248 - error: wifilight.0 (64999) uncaught exception: result.include is not a function
2024-09-03 19:30:03.249 - error: wifilight.0 (64999) TypeError: result.include is not a function
at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.249 - error: wifilight.0 (64999) result.include is not a function
2024-09-03 19:30:03.764 - error: host.iobrokerPROD Caught by controller[0]: TypeError: result.include is not a function
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:events:519:28)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:domain:488:12)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: TypeError: result.include is not a function
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:events:519:28)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:domain:488:12)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: TypeError: result.include is not a function
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:events:519:28)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at Socket.emit (node:domain:488:12)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[0]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[1]: TypeError: result.include is not a function
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[1]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[1]: at Socket.emit (node:events:519:28)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[1]: at Socket.emit (node:domain:488:12)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[1]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[2]: TypeError: result.include is not a function
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[2]: at Socket. (/opt/iobroker/node_modules/iobroker.wifilight/lib/discovery.js:31:20)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[2]: at Socket.emit (node:events:519:28)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[2]: at Socket.emit (node:domain:488:12)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD Caught by controller[2]: at UDP.onMessage (node:dgram:946:8)
2024-09-03 19:30:03.765 - error: host.iobrokerPROD instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
Ilovegym66 commented 2 months ago

fixed in 1.3.5, well done!

mcuiobroker commented 2 months ago

Bleibt noch das Problem mit den "destroy" Clients. Einmal gelöschte Clients / IPs werden nach Einschalten (Power-Switch) nicht erfasst. -> Man muss die Instanz neu starten.

EDIT: Es werden die LEDs jetzt nicht mehr geschaltet.

GermanBluefox commented 2 months ago

EDIT: Es werden die LEDs jetzt nicht mehr geschaltet.

Ich habe wirklich nichts diesbezüglich getan

Ilovegym66 commented 2 months ago

bei mir funktioniert alles bestens, mit 1.3.5. Sogar, wenn mit der App geschaltet wird, wird der Status von PowerON nach max 30sec aktualisiert, das gabs vorher ja nie. @mcuiobroker Aendere vielleicht mal den Devicetyp, also anstatt LD382 n anderes.. das half bei mir auch schon..es gibt ja ein paar mehr, als ich hier habe..

Hier meine Devices (gibt ja verschiedene Hardware) mit den Ports: (System Buanet Docker V10, MacVlan, Js-controller 6.0.11 ) Screenshot 2024-09-05 at 08 45 52

mcuiobroker commented 2 months ago

Habe jetzt nochmal von 1.2.2 NPM-Update gemacht. Jetzt läuft es. Komisch. Problem ist aber nachwievor, dass man die Instanz neu starten muss für die devices, die man stromlos geschaltet hatte und wieder einschaltet. Und der ack wird anscheinend nicht immer gesetzt? image

GermanBluefox commented 2 months ago

Ich habe wifilight ziemlich umgeschrieben. Bitte v2.0.0 ausprobieren

mcuiobroker commented 2 months ago

Da kommt dann dies. Adapter bleibt rot


2024-09-05 15:19:01.920 - info: host.iobrokerPROD instance system.adapter.wifilight.0 started with pid 704570
--
2024-09-05 15:19:02.371 - info: wifilight.0 (704570) starting. Version 2.0.0 (non-npm: iobroker-community-adapters/ioBroker.wifilight) in /opt/iobroker/node_modules/iobroker.wifilight, node: v20.17.0, js-controller: 5.0.19
2024-09-05 15:19:02.487 - error: wifilight.0 (704570) uncaught exception: akt.cmd.eq is not a function
2024-09-05 15:19:02.487 - error: wifilight.0 (704570) TypeError: akt.cmd.eq is not a function
at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
at listOnTimeout (node:internal/timers:581:17)
at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:02.487 - error: wifilight.0 (704570) akt.cmd.eq is not a function
2024-09-05 15:19:02.493 - error: wifilight.0 (704570) uncaught exception: akt.cmd.eq is not a function
2024-09-05 15:19:02.493 - error: wifilight.0 (704570) TypeError: akt.cmd.eq is not a function
at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
at listOnTimeout (node:internal/timers:581:17)
at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:02.493 - error: wifilight.0 (704570) akt.cmd.eq is not a function
2024-09-05 15:19:02.494 - info: wifilight.0 (704570) terminating
2024-09-05 15:19:02.494 - warn: wifilight.0 (704570) Terminated (UNCAUGHT_EXCEPTION): Without reason
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[0]: TypeError: akt.cmd.eq is not a function
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[0]: at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[0]: at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[0]: at listOnTimeout (node:internal/timers:581:17)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[0]: at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[1]: TypeError: akt.cmd.eq is not a function
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[1]: at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[1]: at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[1]: at listOnTimeout (node:internal/timers:581:17)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD Caught by controller[1]: at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:02.727 - error: host.iobrokerPROD instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
2024-09-05 15:19:02.727 - info: host.iobrokerPROD Restart adapter system.adapter.wifilight.0 because enabled
2024-09-05 15:19:32.762 - info: host.iobrokerPROD instance system.adapter.wifilight.0 started with pid 704703
2024-09-05 15:19:33.209 - info: wifilight.0 (704703) starting. Version 2.0.0 (non-npm: iobroker-community-adapters/ioBroker.wifilight) in /opt/iobroker/node_modules/iobroker.wifilight, node: v20.17.0, js-controller: 5.0.19
2024-09-05 15:19:33.354 - error: wifilight.0 (704703) uncaught exception: akt.cmd.eq is not a function
2024-09-05 15:19:33.354 - error: wifilight.0 (704703) TypeError: akt.cmd.eq is not a function
at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
at listOnTimeout (node:internal/timers:581:17)
at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:33.355 - error: wifilight.0 (704703) akt.cmd.eq is not a function
2024-09-05 15:19:33.360 - info: wifilight.0 (704703) terminating
2024-09-05 15:19:33.360 - warn: wifilight.0 (704703) Terminated (UNCAUGHT_EXCEPTION): Without reason
2024-09-05 15:19:33.558 - error: host.iobrokerPROD Caught by controller[0]: TypeError: akt.cmd.eq is not a function
2024-09-05 15:19:33.559 - error: host.iobrokerPROD Caught by controller[0]: at WifiLight.exec (/opt/iobroker/node_modules/iobroker.wifilight/main.js:784:52)
2024-09-05 15:19:33.559 - error: host.iobrokerPROD Caught by controller[0]: at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.wifilight/main.js:791:55)
2024-09-05 15:19:33.559 - error: host.iobrokerPROD Caught by controller[0]: at listOnTimeout (node:internal/timers:581:17)
2024-09-05 15:19:33.559 - error: host.iobrokerPROD Caught by controller[0]: at processTimers (node:internal/timers:519:7)
2024-09-05 15:19:33.559 - error: host.iobrokerPROD instance system.adapter.wifilight.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
2024-09-05 15:19:33.559 - info: host.iobrokerPROD Restart adapter system.adapter.wifilight.0 because enabled
Ilovegym66 commented 2 months ago

yes, with V2.0 the same errors: akt.cmd.eq is not a function - back to V1.3.5, everything is fine. (productive system)

GermanBluefox commented 2 months ago

Ich habe das gerät jetzt simuliert und konnte den Fehler reproduzieren. Jetzt sollte laufen

Ilovegym66 commented 2 months ago

Super, vielen Dank, mit 2.0.1 funktioniert jetzt alles. Beim starten des Adapters hatte ich 3 Devices als offline angezeigt bekommen, wobei davon nur wirklich eins offline war (lt. App). Ich habe die Pollzeit bei den anderen beiden Devices von 30 auf 60 erhoeht, den Adapter neu gestartet, jetzt werden alle (bis auf das eine, was wirklich offline ist) richtig angezeigt. Habe soweit alle Funktionen getestet, keine Fehler mehr. Vielen Vielen Vielen Dank !

mcuiobroker commented 2 months ago

Bei mir nicht, gleiches Verhalten, wie sonst auch. Ist die Instanz gestartet und einige Geräte sind stromlos, werden diese auch nach Minuten nicht erkannt, wenn man dort den Strom einschaltet. Auch ein manueller Refresh funktioniert nicht. Erst nach Restart von der Instanz sind die Geräte als reachable erkannt und können geschaltet werden.

mcm1957 commented 2 months ago

@mcuiobroker Da das Issue schon geschlossen wurde und eigentlich "Colors.rgb2hsv is not a function" betrifft, wär es ev. sinnvoll ein neues Issue mit deinem Problem anzulegen - incl der bei dir im Einsatz befindlichen Versionen und einem DEBUG Log. Alternativ kannst du natürlich auch warten ob sich @GermanBluefox hier nochmals dazu meldet.

mcuiobroker commented 2 months ago

Kann ich machen, aber ich hatte das Problem auch schon 3x hier erwähnt. Er kennt es.

mcm1957 commented 2 months ago

Jep - deswegen hab ich auch geschrieben dass du auch gerne auf eine Reaktion von BF hier warten kannst. Wenn nix in den nächsten Tagen kommt, dann schlage ich eher ein neues Issue vor, da die geclosten später niemand mehr durchsieht. Hoff auch dein Problem wird rasch gefixed mit dem rewrite des Museums Adapter hat BF ja schon mal tolle Arbeit geleistet und das Ding wartbar gemacht. DANKE @GermanBluefox

EDIT: Postig hat sich mit Info über neues Issue überschnitten. Sorry