I recently added an SMA EV Charger 22 Wallbox to my network. Of course, this is primarily used to charge an electric car.
Nevertheless, I was of course curious which values could be read out and processed there.
The Node Red code presented below is my current status. It can already be used to read out the most common consumption and production data. So you can access individual values of the electricity network as well as the connected car.
More information is summarized in this article.
I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/sicherheitshinweise/
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, Nerdiy.de receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂
So that you can install new nodes, NodeRed should of course already be installed on your RaspberryPi.
How to prepare a RaspberryPi and then install NodeRed on it is described in the following articles.
- RaspberryPi – Setup for nerdiys!
- RaspberryPi – The first configuration!
- RaspberryPi – Control the RaspberryPi via SSH
- NodeRed – Installation von NodeRed auf dem RaspberryPi
In the following lists you will find all the parts you need to implement this article.
Import Node Red code
In this section you will find the Node Red code you need. How you can import this into your NodeRed environment is described in the article NodeRed – importing and exporting node code.
In order to be able to use the node code linked below with your ESPEasy device, you have to make a few changes. These are described in the next section.
You can find the Node Red code in the Nerdiy Git repository under the following link:
In the gallery below you can see a photo of the flow in the configuration view. As you can see, I was able to assign/read most of the values. For some (in my opinion less important) the correct assignment is still missing. If you find this out, please leave me a comment.
In order for the Node Red Flow to work correctly, you must set the access data for the standard user of your wallbox in the area marked in red.
The retrieved data is displayed in the dashboard. Of course, you can adapt the code as you wish and process the recorded data further.
In the following categories you will find further links on the subject of Node Red.
Have fun with the project
I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