Python plugin: Wallbox EV charger
Moderator: leecollings
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Python plugin: Wallbox EV charger
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
The plugin uses the Wallbox API.
See:
https://github.com/lokonli/domoticz-wallbox
Verstuurd vanaf mijn SM-A526B met Tapatalk
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
Cewl.
Happy with this charger ??
I'm looking at the 'Copper SB' as the others seem to have wifi range issues.
Happy with this charger ??
I'm looking at the 'Copper SB' as the others seem to have wifi range issues.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Re: Python plugin: Wallbox EV charger
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.
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.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
Works like a charm with Walbox Copper.
Anyone successful with integrating Walbox with OCCP 1.6 in Node-Red for example?
Anyone successful with integrating Walbox with OCCP 1.6 in Node-Red for example?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
Updated the plugin a bit: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.
Code: Select all
https://github.com/sincze/domoticz-wallbox
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
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.
We could add this to a separate plugin or use something like a ShellyTeacher4Domo kinda approach to automatically create these devices in Domoticz.
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.
We could add this to a separate plugin or use something like a ShellyTeacher4Domo kinda approach to automatically create these devices in Domoticz.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python plugin: Wallbox EV charger
Or use the mqttmapper plugin. I think this would be the easiest way.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
Again, your knowledge (walking wiki) always seems to amaze me. Thanks for the tip!!
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 94
- Joined: Wednesday 30 October 2019 14:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Great Britain
- Contact:
Re: Python plugin: Wallbox EV charger
Hello,
Interesting topic. I've looked at the two versions of the plugin mentioned in this topic:
Thanks
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
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?
Desktop access from Ubuntu Linux
Desktop access from Ubuntu Linux
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
Hi tarmacalastairtarmacalastair 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
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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 94
- Joined: Wednesday 30 October 2019 14:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Great Britain
- Contact:
Re: Python plugin: Wallbox EV charger
Ah great, thanks for explaining.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?
Desktop access from Ubuntu Linux
Desktop access from Ubuntu Linux
-
- Posts: 5
- Joined: Wednesday 27 December 2017 17:20
- Target OS: Linux
- Domoticz version: 2024.4
- Location: NLD
- Contact:
Re: Python plugin: Wallbox EV charger
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:
Running domoticz 2024.4 in docker.
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:
I cannot find any errors in the plugin.py file from the original. Any suggestions?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'
Running domoticz 2024.4 in docker.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
It seems docker does not know wallbox.
Probably the docker was renewed??
How did you install the plugin in the docker?
Probably the docker was renewed??
How did you install the plugin in the docker?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 5
- Joined: Wednesday 27 December 2017 17:20
- Target OS: Linux
- Domoticz version: 2024.4
- Location: NLD
- Contact:
Re: Python plugin: Wallbox EV charger
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?
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?
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python plugin: Wallbox EV charger
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.
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
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 5
- Joined: Wednesday 27 December 2017 17:20
- Target OS: Linux
- Domoticz version: 2024.4
- Location: NLD
- Contact:
Re: Python plugin: Wallbox EV charger
Thank you!
Far as I can see now this did the trick for me.
Far as I can see now this did the trick for me.
Who is online
Users browsing this forum: No registered users and 1 guest