Data from Wallbox car charger

Moderator: leecollings

thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Data from Wallbox car charger

Post by thomasbaetge »

Hi Guys,

I'm a bit lost here, so maybe someone can help me out...
I managed to receive data from my wallbox, reporting incremental watts charged every 15 minutes during a charging process.
It is transmitted by the box via OCPP and I receive and parse it in Node-Red.
I want to feed that into a reasonable domoticz device, so I can track what I put into my car and what the cost were. I wanted to use Electricity (instant and counter) but I do not have current power data, but only the increment consumption values, so I can not really feed the POWER parameter in the API.
data looks like this:

Code: Select all

{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"2669"}],"timestamp":"2021-02-07T07:46:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"5356"}],"timestamp":"2021-02-07T08:01:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"8042"}],"timestamp":"2021-02-07T08:16:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"10729"}],"timestamp":"2021-02-07T08:31:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"13417"}],"timestamp":"2021-02-07T08:46:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"16104"}],"timestamp":"2021-02-07T09:01:28Z"}],"transactionId":48949}}
Any advice how to do this will be highly appreciated!
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Data from Wallbox car charger

Post by FireWizard »

Hello @thomasbaetge,
I wanted to use Electricity (instant and counter) but I do not have current power data, but only the increment consumption values, so I can not really feed the POWER parameter in the API.
I think you have the current power data, although not real time. It is the measured value minus the previous measured value (15 minutes earlier).

I think you have 2 options.

1. Electricity (instant and counter)
2. Managed counter

Ad 1.

I think you are able to parse the value, every 15 minutes.
In Node Red you can store it and deduct it from the next value.

See: https://nodered.org/docs/user-guide/context

Also another question here: https://discourse.nodered.org/t/store-a ... e/28369/10
It is nicely described at: https://stevesnoderedguide.com/node-red-variables and also at: https://notenoughtech.com/home-automati ... n-nodered/

If you deduct this stored value, from the value you just received, you can feed that virtual sensor.
And at last: Store the just received value again.

Ad 2.

You can use a Managed Counter as well and feed the value -1 to the COUNTER in svalue.

See: https://www.domoticz.com/wiki/Domoticz_ ... counter.29

The disadvantage of this type of counter, is that you have to write the log data yourself into the log. It is extra work. See the link.

I hope this will give you some inspiration on how to do it.

Regards
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

Thanks for your input.

I implemented your first suggestion today but was not yet able to test (since my car is fully charged).
But I replayed collected data from the last charging session and it worked as expected.
The power value is not totally accurate of course, but that is not important (and not very surprising...allways around 11KW)
Darkneo
Posts: 24
Joined: Sunday 10 February 2019 16:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Data from Wallbox car charger

Post by Darkneo »

Hi there, and sorry for taking this topic over. But I am trying to find a way to connect my EV charger through OCPP protocol (ideally in Domoticz later).
My main objective is to make a power adjustement of the EV Charger according my house electrical consumption (EV charger may vary from 6 amps to 32).
Do you have anu orientation for the OCCP connection to the EV Charger? Are you using SteVe? Thanks for your help!
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Data from Wallbox car charger

Post by FireWizard »

Hi, @Darkneo.

1. This is a kind of double posting more or less the same question on 2 places.
In general it will not help you to achieve a quicker solution.
See also: viewtopic.php?f=14&t=36596

2. In order to communicate with you EV Charger and use the OCPP protocol you might want to use Node Red. This application can communicate with Domoticz by MQTT or HTTP.
A node for OCPP is available: https://flows.nodered.org/node/node-red-contrib-ocpp

You might want to look to that first.

Regards
Etha
Posts: 1
Joined: Saturday 09 January 2021 9:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data from Wallbox car charger

Post by Etha »

Hey all,

I bought the LEAF E+ 62 KWH (2019) and when I plug it in at home on my 22kw wallbox (schneider evlink smart wallbox) when I check my charging times

the kW/h it topped of in those hours I only hit like 4.4 kW/h if I sum it up and 4.1 kW/h if I average all my charging times.


