Python Plugin: WLED
Moderator: leecollings
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Python Plugin: WLED
If anyone interested, I've made a Python plugin for WLED integration into Domoticz.
It's the first version and still quite beta, but it works for me. (It's my first Python project and first GitHUB repository).
Curious to know if it works for you.
My plugin: https://github.com/frustreermeneer/domoticz-wled-plugin
I'm planning to extend it, to make full use of all WLED features.
WLED allows you to control RGB LEDs with an ESP8266/ESP32 over WiFi.
WLED: https://github.com/Aircoookie/WLED
It's the first version and still quite beta, but it works for me. (It's my first Python project and first GitHUB repository).
Curious to know if it works for you.
My plugin: https://github.com/frustreermeneer/domoticz-wled-plugin
I'm planning to extend it, to make full use of all WLED features.
WLED allows you to control RGB LEDs with an ESP8266/ESP32 over WiFi.
WLED: https://github.com/Aircoookie/WLED
-
- Posts: 3
- Joined: Sunday 15 January 2017 21:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
Hello!
I tried this tonight, i got some problem i cant understand.
Domoticz add the different light, but i got error in Domoticz logs..
It is ESP8266-12F flashed with WLED version 0.8.5
i can connect direcly with webpage. working great!
domoticz
Version: 4.10717
Build Hash: b38b49e5
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
You got any clue what is wrong?
Probably something i don't understand during installation....
thanks in advance
//Cluedo
I tried this tonight, i got some problem i cant understand.
Domoticz add the different light, but i got error in Domoticz logs..
- Spoiler: show
It is ESP8266-12F flashed with WLED version 0.8.5
i can connect direcly with webpage. working great!
domoticz
Version: 4.10717
Build Hash: b38b49e5
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
You got any clue what is wrong?
Probably something i don't understand during installation....
thanks in advance
//Cluedo
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
I think you entered the IP address the wrong way.
Try filling out only 192.168.1.98
It should look like something like this:
Try filling out only 192.168.1.98
It should look like something like this:
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
Update: changes made in WLED app or WLED web interface or now also reflected in Domoticz.
-
- Posts: 3
- Joined: Sunday 15 January 2017 21:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
frustreerMeneer wrote: ↑Tuesday 15 October 2019 22:15 I think you entered the IP address the wrong way.
Try filling out only 192.168.1.98
It should look like something like this:
settings.jpg
Hello!
Of course i did wrong
I put http://192.168.1.98/ should be 192.168.1.98
Its working great know, thanks for your help!
First ledstrip i got to work with Domoticz !
Realy impressive work you have done!
Thanks again !
//Cluedo
-
- Posts: 19
- Joined: Wednesday 24 January 2018 9:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: Python Plugin: WLED
Lovely project!
I'm getting the follwing error after installing and restart domoticz and add the WLED hardware:
2019-10-25 16:16:07.126 Error: (WLED) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/wled/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'.
2019-10-25 16:16:07.126 Error: (WLED) Module Import failed, exception: 'ImportError'
2019-10-25 16:16:07.127 Error: (WLED) Module Import failed: ' Name: requests'
2019-10-25 16:16:07.127 Error: (WLED) Error Line details not available.
2019-10-25 16:17:12.289 Error: WLED hardware (22) thread seems to have ended unexpectedly
2019-10-25 16:17:26.295 Error: WLED hardware (22) thread seems to have ended unexpectedly
How can i fix this?
I'm getting the follwing error after installing and restart domoticz and add the WLED hardware:
2019-10-25 16:16:07.126 Error: (WLED) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/wled/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'.
2019-10-25 16:16:07.126 Error: (WLED) Module Import failed, exception: 'ImportError'
2019-10-25 16:16:07.127 Error: (WLED) Module Import failed: ' Name: requests'
2019-10-25 16:16:07.127 Error: (WLED) Error Line details not available.
2019-10-25 16:17:12.289 Error: WLED hardware (22) thread seems to have ended unexpectedly
2019-10-25 16:17:26.295 Error: WLED hardware (22) thread seems to have ended unexpectedly
How can i fix this?
Last edited by vwtune on Friday 25 October 2019 16:29, edited 1 time in total.
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
It seems to miss the requests module.
Maybe you can try to install it?
sudo apt-get install python-requests
Let me know if that works.
Maybe you can try to install it?
sudo apt-get install python-requests
Let me know if that works.
-
- Posts: 19
- Joined: Wednesday 24 January 2018 9:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: Python Plugin: WLED
same problem after i did sudo apt-get install python-requests
-
- Posts: 19
- Joined: Wednesday 24 January 2018 9:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: Python Plugin: WLED
Do you have an other solution maybe? I really want to use your plugin
-
- Posts: 241
- Joined: Tuesday 16 May 2017 13:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Neterlands
- Contact:
Re: Python Plugin: WLED
i made a video installing it, maby it helps some people: https://www.youtube.com/watch?v=umVpBED7hpo
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
Cool video!snellejellep wrote: ↑Thursday 14 November 2019 21:04 i made a video installing it, maby it helps some people: https://www.youtube.com/watch?v=umVpBED7hpo
Glad you like my plugin.
-
- Posts: 48
- Joined: Thursday 09 November 2017 20:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
Hi,
I try to control my WLED with a Nexa 433 Mhz wall switch. I made a Blocky event handler that turn on WLED - Color & Brightness when I press ON and tour off same WLED when I press OFF on my wall switch.
This works but I get this error:
When I try to dim the device by use the blocky set dim % it doesn't work at all. Maybe I'am using wrong device. I havent used RGB lights before with Domoticz.
I think your plugin is a great idea. It only need some fixes.
My plan is to use it as a wake up light in the bedroom and use a wall switch to turn it on and off manualy. I know Aircoookie is working on a sunset effect, but else it schouldn't be that hard to implement the logic in Domoticz. But first, I need to be able to control my WLED device with Blocky.
Keep up the good work!
I try to control my WLED with a Nexa 433 Mhz wall switch. I made a Blocky event handler that turn on WLED - Color & Brightness when I press ON and tour off same WLED when I press OFF on my wall switch.
This works but I get this error:
Code: Select all
2019-11-25 22:52:28.240 Error: (CDevice_update) WLED - Color & Brightness: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2019-11-25 22:52:28.240 Error: (WLED) 'CDevice_update' failed 'TypeError':'argument 15 must be str, not dict'.
I think your plugin is a great idea. It only need some fixes.
My plan is to use it as a wake up light in the bedroom and use a wall switch to turn it on and off manualy. I know Aircoookie is working on a sunset effect, but else it schouldn't be that hard to implement the logic in Domoticz. But first, I need to be able to control my WLED device with Blocky.
Keep up the good work!
-
- Posts: 48
- Joined: Thursday 09 November 2017 20:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
By the way, I'am running Domoticz 4.10717
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
You are using the right device.
I've only tried a script with Dzvents.
I'll try with blockly.
Can you post what your script looks like?
I've only tried a script with Dzvents.
I'll try with blockly.
Can you post what your script looks like?
-
- Posts: 48
- Joined: Thursday 09 November 2017 20:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
My blocky script is very simple and it looks like this..
From time to time I get two other errors also
The dim problem where a limitations in blocky. You can't check dim level in blocky so I have to do it in Python or something else. The idea is to make the wall switch smart. If you press on it toggle dim level if the strip is already on. Off just switch off the strip.
Code: Select all
If Button = On
Set WLED = On
Else if Button = Off
Set WLED = Off
Code: Select all
Transport is not connected, write directive to 'getWLEDStatusConn' ignored.
No transport, write directive to 'getWLEDStatusConn' ignored.
-
- Posts: 2
- Joined: Monday 15 October 2018 21:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
I would like to thank you for the script.
At the beginning I also had errors, but I installed:
sudo apt-get install python3-requests
and now everything works great.
Thanks so much
At the beginning I also had errors, but I installed:
sudo apt-get install python3-requests
and now everything works great.
Thanks so much
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
I will try to replicate your script to see if i get the same error and hopefully i can fix it then.Ankan wrote: ↑Wednesday 27 November 2019 0:04 My blocky script is very simple and it looks like this..
Code: Select all
If Button = On Set WLED = On Else if Button = Off Set WLED = Off
This indicates that Domoticz could not reach your WLED installation.Ankan wrote: ↑Wednesday 27 November 2019 0:04 From time to time I get two other errors alsoCode: Select all
Transport is not connected, write directive to 'getWLEDStatusConn' ignored. No transport, write directive to 'getWLEDStatusConn' ignored.
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 39
- Joined: Tuesday 21 March 2017 11:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: WLED
I made the following script in blockly and it works. Maybe it's because you used ON/OFF in stead of Set Level?frustreerMeneer wrote: ↑Wednesday 27 November 2019 16:35 I will try to replicate your script to see if i get the same error and hopefully i can fix it then.
Who is online
Users browsing this forum: No registered users and 1 guest