Page 1 of 2
Python plugin: Wallbox EV charger
Posted: Monday 03 April 2023 22:40
by Lokonli
I've created a plugin for integration of the Wallbox EV charger into Domoticz.
The plugin uses the Wallbox API.
See:
https://github.com/lokonli/domoticz-wallbox
Verstuurd vanaf mijn SM-A526B met Tapatalk
Re: Python plugin: Wallbox EV charger
Posted: Sunday 25 June 2023 11:51
by sincze
Cewl.
Happy with this charger ??
I'm looking at the 'Copper SB' as the others seem to have wifi range issues.
Re: Python plugin: Wallbox EV charger
Posted: Sunday 16 July 2023 20:16
by forkboy
Thanks, great plugin

.
Just installed it without too much problems, and seems to work great!
Minor comment which I just noticed, The device "Charging current" should be power in kW instead of current in Ampere; at least the metric corresponds to that in the Wallbox app.
Re: Python plugin: Wallbox EV charger
Posted: Sunday 13 August 2023 21:10
by sincze
Works like a charm with Walbox Copper.
Anyone successful with integrating Walbox with OCCP 1.6 in Node-Red for example?
Re: Python plugin: Wallbox EV charger
Posted: Monday 11 September 2023 21:12
by sincze
forkboy wrote: Sunday 16 July 2023 20:16
Thanks, great plugin

.
Just installed it without too much problems, and seems to work great!
Minor comment which I just noticed, The device "Charging current" should be power in kW instead of current in Ampere; at least the metric corresponds to that in the Wallbox app.
Updated the plugin a bit:
Code: Select all
https://github.com/sincze/domoticz-wallbox

- Wallbox-New.png (113.08 KiB) Viewed 15862 times
Re: Python plugin: Wallbox EV charger
Posted: Friday 12 April 2024 9:25
by sincze
Found this trick.
https://github.com/jagheterfredrik/wallbox-pwn
together with:
https://github.com/jagheterfredrik/wallbox-mqtt-bridge
It allows you to obtain full control and all data locally from the Wallbox without breaking the Cloud functionality.
It publishes data to MQTT every second.