lowes employee portal
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

Sorry, saw the postings only just now.
I am using Node-Red to interface the Wallbox to Domoticz. the OCPP protokol is a bit confusing, but anyway it works for me.
If you need, I can share my flow here.

EDIT: additionally you may need to set up your WB to be a 'managed system' instead of standalone.
I can provide the basic steps for a Schneider smart WB.
Last edited by thomasbaetge on Monday 26 July 2021 18:05, edited 1 time in total.
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

Etha wrote: Friday 23 July 2021 7:22 Hey all,

I bought the LEAF E+ 62 KWH (2019) and when I plug it in at home on my 22kw wallbox (schneider evlink smart wallbox) when I check my charging times

the kW/h it topped of in those hours I only hit like 4.4 kW/h if I sum it up and 4.1 kW/h if I average all my charging times.


lowes employee portal
the Nissan Leaf E charges at 3,7kw only (or 6,6 optional) on a AC box. That'S the maximum the car can do, regardless of your wallbox.
My e-tron charges at 11kw, even though my box is 22kw too.
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Data from Wallbox car charger

Post by jeroenkl »

thomasbaetge wrote: Monday 26 July 2021 17:49 Sorry, saw the postings only just now.
I am using Node-Red to interface the Wallbox to Domoticz. the OCPP protokol is a bit confusing, but anyway it works for me.
If you need, I can share my flow here.

EDIT: additionally you may need to set up your WB to be a 'managed system' instead of standalone.
I can provide the basic steps for a Schneider smart WB.
Yes please, could you share your flow?
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

no problem, happy to share :)
You need to install node-red-contrib-ocpp into node-red. my Flow feeds a general generic kwh device in domoticz and sends various status notifications.
the data entered into the OCPP SOAP node (especially url and port) needs to match the supervision settings in your box. if all goes well, you should begin to receive heartbeat messages immediately. Authentication in my case is done by the wallbox itself via NFC. I'm using a NFC enabled ring for that.

the node block you will see under the main which is labeled 'send request....' is optional for testing etc and not required for proper function.

Code: Select all

