Page 1 of 1
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 3669 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 3015 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.