Just got a Wallbox Copper SB installed today, I managed to create a basic sensor component for Home Assistant.
I will look into creating some switching (lock/unlock for example) later, however, I ony have experience with creating HA sensors so far, so switches might take some more time ;-).
My component can be found at https://github.com/hesselonline/wallbox
I have added some basic switching functionality (pause/unpause, lock/unlock). I donāt have an EV yet, so canāt really test -> I suspect that the pause/unpause might be buggy, there is no pause indicator in the API data so its hard to check the status before pausing. Let me know if you run into issues.
My component can be found at https://github.com/hesselonline/wallbox
Wow. Awesome work. Canāt wait to give it a go in a few hours. Thanks !!
OK, new update. Iāve moved the unlock/lock function to a seperate lock component (looks nicer in the UI). Also, Iāve created a number component to set the max charging current. For now, you do need to create multiple entries in the configuration.yaml (for number, switch, sensor and lock). Let me know if you run into issues:
Iāve obviously set something up wrongā¦ Copied files to custom_config as suggested and set the sensors/switches up.
On restarting HA, I get a platform error in the logs:
Platform error switch.wallbox - No module named 'wallbox' Platform error sensor.wallbox - No module named 'wallbox' Platform error lock.wallbox - No module named 'wallbox'
Which I presume means that it isnāt loading the custom_component properly?
Scrap that - just needed to reboot with the custom component installed before setting up the sensors/switchesā¦
Appears to be working OK - sensor certainly reading out the charging amperage. I havenāt been able to test the lock or pause functions yetā¦
Iām working on a version now that presents the sensors as seperate entities in Home Assistant. That will make it more more easy to use them in charts etc. What data do we want to have as a seperate sensor? Iām currently thinking:
[ ādepot_priceā, āstatus_descriptionā,ācharging_powerā, āmax_available_powerā, ācharging_speedā, āadded_rangeā, āadded_energyā, ācharging_timeā, ācostā, ācurrent_modeā, āstate_of_chargeā].
Any thoughts?
Hello,
Iām looking for a mechanism to steer my Wallbox, based on the available power on my solarpanels.
Example :
- boost charging amperes when solar production is high
I think you can do that with this component (number.max_charging_current) and a script. Of course Home Assistant needs to know the power of you solar panels and you probable need to convert the wattage of the latter into amps.
Iāve got this setup by using HACS and adding your repo, everything went fine but so far I can only really āpauseā when itās already charging. Iāve setup a schedule on Wallbox Pulsar so it only adds charge between 00:30 and 04:30 and Iād like to be able to override that. If I start the charge via the app I can hit the switch and itāll stop charging but I canāt restart.
Iām also not getting data (Some but itās like cached?)
sensor.wallbox_added_energy | 0 | unit_of_measurement: kWh friendly_name: Wallbox Added Energy icon: mdi:battery-positive |
---|---|---|
sensor.wallbox_added_range | 0 | unit_of_measurement: km friendly_name: Wallbox Added Range icon: mdi:map-marker-distance |
sensor.wallbox_charging_power | 0 | unit_of_measurement: W friendly_name: Wallbox Charging Power icon: mdi:ev-station |
sensor.wallbox_charging_speed | 0 | friendly_name: Wallbox Charging Speed icon: mdi:speedometer |
sensor.wallbox_charging_time | 1615324565 | friendly_name: Wallbox Charging Time icon: mdi:timer |
sensor.wallbox_cost | 0 | friendly_name: Wallbox Cost icon: mdi:ev-station |
sensor.wallbox_current_mode | 1 | friendly_name: Wallbox Current Mode icon: mdi:ev-station |
sensor.wallbox_depot_price | 0.05 | friendly_name: Wallbox Depot Price icon: mdi:ev-station |
sensor.wallbox_max_available_power | 32 | unit_of_measurement: A friendly_name: Wallbox Max Available Power icon: mdi:ev-station |
sensor.wallbox_state_of_charge | unknown | unit_of_measurement: % friendly_name: Wallbox State of Charge icon: mdi:battery-charging-80 |
sensor.wallbox_status_description | Connected: waiting for next schedule | friendly_name: Wallbox Status Description icon: mdi:ev-station |
Ps, cheers for the component though, I wish they would release an API for it properly!
I have a new version ready, might be able to push it to GIT tonight. I expect it to update the lag of sensor updates. It also uses the new integration setup flow in Home Assistant. Regarding your pause question, is that possible in the Wallbox app? If so, please let me know when you can use the pause function (I donāt have my EV yet, cannot test ;-)).
Iām currently using the following logic (Status = Charging -> Press Pause -> Status = Connected -> Press Resume).
OK, just uploaded the new version (had time just before dinner ;-)) It should work better now, you can remove the configuration.yaml entries and config it via Configuration -> Integrations in Home Assistant (look for MyWallbox).
amazing work!
Thank you
Great work. However it does not work for me. After entering necessary data and restarting I have no entities at all
Hmm thatās strange, do you have more details? Maybe an error in the logfile? Does the integration show up in your integrations in Home Assistant configuration? Mine works fine all the time, except when I entered the wrong S/N once.
Hi. In fact I double check the serial number and it is correct. Use my email as user and password. Even after restarting the integration shows no devices https://www.dropbox.com/s/65d93u7medaegbp/integration.png?dl=0
Thatās strange. Doe you have anything in the logfile? Does logging in to the my wallbox portal work with the same credentials?