Python Plugin: WLED

Python and python framework

Moderator: leecollings

vwtune
Posts: 19
Joined: Wednesday 24 January 2018 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Python Plugin: WLED

Post by vwtune »

vwtune wrote: Friday 30 October 2020 17:47 Since i updated to version 2020.2 of Domoticz

Domoticz is crashing almost once a day. Before it crashes, i can see in the log:

Code: Select all

2020-10-30 17:41:15.764 Error: (WLED Hal Nodemcu ) Exception detail: 'Unterminated string starting at: line 5 column 49 (char 1236)'
2020-10-30 17:41:15.764 Error: (WLED Hal Nodemcu ) 'onMessage' failed 'ValueError'.
2020-10-30 17:41:15.764 Error: Domoticz(pid:771, tid:775('PluginMgr')) received fatal signal 11 (Segmentation fault)
2020-10-30 17:41:15.764 Error: siginfo address=0x303, address=(nil)
After this, domoticz crashed
It has something to do with wled plugin i think....
I already did a git pull and restart to get the latest wled plugin, but still get the crashes on WLED.

Can you please take a look at this?
No idea?
vwtune
Posts: 19
Joined: Wednesday 24 January 2018 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Python Plugin: WLED

Post by vwtune »

Any updates???

Would be nice if there will be segment selector :?:
blokker1
Posts: 1
Joined: Saturday 23 January 2021 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by blokker1 »

Problem with WLED with google home.
I have WLED on an esp-01, this works well, added to domoticz, that also works, with the WLED app I can set everything and with domoticz too.
Only WLED - Color & Brightness Added to google home and I can now turn the strip on and off, also I can choose colors.
Only if I choose the white tones then the strip goes out, and that only in the google home app. domoticz and the WLED app are fine.
if I look in the domoticz log, this will be displayed.

2021-01-22 14:16:32.085 (WLED) Color:{"b":0,"cw":51,"g":0,"m":2,"r":0,"t":204,"ww":204}
2021-01-22 14:16:32.404 (WLED) Updating Domoticz from UDP
2021-01-22 14:16:32.078 Status: setkelvinlevel: t: 80.000000, color: '{m: 2, RGB: 000000, CWWW: 33cc, CT: 204}'

Other colors are fine. This is b,v almost white and a blue tint

2021-01-22 14:17:56.460 (WLED) Color:{"b":255,"cw":0,"g":247,"m":1,"r":239,"t":0,"ww":0}
2021-01-22 14:17:56.736 (WLED) Updating Domoticz from UDP
2021-01-22 14:17:56.428 Status: setcolbrightnessvalue: ID: 88, bri: 100, color: '{m: 1, RGB: eff7ff, CWWW: 0000, CT: 0}'

Strange thing is that it worked fine a few days ago, and I haven't changed anything.

Anyone have any idea what could be causing this?
vwtune
Posts: 19
Joined: Wednesday 24 January 2018 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Python Plugin: WLED

Post by vwtune »

Would be nice if there is some support or update here?

Domoticz still crashes with WLED plugin. When i do not use the pluging, domoticz is stable.

the moment domoticz crashes:
2021-01-31 11:43:15.540 Error: CConnection_disconnect, disconnection request from 'WLED Bed' ignored. Transport does not exist.
2021-01-31 11:43:15.541 Error: (WLED Bed) Exception detail: 'Unterminated string starting at: line 4 column 111 (char 1244)'
2021-01-31 11:43:15.541 Error: (WLED Bed) 'onMessage' failed 'ValueError'.
2021-01-31 11:43:15.541 Error: Domoticz(pid:1381, tid:1384('PluginMgr')) received fatal signal 11 (Segmentation fault)
2021-01-31 11:43:15.541 Error: siginfo address=0x565, address=(nil)

2021-02-01 10:13:12.656 Error: Python Plugin System: (WLED Wemos Alarm) Exception detail: 'Unterminated string starting at: line 4 column 111 (char 1248)'
2021-02-01 10:13:12.657 Error: Python Plugin System: (WLED Wemos Alarm) 'onMessage' failed 'ValueError'.
2021-02-01 10:13:12.657 Error: Domoticz(pid:17042, tid:17045('PluginMgr')) received fatal signal 11 (Segmentation fault)
2021-02-01 10:13:12.657 Error: siginfo address=0x4292, address=(nil)
Can you please take a look at this and update the plugin?
vwtune
Posts: 19
Joined: Wednesday 24 January 2018 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Python Plugin: WLED

Post by vwtune »

it's getting anyoing.
i have to disable wled plugin because it crashes domoticz a couple of times in a day.

2021-02-01 11:11:25.949 Error: CConnection_disconnect, disconnection request from 'WLED Hal Nodemcu ' ignored. Transport is not connecting or connected.
2021-02-01 11:11:25.950 Error: Python Plugin System: (WLED Hal Nodemcu ) Exception detail: 'Unterminated string starting at: line 18 column 53 (char 2702)'
2021-02-01 11:11:25.950 Error: Python Plugin System: (WLED Hal Nodemcu ) 'onMessage' failed 'ValueError'.
2021-02-01 11:11:25.950 Error: Domoticz(pid:31150, tid:31153('PluginMgr')) received fatal signal 11 (Segmentation fault)
2021-02-01 11:11:25.950 Error: siginfo address=0x79ae, address=(nil)
niwreg
Posts: 25
Joined: Thursday 19 February 2015 11:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by niwreg »

hi VWtune,

It might help if you post the version of wled you are using. the onmessage errors looks like it gets an update from domoticz but there is something with the data that it don't understand. is this with the debug log on all?
Creo2005
Posts: 25
Joined: Wednesday 26 February 2020 13:39
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by Creo2005 »