- Wallbox-Local.png (70.5 KiB) Viewed 15208 times
We could add this to a separate plugin or use something like a ShellyTeacher4Domo kinda approach to automatically create these devices in Domoticz.
Re: Python plugin: Wallbox EV charger
Posted: Friday 12 April 2024 9:29
by waltervl
Or use the mqttmapper plugin. I think this would be the easiest way.
Re: Python plugin: Wallbox EV charger
Posted: Friday 12 April 2024 11:22
by sincze
waltervl wrote: Friday 12 April 2024 9:29
Or use the mqttmapper plugin. I think this would be the easiest way.
Again, your knowledge (walking wiki) always seems to amaze me. Thanks for the tip!!
Re: Python plugin: Wallbox EV charger
Posted: Wednesday 17 April 2024 21:27
by tarmacalastair
Hello,
Interesting topic. I've looked at the two versions of the plugin mentioned in this topic:
Which one should I use? I've just tried installing them both (to folders
wallbox and
wallbox1) and I can't see work out what the differences are!
Thanks
Re: Python plugin: Wallbox EV charger
Posted: Wednesday 17 April 2024 22:19
by sincze
tarmacalastair wrote: Wednesday 17 April 2024 21:27
Hello,
Interesting topic. I've looked at the two versions of the plugin mentioned in this topic:
Which one should I use? I've just tried installing them both (to folders
wallbox and
wallbox1) and I can't see work out what the differences are!
Thanks
Hi tarmacalastair
https://github.com/lokonli/domoticz-wallbox is leading.
I forked it (to create pull requests for improvements) and if agreed upon lokonli merges them in his release.
Re: Python plugin: Wallbox EV charger
Posted: Wednesday 17 April 2024 23:30
by tarmacalastair
Ah great, thanks for explaining.
Re: Python plugin: Wallbox EV charger
Posted: Friday 21 June 2024 20:43
by edwinh81
I started using this plugin earlier this week.
Was very excited at first but over first days it broke on me and I cannot find the reason for it.
The domoticz log says:
2024-06-21 20:27:52.257 Error: wallbox: (Wallbox) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/wallbox/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-06-21 20:27:52.268 Error: wallbox: Traceback (most recent call last):
2024-06-21 20:27:52.269 Error: wallbox: File "/opt/domoticz/userdata/plugins/wallbox/plugin.py", line 66, in <module>
2024-06-21 20:27:52.269 Error: wallbox: from wallbox import Wallbox, Statuses
2024-06-21 20:27:52.269 Error: wallbox: ModuleNotFoundError: No module named 'wallbox'
I cannot find any errors in the plugin.py file from the original. Any suggestions?
Running domoticz 2024.4 in docker.
Re: Python plugin: Wallbox EV charger
Posted: Saturday 22 June 2024 0:26
by sincze
It seems docker does not know wallbox.
Probably the docker was renewed??
How did you install the plugin in the docker?
Re: Python plugin: Wallbox EV charger
Posted: Sunday 23 June 2024 12:11
by edwinh81
I cannot really reproduce how I did it.
I adapted the installation like described on github a little.
I kicked the pip install line again with a commandline and it works again for now.
Do you have any advice on what would be a proper way to do it in docker?
Re: Python plugin: Wallbox EV charger
Posted: Monday 24 June 2024 8:39
by sincze
I created a customstart.sh. So everytime my Domoticz container is re-created the wallbox is re-installed.
https://www.domoticz.com/wiki/Docker#cu ... _container
The plugin itself is maintained as this is mounted into the docker.
Code: Select all
#!/bin/bash
if [ -f /opt/domoticz/FIRSTRUN ]; then true
else
echo 'Installing Wallbox'
pip install -r /opt/domoticz/userdata/plugins/wallbox/requirements.txt
echo 'Creating FIRSTRUN file so script can check on next run'
touch /opt/domoticz/FIRSTRUN
cd /opt/domoticz || return
fi
Re: Python plugin: Wallbox EV charger
Posted: Monday 24 June 2024 21:07
by edwinh81
Thank you!
Far as I can see now this did the trick for me.
Re: Python plugin: Wallbox EV charger
Posted: Sunday 29 December 2024 14:10
by underscore4
Really nice plugin ( and easy as well

).
Is there possible to change thw counter and set the ramp of changirng Amps instead of °C?
Could you please suggest actions?
Re: Python plugin: Wallbox EV charger
Posted: Sunday 29 December 2024 15:46
by waltervl
You can do that yourself to click on the edit button and change C in A.
It could be that the plugin reset it to its default and then it is up to the plugin author to create a correct setpoint device.
Re: Python plugin: Wallbox EV charger
Posted: Wednesday 15 October 2025 1:21
by E2VInfo
I was using Wallbox plugin, but recently it stopped working. I removed the plugin/ dir, everything. When trying to re-install I get error:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
I recently updated my debian to bookworm. Python version 3.11.2. I also have libpython3.11
Is the suggested installation of a lower python version with venv the way to go? Or, any other suggestions?
Re: Python plugin: Wallbox EV charger
Posted: Wednesday 08 April 2026 20:48
by hkhk
I'm no expert but have been struggling with this too when upgrading to 2026 and moving to docker.
Looking at your post I assume you're not running in docker.
Going the venv way is the suggested method but be aware that it yields for all python plugins you use.
https://wiki.domoticz.com/Using_Python_plugins describes how to set it up
Or... you can go this way and run
pip install -r requirements.txt --break-system-packages in the wallbox folder.
If you do use docker, be sure to run this in the docker image. You can do this by adding this in customstart.sh in the userdata folder (because an update of the docker image will purge the requirements so this will have to be redone)