[{"id":"565e40f1.7128c","type":"tab","label":"TBAWB1","disabled":false,"info":""},{"id":"e1387a97.82a408","type":"CS server","z":"565e40f1.7128c","name":"home@8834","port":"8834","enabled15":true,"path15":"/ocpp15s","enabled16":true,"path16":"/ocpp16s","enabled16j":true,"path16j":"/ocpp","log":true,"pathlog":"OCPP__.log","x":110,"y":130,"wires":[["10a08593.baab0a","785b602f.5745d"]]},{"id":"785b602f.5745d","type":"debug","z":"565e40f1.7128c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":110,"y":220,"wires":[]},{"id":"10a08593.baab0a","type":"switch","z":"565e40f1.7128c","name":"OCPP CS Command Switch","property":"payload.command","propertyType":"msg","rules":[{"t":"eq","v":"BootNotification","vt":"str"},{"t":"eq","v":"Authorize","vt":"str"},{"t":"eq","v":"Heartbeat","vt":"str"},{"t":"eq","v":"StatusNotification","vt":"str"},{"t":"eq","v":"MeterValues","vt":"str"},{"t":"eq","v":"StartTransaction","vt":"str"},{"t":"eq","v":"StopTransaction","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":8,"x":399,"y":135,"wires":[["812bd24c.a3b4c"],["2ad7f2a5.e8db9e","a204682d.55a848"],["276b8fd7.55862"],["80bc0d1a.80316","cac3aec1.85452"],["80bc0d1a.80316","cac3aec1.85452","3d936649.5b772a","3cbe14f6.57d63c","a204682d.55a848","1bdb49c9.c2d0a6"],["936009ae.e127a8","cac3aec1.85452","a204682d.55a848","192f241f.58202c","6ba40cb3.3142c4"],["cac3aec1.85452","2ad7f2a5.e8db9e","5f35989b.9d5f58","a204682d.55a848","4a0ec78c.858568","5a90af71.fa3aa"],["cac3aec1.85452"]]},{"id":"c571ba35.be3818","type":"server response","z":"565e40f1.7128c","name":"","x":1520,"y":140,"wires":[]},{"id":"812bd24c.a3b4c","type":"function","z":"565e40f1.7128c","name":"BootNotification","func":"msg.payload = {\n    interval: 120,\n    currentTime: new Date().toISOString(),\n    status: \"Accepted\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":1019,"y":36,"wires":[["c571ba35.be3818"]]},{"id":"936009ae.e127a8","type":"function","z":"565e40f1.7128c","name":"Start Transaction","func":"msg.payload = {\n    idTagInfo: {\n        status: \"Accepted\",\n    },\n    transactionId: getRndInteger(0,100000)\n}\nreturn msg;\n\nfunction getRndInteger(min, max) {\n    return Math.floor(Math.random() * (max - min + 1) ) + min;\n}\n","outputs":1,"noerr":0,"x":1029,"y":216,"wires":[["c571ba35.be3818"]]},{"id":"5f35989b.9d5f58","type":"function","z":"565e40f1.7128c","name":"Stop Transaction","func":"msg.payload = { idTagInfo: { status: \"Accepted\"} };\nreturn msg;","outputs":1,"noerr":0,"x":1250,"y":240,"wires":[["c571ba35.be3818"]]},{"id":"276b8fd7.55862","type":"change","z":"565e40f1.7128c","name":"Heartbeat","rules":[{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"payload.currentTime","pt":"msg","to":"$now()","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":999,"y":114,"wires":[["c571ba35.be3818"]]},{"id":"2ad7f2a5.e8db9e","type":"change","z":"565e40f1.7128c","name":"Generic Status=Accepted","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"idTagInfo\":{\"status\":\"Accepted\"}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1049,"y":76,"wires":[["c571ba35.be3818","7be71ba6.bc4384"]]},{"id":"80bc0d1a.80316","type":"change","z":"565e40f1.7128c","name":"Generic Return","rules":[{"t":"set","p":"ocpp.data","pt":"msg","to":"payload.data","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1019,"y":156,"wires":[["c571ba35.be3818"]]},{"id":"cac3aec1.85452","type":"debug","z":"565e40f1.7128c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":530,"y":270,"wires":[]},{"id":"6238f451.2cac0c","type":"inject","z":"565e40f1.7128c","name":"get hb","props":[{"p":"payload","v":"{\"command\":\"GetConfiguration\",\"data\":{\"key\":[\"HeartbeatInterval\"]}}","vt":"json"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"command\":\"GetConfiguration\",\"data\":{\"key\":[\"HeartbeatInterval\"]}}","payloadType":"json","x":150,"y":720,"wires":[["7ff476fe.321538"]]},{"id":"7be71ba6.bc4384","type":"debug","z":"565e40f1.7128c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1249,"y":56,"wires":[]},{"id":"3d936649.5b772a","type":"debug","z":"565e40f1.7128c","name":"MeterValues","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1090,"y":280,"wires":[]},{"id":"3cbe14f6.57d63c","type":"debug","z":"565e40f1.7128c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":750,"y":350,"wires":[]},{"id":"7ff476fe.321538","type":"CS request JSON","z":"565e40f1.7128c","name":"CS TBAWB1","remotecb":"6b44327e.3af84c","command":"GetConfiguration","cmddata":"","log":true,"pathlog":"","x":410,"y":710,"wires":[["d10cef24.bc4c3"]]},{"id":"d10cef24.bc4c3","type":"debug","z":"565e40f1.7128c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":620,"y":730,"wires":[]},{"id":"b469a8e4.5bce28","type":"comment","z":"565e40f1.7128c","name":"Basic OCPP Central System Server and supporting nodes","info":"Change the port address and paths to meet your needs.\nThis is a very basic (does represent a fully functional CS) example","x":230,"y":30,"wires":[]},{"id":"7ab36f84.9f532","type":"comment","z":"565e40f1.7128c","name":"Send request from the Central Server to Charge Point","info":"","x":250,"y":640,"wires":[]},{"id":"da309c0c.bd4f1","type":"comment","z":"565e40f1.7128c","name":"Inject a command with data","info":"","x":190,"y":680,"wires":[]},{"id":"bfc38ab.57fba78","type":"comment","z":"565e40f1.7128c","name":"Debug all incoming msgs","info":"","x":110,"y":260,"wires":[]},{"id":"170df296.c98d5d","type":"CS request JSON","z":"565e40f1.7128c","name":"CS TBAWB1 Change hb interval","remotecb":"6b44327e.3af84c","command":"ChangeConfiguration","cmddata":"{\n \"key\": \"HeartbeatInterval\",\n \"value\": \"1800\" \n}\n","log":true,"pathlog":"","x":480,"y":790,"wires":[["d10cef24.bc4c3"]]},{"id":"74f080cb.5d983","type":"inject","z":"565e40f1.7128c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":790,"wires":[["170df296.c98d5d"]]},{"id":"a204682d.55a848","type":"file","z":"565e40f1.7128c","name":"","filename":"wb_log.txt","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"none","x":1620,"y":200,"wires":[[]]},{"id":"33ba103e.b1582","type":"CS request JSON","z":"565e40f1.7128c","name":"CS TBAWB1 Change hb interval","remotecb":"6b44327e.3af84c","command":"TriggerMessage","cmddata":"{\n \"requestedMessage\": \"MeterValues\"\n}\n","log":true,"pathlog":"","x":480,"y":850,"wires":[["d10cef24.bc4c3"]]},{"id":"4a66d315.d4499c","type":"inject","z":"565e40f1.7128c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":870,"wires":[["33ba103e.b1582"]]},{"id":"b7f22c41.5740f","type":"CS request JSON","z":"565e40f1.7128c","name":"CS TBAWB1","remotecb":"6b44327e.3af84c","command":"GetConfiguration","cmddata":"{}","log":true,"pathlog":"","x":420,"y":930,"wires":[["d10cef24.bc4c3"]]},{"id":"1e6bf7ca.45e638","type":"inject","z":"565e40f1.7128c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":930,"wires":[["b7f22c41.5740f"]]},{"id":"192f241f.58202c","type":"function","z":"565e40f1.7128c","name":"Start Transaction","func":"\nmsg.payload = {\n\n    \"idx\" : 444,\n    \"nvalue\" :0,\n    \"svalue\" :\"10000;0\"\n     \n}\nflow.set(\"prevEnergy\", 0)\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":980,"y":480,"wires":[["3f9fb1cb.924d5e"]]},{"id":"3f9fb1cb.924d5e","type":"mqtt out","z":"565e40f1.7128c","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"5660e74b.bef428","x":1370,"y":480,"wires":[]},{"id":"1bdb49c9.c2d0a6","type":"function","z":"565e40f1.7128c","name":"Meter Values","func":"//every 15 minutes\nvar prevEnergy = flow.get(\"prevEnergy\")\nvar power = (parseInt(msg.payload.data.meterValue[0].sampledValue[0].value) - prevEnergy) * 4\nvar energy = parseInt(msg.payload.data.meterValue[0].sampledValue[0].value)\n\nvar newmsg = {payload:\"\", topic:\"\"};\nnewmsg.payload = { \n    \"idx\" :444,\n    \"nvalue\" :0,\n    \"svalue\" :power.toString()+ \";\" + energy.toString()\n     \n}\n\nflow.set(\"prevEnergy\", energy)\nreturn newmsg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":970,"y":680,"wires":[["3f9fb1cb.924d5e"]]},{"id":"4a0ec78c.858568","type":"function","z":"565e40f1.7128c","name":"Stop Transaction","func":"msg.payload = { \n    \"idx\" :444,\n    \"nvalue\" :0,\n    \"svalue\" :\"0;\" + msg.payload.data.meterStop.toString()\n     \n}\nflow.set(\"prevEnergy\", 0)\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":580,"wires":[["3f9fb1cb.924d5e"]]},{"id":"6ba40cb3.3142c4","type":"function","z":"565e40f1.7128c","name":"msg Start","func":"msg.payload =\n{\n    \"command\": \"sendnotification\",\n    \"subject\": \"TBAWB1\",\n    \"body\": \"Charging started\",\n    \"priority\": 0\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":960,"y":400,"wires":[["3f9fb1cb.924d5e"]]},{"id":"5a90af71.fa3aa","type":"function","z":"565e40f1.7128c","name":"msg Stop","func":"\nvar energy = parseInt(msg.payload.meterStop) /1000\nmsg.payload =\n{\n    \"command\": \"sendnotification\",\n    \"subject\": \"TBAWB1\",\n    \"body\": \"Charging stopped\" + \" \" + energy.toString() + \"KW charged\",\n    \"priority\": 0\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":960,"y":620,"wires":[["3f9fb1cb.924d5e"]]},{"id":"27be44e6.947e3c","type":"inject","z":"565e40f1.7128c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"command\":\"StopTransaction\",\"data\":{\"meterStop\":21874,\"timestamp\":\"2021-02-07T09:43:35Z\",\"transactionId\":48949}}","payloadType":"json","x":520,"y":460,"wires":[["36ef85b5.6a381a","4a0ec78c.858568"]]},{"id":"36ef85b5.6a381a","type":"debug","z":"565e40f1.7128c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":980,"y":780,"wires":[]},{"id":"6b44327e.3af84c","type":"ocpp-remotej-cp","name":"","cbId":"TBAWB1","ocppver":"1.6j"},{"id":"5660e74b.bef428","type":"mqtt-broker","name":"Controlberry","broker":"192.168.2.40","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Data from Wallbox car charger

Post by jeroenkl »

'the data entered into the OCPP SOAP node (especially url and port) needs to match the supervision settings in your box' that's I need to investigate.
I'm using Alfen eve Single Pro
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

That is actually the only tricky part. if your box has a web Interface, there should be the corresponding settings somewhere. You may need to set the system up as managed system first, so the other settings will become visible (that was at leaast the case with my Schneider box)
vinisz
Posts: 11
Joined: Monday 21 January 2019 20:05
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Data from Wallbox car charger

Post by vinisz »

That is very nice, node-red and things all clear, no problem... but, can you tell me what you have entered into the ocpp configuration of the wallbox ?
thomasbaetge wrote: Sunday 07 February 2021 10:30 Hi Guys,

I'm a bit lost here, so maybe someone can help me out...
I managed to receive data from my wallbox, reporting incremental watts charged every 15 minutes during a charging process.
It is transmitted by the box via OCPP and I receive and parse it in Node-Red.
I want to feed that into a reasonable domoticz device, so I can track what I put into my car and what the cost were. I wanted to use Electricity (instant and counter) but I do not have current power data, but only the increment consumption values, so I can not really feed the POWER parameter in the API.
data looks like this:

Code: Select all

{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"2669"}],"timestamp":"2021-02-07T07:46:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"5356"}],"timestamp":"2021-02-07T08:01:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"8042"}],"timestamp":"2021-02-07T08:16:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"10729"}],"timestamp":"2021-02-07T08:31:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"13417"}],"timestamp":"2021-02-07T08:46:28Z"}],"transactionId":48949}}
{"command":"MeterValues","data":{"connectorId":1,"meterValue":[{"sampledValue":[{"value":"16104"}],"timestamp":"2021-02-07T09:01:28Z"}],"transactionId":48949}}
Any advice how to do this will be highly appreciated!
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

Sure thing. This applies to a Schneider G4 22KW Box:

All you need to do is to enter the supervision URL in the supervison settings tab. Please note that -at least in my case- the tab will only be visible after setting the box to 'supervised'
wallbox.JPG
wallbox.JPG (77.39 KiB) Viewed 3451 times
the URL is build of:

Code: Select all

ws://IP_ADRESS_OF_NODE_RED_INSTANCE:PORT/OCPP
in NR you set the CS Server node according to the screenshot (same port).
NR.JPG
NR.JPG (42.79 KiB) Viewed 3451 times
if all goes well, you should start to receive hearbeat messages in NR.
TheMartian
Posts: 5
Joined: Wednesday 16 November 2022 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data from Wallbox car charger

Post by TheMartian »

@jeroenkl
Did you find out how to configure using node-red-contrib-ocpp for communication with the Alfen Eve Single charger?
willemd
Posts: 621
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Data from Wallbox car charger

Post by willemd »

TheMartian wrote: Wednesday 16 November 2022 21:33 @jeroenkl
Did you find out how to configure using node-red-contrib-ocpp for communication with the Alfen Eve Single charger?
I would be interested in a solution as well.

What I did so far:
1) I got an Alfen Eve Single S-line wall charger installed including loadbalancing.
2) I installed the Alfen MyEve app on my phone, got an account, and then it found the charger without problems, so I have the IP address, the charger-ID etc. and I can see the full configuration.
3) I installed Node Red an a separate Raspberry from the Domoticz PI, for testing and development purposes. I followed the Node Red tutorials.
4) I installed the nodes for OCPP as available here: https://flows.nodered.org/node/node-red-contrib-ocpp
5) I installed the OCPP examples and also the nodes from @thomasbaetge above. I adapted the charger-ID of the examples to the ID I got from my charger.
6) I tried to get the configuration of the charger via Node Red .... but failed