Today install plugin, but Palettes - undefined, Effects - undefined
Drop-down menu not worked.
Domoticz displays an error:
Error: (Wled) Transport is not connected, write directive to 'JSONConn' ignored.
or
Error: (Wled) No transport, write directive to 'JSONConn' ignored.
Can help me?
PS: after las update beta Domoticz to Version: 2021.1 (build 13746) all is OK
User avatar
wxop
Posts: 95
Joined: Sunday 24 November 2013 19:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by wxop »

@Creo2005

I had the same issue:

Code: Select all

Error: (Wled) No transport, write directive to 'JSONConn' ignored.
Happy that it works for you, but not here using the latest beta....

So, I've just posted a Pull Request that fixes this, here:
https://github.com/frustreermeneer/domo ... in/pull/15

Until merged, the changed file is at
https://github.com/soif/domoticz-wled-p ... /plugin.py

enjoy 8-)
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------
Buddyerz
Posts: 1
Joined: Friday 31 December 2021 16:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by Buddyerz »

Hi everyone,

first of all. Thanks for this Plugin.

I actually use one wled device in domoticz.

At beginning nothings works because of "no transport" issue.
Therefore I use the fixed version from wxop (Thanks for that).
Now it works. But I still get the mentioned issue every 5 minutes:

You see it here

Code: Select all

2022-01-02 00:00:19.103 Error: WLED: (WLED) Transport is not connected, write directive to 'JSONConn' ignored.
2022-01-02 00:05:19.145 Error: WLED: (WLED) Transport is not connected, write directive to 'JSONConn' ignored.
2022-01-02 00:10:19.154 Error: WLED: (WLED) No transport, write directive to 'JSONConn' ignored.
2022-01-02 00:15:19.130 Error: WLED: (WLED) Transport is not connected, write directive to 'JSONConn' ignored.
Any idea?

I have got also the problem that Effects, FX Intensity and FX Speed are can not be controlled by domoticz.
I don't know why.
I use wled version 0.12. Could this be the problem?

Last but not least one question. I read in this posts that I can add only one wled device to domoticz. It is right?

Thank you for your help.
Creo2005
Posts: 25
Joined: Wednesday 26 February 2020 13:39
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by Creo2005 »

After new plugin:
Error: WLED: No transport, write directive to 'JSONConn' ignored.
:(
tfritz
Posts: 3
Joined: Sunday 19 April 2020 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: Python Plugin: WLED

Post by tfritz »

vwtune wrote: Saturday 26 December 2020 11:42
vwtune wrote: Friday 30 October 2020 17:47 Since i updated to version 2020.2 of Domoticz

Domoticz is crashing almost once a day. Before it crashes, i can see in the log:

Code: Select all

2020-10-30 17:41:15.764 Error: (WLED Hal Nodemcu ) Exception detail: 'Unterminated string starting at: line 5 column 49 (char 1236)'
2020-10-30 17:41:15.764 Error: (WLED Hal Nodemcu ) 'onMessage' failed 'ValueError'.
2020-10-30 17:41:15.764 Error: Domoticz(pid:771, tid:775('PluginMgr')) received fatal signal 11 (Segmentation fault)
2020-10-30 17:41:15.764 Error: siginfo address=0x303, address=(nil)
After this, domoticz crashed
It has something to do with wled plugin i think....
I already did a git pull and restart to get the latest wled plugin, but still get the crashes on WLED.

Can you please take a look at this?
No idea?
I have the same problem with the plugin :(
Is there a way to get it work?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: WLED

Post by waltervl »

There is a known issue with failing Python plugins and RPi on Bullseye. Is that the case?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
budman1758
Posts: 2
Joined: Thursday 15 December 2022 1:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Riverside, CA USA
Contact:

Re: Python Plugin: WLED

Post by budman1758 »

I have the latest version of Domoticz installed. Installed this plugin. No Wled option appears in the hardware dropdown. Anybody know if this plugin works lately?

Followed install instructions to the letter.
"The Glass is twice as big as it needs to be".
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: WLED

Post by waltervl »

budman1758 wrote: Thursday 22 December 2022 19:26 I have the latest version of Domoticz installed. Installed this plugin. No Wled option appears in the hardware dropdown. Anybody know if this plugin works lately?

Followed install instructions to the letter.
Did you also follow the basic plugin instructions on wiki https://www.domoticz.com/wiki/Using_Python_plugins
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
budman1758
Posts: 2
Joined: Thursday 15 December 2022 1:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Riverside, CA USA
Contact:

Re: Python Plugin: WLED

Post by budman1758 »


Did you also follow the basic plugin instructions on wiki https://www.domoticz.com/wiki/Using_Python_plugins
Of course not! Why would I do a silly thing like that?? :lol: :lol:

I just assumed python was pre-installed on Raspberry OS. Silly me..... :oops:
"The Glass is twice as big as it needs to be".
Cyroq
Posts: 30
Joined: Monday 10 December 2018 13:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: WLED

Post by Cyroq »

Is this update rolled out yet? I created multiple segments before installing the plugin but only the master devices show up.
frustreerMeneer wrote: Sunday 18 October 2020 20:53
salopette wrote: Sunday 18 October 2020 20:45 That's cool! What exactly is being done?
I'm still working things out. But as soon as you have more than 1 segment you will get a master color and brigtness slider (the one that you already have) and 1 color and brightness slider per extra segment. I think it is the same way Home Assistant does it.

I still have to look into effects, presets and palletes.

Let me know your ideas.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest