Ok, I finally got the CLI installed and it allowed me to figure out why no WLED devices were discovered… I had enrolled to the channel but forgot to install the driver (bang head on desk
). So, that is solved now. discovery seems to work but I found some problems afterwards.
WLED devices are discovered but they are not working in the app. Just to mention, because I think it is part of the problem, I have 7 WLED devices on my network. When I go in the app, and enter in a device, it tells me that the configuration is not completed yet (I don’t have the exact message because I’m running the app in French, so just translating here).
I managed to capture the log during the initial dicovery ond it seems to be looping afterwards.
2023-03-04T22:03:43.765199803+00:00 TRACE WLED W2812BStrip Setup driver wled-rgb with lifecycle handlers:
DeviceLifecycleDispatcher: wled-rgb
default_handlers:
init:
removed:
infoChanged:
added:
driverSwitched:
child_dispatchers:
2023-03-04T22:03:43.768678719+00:00 TRACE WLED W2812BStrip Setup driver wled-rgb with Capability handlers:
CapabilityCommandDispatcher: wled-rgb
default_handlers:
switch:
on
off
mode:
setMode
colorControl:
setColor
refresh:
refresh
switchLevel:
setLevel
child_dispatchers:
2023-03-04T22:03:43.836144386+00:00 TRACE WLED W2812BStrip Received event with handler environment_info
2023-03-04T22:03:43.840814969+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.844518594+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:43.867342928+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.867940553+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:43.892618803+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.894735386+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:43.917818553+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.918421803+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:43.946237844+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.946804886+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:43.973141969+00:00 TRACE WLED W2812BStrip Received event with handler environment_info
2023-03-04T22:03:43.973722094+00:00 DEBUG WLED W2812BStrip Z-Wave hub node ID environment changed.
2023-03-04T22:03:43.974644053+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:43.977113511+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:44.001366511+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:03:44.001942886+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:03:44.028152428+00:00 FATAL WLED W2812BStrip Lua: runtime error: [string "cosock/socket/internals.lua"]:106: recvr waker already set, sockets can only block one thread per waker kind
stack traceback:
[C]: in function 'assert'
[string "cosock/socket/internals.lua"]:106: in method 'setwaker'
[string "cosock.lua"]:279: in field 'run'
[string "st/driver.lua"]:764: in method 'run'
[string "init.lua"]:39: in main chunk
Traceback:
stack traceback:
[C]: in function 'assert'
[string "cosock/socket/internals.lua"]:106: in method 'setwaker'
[string "cosock.lua"]:279: in field 'run'
[string "st/driver.lua"]:764: in method 'run'
[string "init.lua"]:39: in main chunk
There’s this FATAL error at the end. I looks to me like some concurrency issue. I’m not a driver developper so that’s just a guess.
Next thing I did was to delete 6 out of the 7 discovered devices in order to let one of the devices finish its configuration and it worked.
I captured the log of that part
2023-03-04T22:06:55.083985453+00:00 TRACE WLED W2812BStrip Setup driver wled-rgb with lifecycle handlers:
DeviceLifecycleDispatcher: wled-rgb
default_handlers:
init:
driverSwitched:
removed:
added:
infoChanged:
child_dispatchers:
2023-03-04T22:06:55.088545786+00:00 TRACE WLED W2812BStrip Setup driver wled-rgb with Capability handlers:
CapabilityCommandDispatcher: wled-rgb
default_handlers:
mode:
setMode
switchLevel:
setLevel
switch:
on
off
colorControl:
setColor
refresh:
refresh
child_dispatchers:
2023-03-04T22:06:55.132999995+00:00 TRACE WLED W2812BStrip Received event with handler environment_info
2023-03-04T22:06:55.138942120+00:00 TRACE WLED W2812BStrip Found DeviceLifecycleDispatcher handler in wled-rgb
2023-03-04T22:06:55.140854745+00:00 INFO WLED W2812BStrip Begin init lifecycle...
2023-03-04T22:06:55.164340536+00:00 TRACE WLED W2812BStrip Received event with handler environment_info
2023-03-04T22:06:55.164918203+00:00 DEBUG WLED W2812BStrip Z-Wave hub node ID environment changed.
2023-03-04T22:06:55.270475161+00:00 DEBUG WLED W2812BStrip Multicast response received from 192.168.4.225
2023-03-04T22:06:55.356723453+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled1._wled._tcp.local
2023-03-04T22:06:55.357409536+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.91
2023-03-04T22:06:55.364579578+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled4._wled._tcp.local
2023-03-04T22:06:55.365161703+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.94
2023-03-04T22:06:55.371606078+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled2._wled._tcp.local
2023-03-04T22:06:55.372160453+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.92
2023-03-04T22:06:55.530080370+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled-97._wled._tcp.local
2023-03-04T22:06:55.530688578+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.97
2023-03-04T22:06:55.536796661+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.98
2023-03-04T22:06:55.539440328+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled-17._wled._tcp.local
2023-03-04T22:06:55.626758578+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled7._wled._tcp.local
2023-03-04T22:06:55.627312495+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.86
2023-03-04T22:06:55.636274911+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled-6._wled._tcp.local
2023-03-04T22:06:55.636858495+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.96
2023-03-04T22:06:55.673785745+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.87
2023-03-04T22:06:55.674380870+00:00 DEBUG WLED W2812BStrip PTR record: _wled._tcp.local / wled-16._wled._tcp.local
2023-03-04T22:06:55.681276453+00:00 INFO WLED W2812BStrip Got ip for: [wled-16._wled._tcp.local] :192.168.4.87
2023-03-04T22:06:56.315960828+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"level","capability_id":"switchLevel","component_id":"main","state":{"value":78}}
2023-03-04T22:06:56.319932578+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"switch","capability_id":"switch","component_id":"main","state":{"value":"off"}}
2023-03-04T22:06:56.329780994+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"saturation","capability_id":"colorControl","component_id":"main","state":{"value":0}}
2023-03-04T22:06:56.338639578+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"hue","capability_id":"colorControl","component_id":"main","state":{"value":0}}
2023-03-04T22:06:56.348744453+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"supportedModes","capability_id":"mode","component_id":"main","state":{"value":["Blanc"]}}
2023-03-04T22:06:56.357758619+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"mode","capability_id":"mode","component_id":"main","state":{"value":"Blanc"}}
2023-03-04T22:06:56.495055411+00:00 DEBUG WLED W2812BStrip Multicast response received from 192.168.4.225
2023-03-04T22:06:56.773391453+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.87
2023-03-04T22:06:57.015310869+00:00 DEBUG WLED W2812BStrip Multicast response received from 192.168.4.225
2023-03-04T22:06:57.178953328+00:00 DEBUG WLED W2812BStrip Unicast response received from 192.168.4.87
2023-03-04T22:06:57.185189661+00:00 INFO WLED W2812BStrip Got ip for: [wled-16._wled._tcp.local] :192.168.4.87
2023-03-04T22:06:57.853442577+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"level","capability_id":"switchLevel","component_id":"main","state":{"value":78}}
2023-03-04T22:06:57.875821744+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"switch","capability_id":"switch","component_id":"main","state":{"value":"off"}}
2023-03-04T22:06:57.887147244+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"saturation","capability_id":"colorControl","component_id":"main","state":{"value":0}}
2023-03-04T22:06:57.896977494+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"hue","capability_id":"colorControl","component_id":"main","state":{"value":0}}
2023-03-04T22:06:57.907553119+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"supportedModes","capability_id":"mode","component_id":"main","state":{"value":["Blanc"]}}
2023-03-04T22:06:57.919458702+00:00 INFO WLED W2812BStrip <Device: 7c08c98a-1300-4a2f-9052-f1c0f602daae (wled-16._wled._tcp.local)> emitting event: {"attribute_id":"mode","capability_id":"mode","component_id":"main","state":{"value":"Blanc"}}
2023-03-04T22:06:57.934217161+00:00 INFO WLED W2812BStrip End init lifecycle...
2023-03-04T22:06:57.934782036+00:00 DEBUG WLED W2812BStrip wled-16._wled._tcp.local device thread event handled
Once that was done, the device was functionnal in the app. I’m now able to turn on/off and most importantly, I can now see the presets. (In the previous captured log, there is only one preset on that perticular device called “Blanc”.
So, next step I’ll try to add a second device to see if it gets configured correctly. I’ll post back once it’s done.
Hope that can help figure out what’s wrong.
thanks!