It does not seem to communicate with the charger. No error message, nothing.

I don't want to do any changes to the charger (warranty), I just want to read values, starting with the configuration as a test. And once that works, I want to import values into domoticz, but that is of later concern.

So key question now is how to establish communication with the charger? The MyEve app can do it, it found the charger just by scanning the local network, I did not have to supply an IP address or ID. Can I do the same with software on my Raspberry Pi?

If I use one of the Node Red examples and just change the ID of the example charger to the ID of my charger and then want to deploy it in Code Red, I get a warning message that the configuration is not complete. Why would that be? And if I deploy anyway, nothing happens.
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

hmm...it's difficult to do a remote diagnosis based on what your wrote.
Just one thing: setting up OCPP communication is a task you have to do on both ends. in Node-Red as well as on your charger.
The least to probably need to do, is enter the 'Supervision URL' in your charger.

Also, a deploy warning from NR usually indicates, that there is something not right ;)
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data from Wallbox car charger

Post by Lokonli »

I've created a Python plugin for integration of the Wallbox EV charger into Domoticz.

See:
viewtopic.php?p=301652#p301652
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

Re: Data from Wallbox car charger

Post by thomasbaetge »

Well, the last thing I would probably want to do, is run my wallbox data through some public service.
There is no cloud - it is always someone elses computer.
User avatar
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: Data from Wallbox car charger

Post by sincze »

thomasbaetge wrote: Wednesday 12 April 2023 16:56 Well, the last thing I would probably want to do, is run my wallbox data through some public service.
There is no cloud - it is always someone elses computer.
As I share the preference of keeping things local at least we have several options to chose from.
tnx to @Lokonli and the other suggestions.

Depending on everyones individual knowledge skills, and the risks you see there are options to limit the blast zone of all those SMART devices that yell home to their respective cloud service.

My thoughts:
- Keep it local (preferred LAN) by default (No lan ... then WIFI).
- China stuff (Smart gateways e.g.) is limited to accept my local calls only, no internet connectivity allowed
- China stuff with possibility of FW reflash (Tasmota e.g.) is limited to internet only via iot-VLAN
- Stuff that needs to be controlled via google home and as such their respective Cloudservice (internet only vlan)

DNS traffic is monitored and if hardcoded (google e.g.) devices try their own it is overwritten.

Pretty safe and workable.
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest