Giter VIP home page Giter VIP logo

iobroker.wled's People

Contributors

arteck avatar dependabot-preview[bot] avatar dependabot[bot] avatar dutchmannl avatar foxriver76 avatar garfonso avatar haggardffm avatar iobroker22 avatar jey-cee avatar yazgoo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.wled's Issues

RAM verbrauch hoch

Hallo
der RAM verbrauch war bei mir knapp bei 400MB und nach dem neustart des adapters auf 50MB
evtl sollte dieses Problem behoben werden.

grüße :D

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Warning with JS Controler 3.0.7

After Update to JS Controler 3.0.7 i get a warning:
wled.0 2020-04-13 09:57:17.397 warn (25893) This value will not be set in future versions. Please report this to the developer. wled.0 2020-04-13 09:57:17.397 warn (25893) State value to set is invalid for wled.0.cc50e304f753.seg.0.col.0: The state is missing the required property val! wled.0 2020-04-13 09:57:17.394 warn (25893) This value will not be set in future versions. Please report this to the developer. wled.0 2020-04-13 09:57:17.393 warn (25893) State value to set is invalid for wled.0.cc50e304f753.seg.0.ix: The state is missing the required property val!

JS Controler 3.0.7
NPM 6.14.4
NodeJS 12.16.2

pl & fx are not synced (correctly)

  • When changing "Preset Cycle" (pl = 0 / -1) in web frontend the value will not be changed in ioBroker
  • fx will not set to "Solid" (0). Other Effects work fine

Changing both in ioBroker works fine and will be set in WLED

Versions:

  • Adapter version: v0.5.4
  • JS-Controller version: v3.1.6
  • Node version: v12.18.3
  • Operating system: linux / docker

Changing lor value doesn't work

is this a bug or normal and just not possible?
If it is possible, what could be a reason that it doesn't work?
No problem to change other settings.

wLED speichert keine Segmente.

wLED löscht alle angelegten Segmente wenn man den Strom wegnimmt.
ist es möglich das der Adapter die Segmente wieder schreibt, nachdem dieser vom Strom getrennt war?

Introduce Playlists / JSON Post

WLED supports playlists, that are quite useful.
I have not found a way to control these over the ioBroker.wled adapter.

It would be great if we could get either native support for this feature, or a possibility to transmit json to the wled device via the adapter.

when sentry is globally disabled, WLED adapter throws errors

starting the adapter (0.5.6) with sentry disabled, starting the instance seem to trigger sentry, followed by an error:
2021-03-26 21:21:55.289 - ESC[32minfoESC[39m: wled.0 (12313) Try to contact : "WLED-2" on IP : 10.10.10.120 2021-03-26 21:21:55.817 - ESC[32minfoESC[39m: wled.0 (12313) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + &#x26A1; Ping fix pings<span style="display:block;padding-left:25px;">Delay <input type="number" min="5" max="300" value="30" onchange="requestJson({PingDelay:parseInt(this.value)});">sec</span> 2021-03-26 21:21:55.819 - ESC[31merrorESC[39m: wled.0 (12313) Create state error = TypeError: Cannot read property 'captureException' of undefined 2021-03-26 21:21:55.819 - ESC[32minfoESC[39m: wled.0 (12313) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + &#x26A1; Reconnects 2021-03-26 21:21:55.820 - ESC[31merrorESC[39m: wled.0 (12313) Create state error = TypeError: Cannot read property 'captureException' of undefined 2021-03-26 21:21:56.142 - ESC[32minfoESC[39m: wled.0 (12313) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + PingDelay 2021-03-26 21:21:56.143 - ESC[31merrorESC[39m: wled.0 (12313) Create state error = TypeError: Cannot read property 'captureException' of undefined 2021-03-26 21:21:56.564 - ESC[32minfoESC[39m: wled.0 (12313) Device : "WLED-2" Successfully connected on IP : 10.10.10.120

JS controller version: 3.2.16, admin version: 4.2.1

Remove WLED modules from adminpage/objects

Moin :-)

Der Adapter fängt ja die WLED Module ein, wenn man aber z.B. viele Geräte konfiguriert (z.B. für Freunde etc.) tauchen diese natürlich alle in der Admin-Übersicht, sowie in der Objekt-Liste auf. Hier wäre es schön die Module die nicht mehr im Einsatz sind, einfach über die Admin-Oberfläche (inkl. Löschung im Objekt-Baum) löschen zu können.

error handling 0.11.x firmware

reminder : https://forum.iobroker.net/topic/29833/wled-led-streifen-ws2812b-ws2811-sk6812-apa102-bedienen/313


2020-12-25 19:40:09.073 - info: host.iobroker-deb instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
--
  | 2020-12-25 19:40:39.224 - info: host.iobroker-deb "system.adapter.wled.0" disabled
  | 2020-12-25 19:40:39.225 - info: host.iobroker-deb stopInstance system.adapter.wled.0 (force=false, process=true)
  | 2020-12-25 19:40:39.226 - info: host.iobroker-deb stopInstance system.adapter.wled.0 send kill signal
  | 2020-12-25 19:40:39.229 - info: wled.0 (16106) Got terminate signal TERMINATE_YOURSELF
  | 2020-12-25 19:40:39.236 - info: wled.0 (16106) terminating
  | 2020-12-25 19:40:39.237 - info: wled.0 (16106) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
  | 2020-12-25 19:40:39.237 - info: wled.0 (16106) cleaned everything up...
  | 2020-12-25 19:40:39.783 - info: host.iobroker-deb instance system.adapter.wled.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
  | 2020-12-25 19:41:20.861 - info: host.iobroker-deb "system.adapter.wled.0" enabled
  | 2020-12-25 19:41:20.904 - info: host.iobroker-deb instance system.adapter.wled.0 started with pid 22618
  | 2020-12-25 19:41:22.600 - info: wled.0 (22618) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
  | 2020-12-25 19:41:22.610 - info: wled.0 (22618) starting. Version 0.5.4 in /opt/iobroker/node_modules/iobroker.wled, node: v12.20.0, js-controller: 3.1.6
  | 2020-12-25 19:41:22.637 - info: wled.0 (22618) Try to contact known devices
  | 2020-12-25 19:41:22.638 - info: wled.0 (22618) Try to contact : "Wohnzimmer Schrank" on IP : 192.168.0.193
  | 2020-12-25 19:41:26.399 - info: wled.0 (22618) Device : "Wohnzimmer Schrank" Successfully connected on IP : 192.168.0.193
  | 2020-12-25 19:41:26.404 - info: wled.0 (22618) Bonjour service startet, new devices will be detected automatically :-)
  | 2020-12-25 19:41:26.405 - info: wled.0 (22618) WLED initialisation finalized, ready to do my job have fun !
  | 2020-12-25 19:42:59.247 - info: wled.0 (22618) New WLED device found wled-5d9de3 on IP 192.168.0.192
  | 2020-12-25 19:43:00.458 - info: wled.0 (22618) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + u
  | 2020-12-25 19:43:00.459 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
  | 2020-12-25 19:43:00.459 - error: wled.0 (22618) unhandled promise rejection: Cannot read property 'captureException' of undefined
  | 2020-12-25 19:43:00.460 - error: wled.0 (22618) TypeError: Cannot read property 'captureException' of undefined
  | at Wled.sendSentry (/opt/iobroker/node_modules/iobroker.wled/main.js:802:37)
  | at Wled.create_state (/opt/iobroker/node_modules/iobroker.wled/main.js:698:11)
  | at Wled.readData (/opt/iobroker/node_modules/iobroker.wled/main.js:426:18)
  | at runMicrotasks ()
  | at processTicksAndRejections (internal/process/task_queues.js:97:5)
  | 2020-12-25 19:43:00.461 - info: wled.0 (22618) cleaned everything up...
  | 2020-12-25 19:43:00.477 - info: wled.0 (22618) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + t
  | 2020-12-25 19:43:00.478 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
  | 2020-12-25 19:43:00.478 - error: wled.0 (22618) unhandled promise rejection: Cannot read property 'captureException' of undefined
  | 2020-12-25 19:43:00.478 - error: wled.0 (22618) TypeError: Cannot read property 'captureException' of undefined
  | at Wled.sendSentry (/opt/iobroker/node_modules/iobroker.wled/main.js:802:37)
  | at Wled.create_state (/opt/iobroker/node_modules/iobroker.wled/main.js:698:11)
  | at Wled.readData (/opt/iobroker/node_modules/iobroker.wled/main.js:426:18)
  | at runMicrotasks ()
  | at processTicksAndRejections (internal/process/task_queues.js:97:5)
  | 2020-12-25 19:43:00.479 - info: wled.0 (22618) terminating
  | 2020-12-25 19:43:00.480 - info: wled.0 (22618) Terminated (NO_ERROR): Without reason
  | 2020-12-25 19:43:00.530 - info: wled.0 (22618) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + pmt
  | 2020-12-25 19:43:01.008 - info: host.iobroker-deb instance system.adapter.wled.0 terminated with code 0 (NO_ERROR)
  | 2020-12-25 19:43:01.013 - info: host.iobroker-deb Restart adapter system.adapter.wled.0 because enabled
  | 2020-12-25 19:43:31.033 - info: host.iobroker-deb instance system.adapter.wled.0 started with pid 22878
  | 2020-12-25 19:43:32.552 - info: wled.0 (22878) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
  | 2020-12-25 19:43:32.608 - info: wled.0 (22878) starting. Version 0.5.4 in /opt/iobroker/node_modules/iobroker.wled, node: v12.20.0, js-controller: 3.1.6
  | 2020-12-25 19:43:32.646 - info: wled.0 (22878) Try to contact known devices
  | 2020-12-25 19:43:32.646 - info: wled.0 (22878) Try to contact : "Wohnzimmer Schrank" on IP : 192.168.0.193
  | 2020-12-25 19:43:35.994 - info: wled.0 (22878) Device : "Wohnzimmer Schrank" Successfully connected on IP : 192.168.0.193
  | 2020-12-25 19:43:35.994 - info: wled.0 (22878) Try to contact : "Stehlampe" on IP : 192.168.0.192
  | 2020-12-25 19:43:37.602 - info: wled.0 (22878) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + u
  | 2020-12-25 19:43:37.605 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
  | 2020-12-25 19:43:37.606 - error: wled.0 (22878) unhandled promise rejection: Cannot read property 'captureException' of undefined
  | 2020-12-25 19:43:37.607 - error: wled.0 (22878) TypeError: Cannot read property 'captureException' of undefined
  | at Wled.sendSentry (/opt/iobroker/node_modules/iobroker.wled/main.js:802:37)
  | at Wled.create_state (/opt/iobroker/node_modules/iobroker.wled/main.js:698:11)
  | at Wled.readData (/opt/iobroker/node_modules/iobroker.wled/main.js:426:18)
  | at runMicrotasks ()
  | at processTicksAndRejections (internal/process/task_queues.js:97:5)
  | at async Wled.tryKnownDevices (/opt/iobroker/node_modules/iobroker.wled/main.js:638:19)
  | at async Wled.onReady (/opt/iobroker/node_modules/iobroker.wled/main.js:49:3)
  | 2020-12-25 19:43:37.609 - info: wled.0 (22878) cleaned everything up...
  | 2020-12-25 19:43:37.628 - info: wled.0 (22878) terminating
  | 2020-12-25 19:43:37.629 - info: wled.0 (22878) Terminated (NO_ERROR): Without reason
  | 2020-12-25 19:43:37.635 - info: wled.0 (22878) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + t
  | 2020-12-25 19:43:37.685 - info: wled.0 (22878) [Error catched and send to Sentry, thank you collaborating!] error: State attribute definition missing for + pmt
  | 2020-12-25 19:43:38.164 - info: host.iobroker-deb instance system.adapter.wled.0 terminated with code 0 (NO_ERROR)
  | 2020-12-25 19:43:38.165 - info: host.iobroker-deb Restart adapter system.adapter.wled.0 because enabled


Data point for "last used color" and "last used mode"

To highlight an event, I use WLED to blink in another color a few times. For this, I have to create my own variables to cache the used color before I highlighted something. If there would be a data point like "last used color" or a few free template data points, I don't have to create my own variables and I could use only the data points directly at the controller. Also a data point "last used mode" would be helpful for this.

For example:
The LED Stripe is red, without any animation. If the telephone rings, the LED stripe changes his color to blue for 10 seconds and starts blinking. After 10 seconds, the LED Stripe turns back to red (or the last used color before it wents blinking blue) without blinking.

Thank you in advance.

Compatibility check and testing for Node.js 14 and 16

Dear Adapter developer,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Error on first use after power reconnection

I am using an ESP32 with WLED 0.10. After disconnecting the ESP and LED strip from power and reconnecting it I cannot turn on the LED strip via the datapoints. I have to manually log in to the ESP and power it on manually once. After that I can instantly turn on and off the strip via the data points.

Adapter Version is 0.5.1
js-controller: 3.1.4

Edit: It only happens if I use the on data point under seg.0. If I use the on data point on the top level it works fine.

Detailled log:

`

wled.0 2020-05-22 19:45:43.716 debug (15524) Create_state called for : 246f28ae1b18.time with value : null
wled.0 2020-05-22 19:45:43.715 debug (15524) Create_state called for : 246f28ae1b18.udpn.nn with value : null
wled.0 2020-05-22 19:45:43.715 debug (15524) Create_state called for : 246f28ae1b18.psave with value : null
wled.0 2020-05-22 19:45:43.714 debug (15524) Create_state called for : 246f28ae1b18.tt with value : null
wled.0 2020-05-22 19:45:43.713 debug (15524) Create_state called for : 246f28ae1b18.seg.0.rev with value : false
wled.0 2020-05-22 19:45:43.713 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.712 debug (15524) Create_state called for : 246f28ae1b18.seg.0.sel with value : true
wled.0 2020-05-22 19:45:43.711 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.644 debug (15524) Create special drop down state with value {"0":"Solid","1":"Blink","2":"Breathe","3":"Wipe","4":"Wipe Random","5":"Random Colors","6":"Sweep","7":"Dynamic","8":"Colorloop","9":"Rainbow","10":"
wled.0 2020-05-22 19:45:43.644 debug (15524) Create_state called for : 246f28ae1b18.seg.0.pal with value : 0
wled.0 2020-05-22 19:45:43.643 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.643 debug (15524) Create_state called for : 246f28ae1b18.seg.0.ix with value : 128
wled.0 2020-05-22 19:45:43.642 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.642 debug (15524) Create_state called for : 246f28ae1b18.seg.0.sx with value : 128
wled.0 2020-05-22 19:45:43.642 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.580 debug (15524) Create special drop donwn state with value {"0":"Solid","1":"Blink","2":"Breathe","3":"Wipe","4":"Wipe Random","5":"Random Colors","6":"Sweep","7":"Dynamic","8":"Colorloop","9":"Rainbow","10":
wled.0 2020-05-22 19:45:43.579 debug (15524) Create_state called for : 246f28ae1b18.seg.0.fx with value : 0
wled.0 2020-05-22 19:45:43.579 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.578 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.2_HEX with value : #000000
wled.0 2020-05-22 19:45:43.578 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.2 with value : 0,0,0
wled.0 2020-05-22 19:45:43.577 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.1_HEX with value : #000000
wled.0 2020-05-22 19:45:43.577 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.1 with value : 0,0,0
wled.0 2020-05-22 19:45:43.577 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.0_HEX with value : #ffa000
wled.0 2020-05-22 19:45:43.575 debug (15524) Create_state called for : 246f28ae1b18.seg.0.col.0 with value : 255,160,0
wled.0 2020-05-22 19:45:43.575 debug (15524) Naming : col with content : [255,160,0]
wled.0 2020-05-22 19:45:43.575 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.574 debug (15524) Create_state called for : 246f28ae1b18.seg.0.bri with value : 255
wled.0 2020-05-22 19:45:43.574 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.574 debug (15524) Create_state called for : 246f28ae1b18.seg.0.on with value : true
wled.0 2020-05-22 19:45:43.574 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.573 debug (15524) Create_state called for : 246f28ae1b18.seg.0.spc with value : 0
wled.0 2020-05-22 19:45:43.573 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.573 debug (15524) Create_state called for : 246f28ae1b18.seg.0.grp with value : 1
wled.0 2020-05-22 19:45:43.568 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.568 debug (15524) Create_state called for : 246f28ae1b18.seg.0.len with value : 300
wled.0 2020-05-22 19:45:43.568 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.567 debug (15524) Create_state called for : 246f28ae1b18.seg.0.stop with value : 300
wled.0 2020-05-22 19:45:43.567 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.566 debug (15524) Create_state called for : 246f28ae1b18.seg.0.start with value : 0
wled.0 2020-05-22 19:45:43.566 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.566 debug (15524) Create_state called for : 246f28ae1b18.seg.0.id with value : 0
wled.0 2020-05-22 19:45:43.565 debug (15524) Object states created for channel seg with parameter : 0 : {"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":1
wled.0 2020-05-22 19:45:43.545 debug (15524) Segment Array : [{"id":0,"start":0,"stop":300,"len":300,"grp":1,"spc":0,"on":true,"bri":255,"col":[[255,160,0],[0,0,0],[0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"sel":true,"rev":false}]
wled.0 2020-05-22 19:45:43.544 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.543 debug (15524) Create_state called for : 246f28ae1b18.mainseg with value : 0
wled.0 2020-05-22 19:45:43.543 debug (15524) Default state created : mainseg : 0
wled.0 2020-05-22 19:45:43.542 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.542 debug (15524) Create_state called for : 246f28ae1b18.lor with value : 0
wled.0 2020-05-22 19:45:43.541 debug (15524) Default state created : lor : 0
wled.0 2020-05-22 19:45:43.540 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.540 debug (15524) Create_state called for : 246f28ae1b18.udpn.recv with value : true
wled.0 2020-05-22 19:45:43.539 debug (15524) Object states created for channel udpn with parameter : recv : true
wled.0 2020-05-22 19:45:43.538 debug (15524) Create_state called for : 246f28ae1b18.udpn.send with value : false
wled.0 2020-05-22 19:45:43.537 debug (15524) Object states created for channel udpn with parameter : send : false
wled.0 2020-05-22 19:45:43.498 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.498 debug (15524) Create_state called for : 246f28ae1b18.nl.tbri with value : 0
wled.0 2020-05-22 19:45:43.498 debug (15524) Object states created for channel nl with parameter : tbri : 0
wled.0 2020-05-22 19:45:43.497 debug (15524) Create_state called for : 246f28ae1b18.nl.fade with value : true
wled.0 2020-05-22 19:45:43.497 debug (15524) Object states created for channel nl with parameter : fade : true
wled.0 2020-05-22 19:45:43.495 debug (15524) Create_state called for : 246f28ae1b18.nl.dur with value : 60
wled.0 2020-05-22 19:45:43.495 debug (15524) Object states created for channel nl with parameter : dur : 60
wled.0 2020-05-22 19:45:43.494 debug (15524) Create_state called for : 246f28ae1b18.nl.on with value : false
wled.0 2020-05-22 19:45:43.494 debug (15524) Object states created for channel nl with parameter : on : false
wled.0 2020-05-22 19:45:43.441 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.441 debug (15524) Create_state called for : 246f28ae1b18.ccnf.time with value : 12
wled.0 2020-05-22 19:45:43.441 debug (15524) Object states created for channel ccnf with parameter : time : 12
wled.0 2020-05-22 19:45:43.439 debug (15524) Create_state called for : 246f28ae1b18.ccnf.max with value : 5
wled.0 2020-05-22 19:45:43.439 debug (15524) Object states created for channel ccnf with parameter : max : 5
wled.0 2020-05-22 19:45:43.438 debug (15524) Create_state called for : 246f28ae1b18.ccnf.min with value : 1
wled.0 2020-05-22 19:45:43.438 debug (15524) Object states created for channel ccnf with parameter : min : 1
wled.0 2020-05-22 19:45:43.430 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.430 debug (15524) Create_state called for : 246f28ae1b18.pl with value : -1
wled.0 2020-05-22 19:45:43.430 debug (15524) Default state created : pl : -1
wled.0 2020-05-22 19:45:43.430 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.429 debug (15524) Create_state called for : 246f28ae1b18.pss with value : 7
wled.0 2020-05-22 19:45:43.429 debug (15524) Default state created : pss : 7
wled.0 2020-05-22 19:45:43.429 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.429 debug (15524) Create_state called for : 246f28ae1b18.ps with value : -1
wled.0 2020-05-22 19:45:43.428 debug (15524) Default state created : ps : -1
wled.0 2020-05-22 19:45:43.428 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.428 debug (15524) Create_state called for : 246f28ae1b18.transition with value : 7
wled.0 2020-05-22 19:45:43.427 debug (15524) Default state created : transition : 7
wled.0 2020-05-22 19:45:43.427 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.426 debug (15524) Create_state called for : 246f28ae1b18.bri with value : 128
wled.0 2020-05-22 19:45:43.426 debug (15524) Default state created : bri : 128
wled.0 2020-05-22 19:45:43.426 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.425 debug (15524) Create_state called for : 246f28ae1b18.on with value : false
wled.0 2020-05-22 19:45:43.425 debug (15524) Default state created : on : false
wled.0 2020-05-22 19:45:43.425 debug (15524) Datatype : boolean
wled.0 2020-05-22 19:45:43.424 debug (15524) Create_state called for : 246f28ae1b18._info.mac with value : 246f28ae1b18
wled.0 2020-05-22 19:45:43.424 debug (15524) State created : mac : "246f28ae1b18"
wled.0 2020-05-22 19:45:43.422 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.422 debug (15524) Create_state called for : 246f28ae1b18._info.product with value : FOSS
wled.0 2020-05-22 19:45:43.421 debug (15524) State created : product : "FOSS"
wled.0 2020-05-22 19:45:43.412 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.411 debug (15524) Create_state called for : 246f28ae1b18._info.brand with value : WLED
wled.0 2020-05-22 19:45:43.411 debug (15524) State created : brand : "WLED"
wled.0 2020-05-22 19:45:43.404 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.404 debug (15524) Create_state called for : 246f28ae1b18._info.opt with value : 119
wled.0 2020-05-22 19:45:43.403 debug (15524) State created : opt : 119
wled.0 2020-05-22 19:45:43.402 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.399 debug (15524) Create_state called for : 246f28ae1b18._info.uptime with value : 162
wled.0 2020-05-22 19:45:43.399 debug (15524) State created : uptime : 162
wled.0 2020-05-22 19:45:43.393 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.393 debug (15524) Create_state called for : 246f28ae1b18._info.freeheap with value : 201408
wled.0 2020-05-22 19:45:43.393 debug (15524) State created : freeheap : 201408
wled.0 2020-05-22 19:45:43.388 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.387 debug (15524) Create_state called for : 246f28ae1b18._info.lwip with value : 0
wled.0 2020-05-22 19:45:43.387 debug (15524) State created : lwip : 0
wled.0 2020-05-22 19:45:43.379 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.379 debug (15524) Create_state called for : 246f28ae1b18._info.core with value : v3.2.3-14-gd3e562907
wled.0 2020-05-22 19:45:43.378 debug (15524) State created : core : "v3.2.3-14-gd3e562907"
wled.0 2020-05-22 19:45:43.359 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.358 debug (15524) Create_state called for : 246f28ae1b18._info.arch with value : esp32
wled.0 2020-05-22 19:45:43.358 debug (15524) State created : arch : "esp32"
wled.0 2020-05-22 19:45:43.356 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.355 debug (15524) Create_state called for : 246f28ae1b18._info.wifi.channel with value : 1
wled.0 2020-05-22 19:45:43.355 debug (15524) State created : channel : 1
wled.0 2020-05-22 19:45:43.355 debug (15524) Create_state called for : 246f28ae1b18._info.wifi.signal with value : 96
wled.0 2020-05-22 19:45:43.355 debug (15524) State created : signal : 96
wled.0 2020-05-22 19:45:43.354 debug (15524) Create_state called for : 246f28ae1b18._info.wifi.rssi with value : -52
wled.0 2020-05-22 19:45:43.354 debug (15524) State created : rssi : -52
wled.0 2020-05-22 19:45:43.353 debug (15524) Create_state called for : 246f28ae1b18._info.wifi.bssid with value : 76:83:C2:AA:14:1E
wled.0 2020-05-22 19:45:43.353 debug (15524) State created : bssid : "76:83:C2:AA:14:1E"
wled.0 2020-05-22 19:45:43.342 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.341 debug (15524) Create_state called for : 246f28ae1b18._info.palcount with value : 52
wled.0 2020-05-22 19:45:43.341 debug (15524) State created : palcount : 52
wled.0 2020-05-22 19:45:43.338 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.337 debug (15524) Create_state called for : 246f28ae1b18._info.fxcount with value : 103
wled.0 2020-05-22 19:45:43.337 debug (15524) State created : fxcount : 103
wled.0 2020-05-22 19:45:43.336 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.335 debug (15524) Create_state called for : 246f28ae1b18._info.lip with value :
wled.0 2020-05-22 19:45:43.335 debug (15524) State created : lip : ""
wled.0 2020-05-22 19:45:43.321 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.321 debug (15524) Create_state called for : 246f28ae1b18._info.lm with value :
wled.0 2020-05-22 19:45:43.320 debug (15524) State created : lm : ""
wled.0 2020-05-22 19:45:43.318 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.318 debug (15524) Create_state called for : 246f28ae1b18._info.live with value : false
wled.0 2020-05-22 19:45:43.318 debug (15524) State created : live : false
wled.0 2020-05-22 19:45:43.302 debug (15524) Datatype : boolean
wled.0 2020-05-22 19:45:43.302 debug (15524) Create_state called for : 246f28ae1b18._info.udpport with value : 21324
wled.0 2020-05-22 19:45:43.301 debug (15524) State created : udpport : 21324
wled.0 2020-05-22 19:45:43.299 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.298 debug (15524) Create_state called for : 246f28ae1b18._info.name with value : WLED
wled.0 2020-05-22 19:45:43.298 debug (15524) State created : name : "WLED"
wled.0 2020-05-22 19:45:43.259 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.259 debug (15524) Create_state called for : 246f28ae1b18._info.str with value : false
wled.0 2020-05-22 19:45:43.258 debug (15524) State created : str : false
wled.0 2020-05-22 19:45:43.254 debug (15524) Datatype : boolean
wled.0 2020-05-22 19:45:43.254 debug (15524) Create_state called for : 246f28ae1b18._info.leds.seglock with value : false
wled.0 2020-05-22 19:45:43.253 debug (15524) State created : seglock : false
wled.0 2020-05-22 19:45:43.253 debug (15524) Create_state called for : 246f28ae1b18._info.leds.maxseg with value : 10
wled.0 2020-05-22 19:45:43.252 debug (15524) State created : maxseg : 10
wled.0 2020-05-22 19:45:43.251 debug (15524) Create_state called for : 246f28ae1b18._info.leds.maxpwr with value : 20000
wled.0 2020-05-22 19:45:43.251 debug (15524) State created : maxpwr : 20000
wled.0 2020-05-22 19:45:43.250 debug (15524) Create_state called for : 246f28ae1b18._info.leds.pwr with value : 400
wled.0 2020-05-22 19:45:43.250 debug (15524) State created : pwr : 400
wled.0 2020-05-22 19:45:43.249 debug (15524) Create_state called for : 246f28ae1b18._info.leds.pin with value : 2
wled.0 2020-05-22 19:45:43.249 debug (15524) State created : pin : [2]
wled.0 2020-05-22 19:45:43.249 debug (15524) Create_state called for : 246f28ae1b18._info.leds.wv with value : false
wled.0 2020-05-22 19:45:43.248 debug (15524) State created : wv : false
wled.0 2020-05-22 19:45:43.248 debug (15524) Create_state called for : 246f28ae1b18._info.leds.rgbw with value : false
wled.0 2020-05-22 19:45:43.248 debug (15524) State created : rgbw : false
wled.0 2020-05-22 19:45:43.247 debug (15524) Create_state called for : 246f28ae1b18._info.leds.count with value : 300
wled.0 2020-05-22 19:45:43.246 debug (15524) State created : count : 300
wled.0 2020-05-22 19:45:43.238 debug (15524) Datatype : object
wled.0 2020-05-22 19:45:43.237 debug (15524) Create_state called for : 246f28ae1b18._info.vid with value : 2005030
wled.0 2020-05-22 19:45:43.236 debug (15524) State created : vid : 2005030
wled.0 2020-05-22 19:45:43.228 debug (15524) Datatype : number
wled.0 2020-05-22 19:45:43.228 debug (15524) Create_state called for : 246f28ae1b18._info.ver with value : 0.10.0
wled.0 2020-05-22 19:45:43.227 debug (15524) State created : ver : "0.10.0"
wled.0 2020-05-22 19:45:43.225 debug (15524) Datatype : string
wled.0 2020-05-22 19:45:43.224 debug (15524) Expire time set for state : online with time in seconds : 20
wled.0 2020-05-22 19:45:43.223 debug (15524) Create_state called for : 246f28ae1b18._info._online with value : true
wled.0 2020-05-22 19:45:43.214 debug (15524) Data received from WLED device {"state":{"on":false,"bri":128,"transition":7,"ps":-1,"pss":7,"pl":-1,"ccnf":{"min":1,"max":5,"time":12},"nl":{"on":false,"dur":60,"fade":true,"tbri":0},"udpn":{
wled.0 2020-05-22 19:45:43.214 debug (15524) "API response data : [object Object]"
wled.0 2020-05-22 19:45:43.158 debug (15524) GET API called for : http://192.168.50.215/json
wled.0 2020-05-22 19:45:43.157 debug (15524) Read data called : "192.168.50.215"
wled.0 2020-05-22 19:45:43.007 debug (15524) API feedback{"success":true}
wled.0 2020-05-22 19:45:42.871 debug (15524) Post API called for : http://192.168.50.215/json and values : {"seg":{"id":0,"on":true}}
wled.0 2020-05-22 19:45:42.865 debug (15524) Prepare API call for device : 246f28ae1b18 and values + [object Object]
wled.0 2020-05-22 19:45:42.865 debug (15524) values segment {"seg":{"id":0,"on":true}}
wled.0 2020-05-22 19:45:42.865 debug (15524) test number : 0
wled.0 2020-05-22 19:45:42.864 debug (15524) Send seg
wled.0 2020-05-22 19:45:42.863 debug (15524) state wled.0.246f28ae1b18.seg.0.on changed: true (ack = false)
`

Get Names from WLED Modules

Moin,

in der Adminoberfläche werden die WLED Module ja mit der MAC-Adresse dargestellt. Hier wäre es noch schön, wenn das Device bereits einen Hostnamen zugewiesen bekommen hat (über die WLED Oberfläche), das dieser auch in der Admin bzw. vielleicht sogar in der Objekt-Liste auftaucht und dort zugewiesen wird.

Wenn das Device nachträglich geändert wird, dann sollte er diese Änderung mitnehmen :-)

Control Hue Sync Status via Iobroker

Hello,
I want to turn on or off the Hue Sync for wled.
Will this be possible in a future version?

API from WLED is supporting this:
&HP= | 0 to 99 | Sets Hue polling light ID (0 is off) | 0.5.1

Thanks!

WLED adapter gets confused when WLED-firmware contains usermods/extended json info

my WLEDs do have the usermod "usermod_Fix_unreachable_netservices" enabled, to keep them connected (without, the web ui stops responding after some minutes being idle). This mod does extend the json info object (as it is intended), with the little 'speciality' that this extension contains some (seemingly properly quoted) HTML.
I think the json result is valid, at least common parsers do not complain, and results do look proper; however, WLED-adapter throws warnings which look like as if the request is not properly parsed.

The json request result (/json/info):
{"ver":"0.11.1","vid":2101130,"leds":{"count":150,"rgbw":false,"wv":false,"pin":[2],"pwr":250,"maxpwr":4000,"maxseg":12,"seglock":false},"str":false,"name":"WLED-2","udpport":21324,"live":false,"lm":"","lip":"","ws":0,"fxcount":118,"palcount":56,"wifi":{"bssid":"78:8A:20:B7:0D:74","rssi":-64,"signal":72,"channel":1},"fs":{"u":49,"t":1024,"pmt":1615056140},"arch":"esp8266","core":"2_7_4_7","lwip":1,"freeheap":21048,"uptime":1883032,"u":{"&#x26A1; Ping fix pings<span style=\"display:block;padding-left:25px;\">Delay <input type=\"number\" min=\"5\" max=\"300\" value=\"30\" onchange=\"requestJson({PingDelay:parseInt(this.value)});\">sec</span>":[62762],"&#x26A1; Reconnects":[1]},"opt":127,"brand":"WLED","product":"FOSS","mac":"483fda7eae39"}

WLED adapter 0.5.6 in iobroker log:
2021-03-26 21:21:56.792 - ESC[33mwarnESC[39m: wled.0 (12313) Used invalid characters: wled.0.483fda7eae39._info.u.&#x26A1; Ping fix pings<span style="display:block;padding-left:25px;">Delay <input type="number" min="5" max="300" value="30" onchange="requestJson({PingDelay:parseInt(this.value)});">sec</span> changed to wled.0.483fda7eae39._info.u.&#x26A1_ Ping fix pings_span style=_display:block_padding-left:25px_Delay _input type=_number_ min=_5_ max=_300_ value=_30_ onchange=_requestJson({PingDelay:parseInt(this.value)})_sec_/span_ 2021-03-26 21:21:56.805 - ESC[33mwarnESC[39m: wled.0 (12313) State "wled.0.483fda7eae39._info.u.&#x26A1; Ping fix pings<span style="display:block;padding-left:25px;">Delay <input type="number" min="5" max="300" value="30" onchange="requestJson({PingDelay:parseInt(this.value)});">sec</span>" has no existing object, this might lead to an error in future versions 2021-03-26 21:21:56.806 - ESC[33mwarnESC[39m: wled.0 (12313) Used invalid characters: wled.0.483fda7eae39._info.u.&#x26A1; Reconnects changed to wled.0.483fda7eae39._info.u.&#x26A1_ Reconnects

Not sure if this is related to the fact that usermods are also using the "u:" key, though on root level; the existing "u:" is in "fs:" scope... Perhaps this could somehow be fixed in WLED adapter? Adapter version is 0.5.6, JS controller 3.2.16

Ab Version 0.5.0 funktioniert der Adapter nicht mehr

Hallo Dutchmann,

leider funktionieren die aktuelleren Versionen vom WLED Adapter bei mir nicht mehr richtig.
Anscheinend bekommt der Adapter weder mit welcher Effekt / Farbschema gerade beim NodeMCU abläuft noch kann er einen Befehl senden.

Version 0.5.0 funktioniert hingegen einwandfrei sogar mit WLED Firmware 0.10.2

Fairnesshalber muss ich dazu sagen, dass ich tagsüber die WLED stromlos mache. Kann es sein, dass damit die Versionen über 0.5.0 ein Problem damit haben?

Falls du noch irgendwelche Sachen benötigst liefere ich die dir natürlich gerne. Vielen Dank :o)

Wrong typ nach Umstellung auf js-controller 3.x.x

wled Version 0.5.6
Admin 5.1.4
js-controller 3.3.11

Ich habe heute erstmals wled installiert und folgenden Fehler bekommen, welcher im Rahmen des Admin/js-controller Updates auch schon andere Adapter betroffen hat.

Es wundert mich nur, das hier noch kein Issue dazu eröffnet wurde - oder habe ich es übersehen? Die "Problematik" ist ja schon mit der ersten Admin 5.x.x Version aufgetreten.

`

wled.0 2021-05-28 21:18:27.564 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.2" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:18:27.553 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.1" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:18:27.543 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.0" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:18:27.424 info (4400) State value to set for "wled.0.8caab5d20cfe._info.mac" has to be type "number" but received type "string"
wled.0 2021-05-28 21:18:27.296 info (4400) State value to set for "wled.0.8caab5d20cfe._info.leds.pin" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:57.176 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.2" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:57.172 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.1" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:57.166 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.0" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:57.089 info (4400) State value to set for "wled.0.8caab5d20cfe._info.mac" has to be type "number" but received type "string"
wled.0 2021-05-28 21:17:57.024 info (4400) State value to set for "wled.0.8caab5d20cfe._info.leds.pin" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:26.938 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.2" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:26.934 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.1" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:26.930 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.0" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:17:26.836 info (4400) State value to set for "wled.0.8caab5d20cfe._info.mac" has to be type "number" but received type "string"
wled.0 2021-05-28 21:17:26.771 info (4400) State value to set for "wled.0.8caab5d20cfe._info.leds.pin" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:56.686 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.2" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:56.678 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.1" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:56.671 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.0" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:56.578 info (4400) State value to set for "wled.0.8caab5d20cfe._info.mac" has to be type "number" but received type "string"
wled.0 2021-05-28 21:16:56.485 info (4400) State value to set for "wled.0.8caab5d20cfe._info.leds.pin" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:26.388 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.2" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:26.384 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.1" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:26.379 info (4400) State value to set for "wled.0.8caab5d20cfe.seg.0.col.0" has to be one of type "string", "number", "boolean" but received type "object"
wled.0 2021-05-28 21:16:26.286 info (4400) State value to set for "wled.0.8caab5d20cfe._info.mac" has to be type "number" but received type "string"
wled.0 2021-05-28 21:16:26.207 info (4400) State value to set for "wled.0.8caab5d20cfe._info.leds.pin" has to be one of type "string", "number", "boolean" but received type "object"

`

All devices not connected

Describe the bug
All WLED Devices are not connected (red dots). Using the URL of the ESP works fine. So it is not in issue with the ESP or the LED stripe.

The log says:
`

wled.0 2021-03-06 14:46:35.747 error (19779) Cannot read property 'error' of undefined
wled.0 2021-03-06 14:46:35.746 error at processTicksAndRejections (internal/process/task_queues.js:93:5)
wled.0 2021-03-06 14:46:35.746 error at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:352:25)
wled.0 2021-03-06 14:46:35.746 error at process.exit (internal/process/per_thread.js:169:15)
wled.0 2021-03-06 14:46:35.746 error at process.emit (events.js:315:20)
wled.0 2021-03-06 14:46:35.746 error at Object.onceWrapper (events.js:422:26)
wled.0 2021-03-06 14:46:35.746 error at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:8620:22)
wled.0 2021-03-06 14:46:35.746 error at Wled.emit (events.js:315:20)
wled.0 2021-03-06 14:46:35.746 error at Wled.onUnload (/opt/iobroker/node_modules/iobroker.wled/main.js:97:13)
wled.0 2021-03-06 14:46:35.746 error (19779) TypeError: Cannot read property 'error' of undefined
wled.0 2021-03-06 14:46:35.743 error (19779) unhandled promise rejection: Cannot read property 'error' of undefined
wled.0 2021-03-06 14:46:35.742 error (19779) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
wled.0 2021-03-06 14:46:35.216 warn (19779) Terminated (ADAPTER_ALREADY_RUNNING): Without reason
wled.0 2021-03-06 14:46:35.211 error (19779) wled.0 already running
`
Versions:
  • Adapter version: 0.5.6
  • JS-Controller version: 3.2.16
  • Node version: 14.16.0
  • Operating system: debian stable

Edit: A restart of the RPI solved the error. I leave the issue open in case you want to have a look at what caused the error.

Object / String Problem

Hallo Raffi,
Hier ein kleines Problem mit einem State bei mir. In Aden Bildern siehst du es.

IMG_20200904_202017
IMG_20200904_201905
IMG_20200904_201941

Do not query '/json' in timer to update states

You query /json in every round trip. This costs a lot of heap (on my esp8266) which causes a forced WLAN disconnect. I have a lot of WLAN issues with my first WLED controller.

I set up a test ESP and got this DEBUG log

---DEBUG INFO---
Runtime: 25040896
Unix time: 1585766772
Free heap: 6880
Wifi state: 3
State time: 24710446
NTP last sync: 6010
Client IP: 192.168.120.48
Loops/sec: 2430
Heap too low! 6880
Forcing reconnect.
Access point disabled.
Connecting to IoT...

Connected! IP address: 192.168.120.48
Init STA interfaces
mDNS started
Disconnected!
Access point disabled.
Connecting to IoT...

Connected! IP address: 192.168.120.48
Init STA interfaces
mDNS started
...

A heap below 9k will cause a WLAN forced reconnect

    if (heap < 9000 && lastHeap < 9000) {
      DEBUG_PRINT("Heap too low! ");
      DEBUG_PRINTLN(heap);
      forceReconnect = true;
    }

To Reproduce
Try to load /json form your WLED serveral time by browser. At some point the ESP not response anymore and will disconnect itselfs from WLAN.

But you doesn't need to request the whole JSON. You can request every part using /json/state, /json/info, /json/effects and /json/palettes. State could be requested every round trip. The rest could be requeste at startup only or e.g. every 5 minutes.

I don't know if this is the root cause of my ESP being unreachable after a while. I'll disable

Volker

WLED verliert die Verbindung

Zu unterschiedlichen Zeiten verliert WLED die Verbindung zum NodeCU. Ein Reset oder Neustart des Adapters hilt nicht.
Ich muss den Adapter löschen und neu installieren

`

2021-03-17 17:39:11.857 - error: wled.0 (9571) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
2021-03-17 17:39:11.858 - error: wled.0 (9571) unhandled promise rejection: Cannot read property 'error' of undefined
2021-03-17 17:39:11.860 - error: wled.0 (9571) TypeError: Cannot read property 'error' of undefined
at Wled.onUnload (/opt/iobroker/node_modules/iobroker.wled/main.js:97:13)
at Wled.emit (events.js:314:20)
at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:8620:22)
at Object.onceWrapper (events.js:421:26)
at process.emit (events.js:314:20)
at process.exit (internal/process/per_thread.js:168:15)
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:352:25)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
2021-03-17 17:39:11.860 - error: wled.0 (9571) Cannot read property 'error' of undefined

`

Versions:

  • Adapter version: 0.5.6
  • JS-Controller version: 3.2.16
  • Node version: 12.21.0
  • Operating system: Debian 10.2.0

missing Attributes with WLED 0.10.0

Describe the bug
3 attributes are missing
wled.0 | 2020-07-19 19:08:59.081 | warn | (15662) State attribute definition missing for + lor
wled.0 | 2020-07-19 19:08:58.914 | warn | (15662) State attribute definition missing for + lip
wled.0 | 2020-07-19 19:08:58.906 | warn | (15662) State attribute definition missing for + lm

To Reproduce
Update yout wled to 0.10.0

Expected behavior
A clear and concise description of what you expected to happen.

Nach Update auf 0.5.4 -> WARN Meldungen bei Verwendung von Strings

Description
Ich schreibe mittels Blockly die aktuelle Farbe (Primary Color RGB) in einen Datenpunkt.
Ändere die primary Color RGB manuell per Blockly auf eine andere Farbe (0,0,255)
Nach einer Zeit, überschreibe ich den Datenpunkt mit Primary Color RGB erneut mit der in der Variable gespeicherten Farbe.

Seit dem letzten Update, entstehen hierbei sämtliche Fehlermeldungen im Log. Die Funktion ist jedoch nicht beeinträchtigt.

Versions:

  • Adapter version: 0.5.4
  • JS-Controller version: 3.1.6
  • Node version: 10.22.0
  • Operating system: Ubuntu 20.04 LTS

image

image

image

Compatibility check to js-controller 3.3 and Admin5 React UI

Dear Adapter developer,

with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.

If something is not correct this is logged as 'warning' or 'info' log.

Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1301

Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.

More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui

Please close the issue after you checked it.

Thank you very much for your support!

Compatibility check to js-controller 3.3 and Admin5 React UI

Dear Adapter developer,

with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.

If something is not correct this is logged as 'warning' or 'info' log.

Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1301

Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.

More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui

Please close the issue after you checked it.

Thank you very much for your support!

Make adapter ready to support WLED 0.10.2

Describe wanted Enhancement !
Api error indicates new values with version 0.10.2, state attributes logic and propper values must be set

Why should we put effort in it ?
Ensure support of newest firmware

Additional context
Sentry messages :

State attribute definition missing for + ws
State attribute definition missing for + mode
State attribute definition missing for + mi

UDP / API Befehle senden

feature requst, das man über den Adapter UDP / API Sequenzen schicken kann.

Sowas in der Art, muss aktuell über umwege MQTT gemacht werden.
SM=0&SS=0&SV=2&S=15&S2=299&GP=7&SP=30&RV=0&SB=255&A=255&W=255&R2=0&G2=0&B2=0&W2=&FX=0&T=1

grüße

Create state error = ReferenceError: initialise is not defined

After add the Wled in Iobroker I get a lot of error message always the same message

wled.0 2021-02-17 22:10:34.287 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:34.280 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:33.939 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:33.934 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:03.582 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:03.579 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:03.408 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:10:03.406 error (1833) Create state error = ReferenceError: initialise is not defined
wled.0 2021-02-17 22:09:33.063 error (1833) Create state error = ReferenceError: initialise is not defined

Datapoint for birghtness in percent and effect ID without desciption

Would be nice to have a datapoint in the segments to control the brightness in percent.
This will allow to ise the datapoint directly in Google Assistant.

Using the current value for the brightness in Google Assistant only allows the user to tune from 0-100 instead of 0-255.

I have a workaround with a small blockly which calculates the decimal value out of the percentage value and vice versa, but it would be much more comfortable to have it directly out of the adapter.

It also would be nice to control the effect ID directly with a number, to enable Google Assistant to say something like "turn on effect 2". At the moment it is not possible to change the effect by a single number, just by the dropdown.

Thanks!

Funktionsvorschlag

Wenn der on (On/Off) Status auf false gesetzt wird gehen ja, wie gewünscht die LEDs aus.
Wenn nun etwas geändert wird wie Farbe oder ähnliches, bleiben diese weiterhin aus.
ist es möglich, den on/off status, dann nur für das geänderte Segment einzuschalten?
die anderen Segmente bleiben weiterhin abgeschalten

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/DrozmotiX/ioBroker.wled

  • [E154] common.dependencies must contain {"js-controller": ">=2.0.0"} or {"js-controller": ">=3.0.0"}
  • [E603] NO "## Changelog" found in README.md
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 DutchmanNL [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 DutchmanNL [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.wled

Thanks,
your automatic adapter checker.

On/Off Status

Hallo,

bei mir wir seit v.0.5.1 der Status On/Off nur einmalig auf true gesetzt, danach wird nicht mehr aktualisiert.
Ist das so gewollt?

Antwortzeit für Änderungen

Hallo allerseits,

kurze Frage allgemein:

Normalerweise bin ich es gewohnt, dass Plugins die in ioBroker integriert werden "instant" nach einer Änderung auf einem Objekt reagieren und den neuen Status anzeigen. In dem Plugin hier hat man den 30 sec Timer der natürlich für sofortige Änderungen von irgendwelche Switches auf einem Dashboard ungeeignet ist.

Gibt es dafür ein Workaround? Den Timer auf 0 sec setzen ist denke nicht die Lösung da dann zu viele Abfragen gesendet werden an die kleinen Wemos.

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.