Replies: 19 comments 67 replies
-
@FredTheEd., your configuration looks ok. Passwords are not needed, since they are currently not checked. Can you confirm that you can reach your homeassistant page using http://homeassistant.local:8123 in your browser? |
Beta Was this translation helpful? Give feedback.
-
Is your wallbox connected to the same WiFi network as your home assistant setup, or is it using some guest network perhaps? |
Beta Was this translation helpful? Give feedback.
-
Is there a firewall active on your NUC? |
Beta Was this translation helpful? Give feedback.
-
I can't see anything strange in your logs. The socket should be visible with netstat -a if you execute this from the Home Assistant CLI. Websocket response should be like this: |
Beta Was this translation helpful? Give feedback.
-
I can find the :9000 using the CLI directly on the NUC and the connection via weasel looks good to me, too. |
Beta Was this translation helpful? Give feedback.
-
Any luck with WireShark? |
Beta Was this translation helpful? Give feedback.
-
I noticed that I had connection issues with the new firmware myself. After some debugging with WireShark I saw that the wallbox tried to resolve the hostname 'ws'. I then removed the 'ws:' prefix from the OCPP url setting for the wallbox, and my connection issues were resolved. Happy xmas! |
Beta Was this translation helpful? Give feedback.
-
@GrantKeymer, see https://github.com/lbbrhzn/ocpp#debugging to enable debugging. |
Beta Was this translation helpful? Give feedback.
-
You can see the log in your browser, by going to Configuration / Settings / Log / Load Full Home Assistant Log. |
Beta Was this translation helpful? Give feedback.
-
The warning you see can be ignored for now, it's the ERROR messages that are important. |
Beta Was this translation helpful? Give feedback.
-
Now I have HACS reinstalled after removing the GitHub rate limit in configuration.yaml. Then the OCPP Repository reappeared by itself, but I re-downloaded to be sure. The Full Log File only shows Info and Warnings, no Errors except for this one... 2021-12-27 16:52:22 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'TimeoutError' It doesn't seem like anything to do with OCPP. Any ideas on how I can get it to work? Kind regards, |
Beta Was this translation helpful? Give feedback.
-
Hello again @lbbrhzn I've switched to the containerised version of HA using Docker and it seems like a much more stable environment. There aren't any issues such as outdated Python versions to worry about and HACS / OCPP are working fine. I haven't seen any ERROR logs at all and the WARNING about Python 3.8 has now disappeared. I've been using WireShark to try and sniff packets to/from the Pulsar Plus. I know my PC is listening on ports 8123 and 9000 according to Netstat and I've passed them into the Docker container using the Run command. These are the port mappings I've used... PS C:\Users\grant> docker port "home-assistant" Is TCP the correct protocol to use? Filtering packets on the IP address of the Pulsar Plus (192.168.1.103) I see the following... 71190 2069.750896 192.168.1.103 192.168.1.200 TCP 74 47290 → 9000 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=4294942741 TSecr=0 WS=128 71219 2070.756419 192.168.1.103 192.168.1.200 TCP 74 [TCP Retransmission] [TCP Port numbers reused] 47290 → 9000 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=4294942848 TSecr=0 WS=128 This pattern repeats over and over every few seconds with the 47xxx number incrementing by 6 or 10 each time. Later sequences are 47296, 47306, 47312 etc. Another thing I've noticed is that there are no packets with a Destination of 192.168.1.103 (the Pulsar Plus). This would seem to show that the Pulsar Plus is continually sending packets to my PC on Port 9000, but never getting a reply. @martenjacobs - I see that you also have a Wallbox Pulsar Plus. I would really like to make a contribution to this community, but at present my OCPP connection doesn't work and I can't find out why. I'm an electrical engineer with a reasonable knowledge of TCP/IP and have written software in Assembly Language, Basic, Pascal, HTML etc. So I expect I could learn Python without too much difficulty. Any help would be much appreciated. Many thanks, |
Beta Was this translation helpful? Give feedback.
-
@martenjacobs Thanks very much for your reply. Great to hear you had no problems getting your Wallbox connected under HassOS. It seems like that will be my way forward. So far I've tried using HA Core, running under WSL in Windows and that was a nightmare to be honest. Seemingly simple things such as trying to upgrade the Python version completely broke my installation and I had to reinstall 3 times. Then when I finally got Python 3.9 installed, I could not get the virtual environment to activate, so was unable to run HA. Therefore I tried the containerised version of HA running under Docker using WSL in Windows. Installation was certainly much easier, and if it wasn't for this comms issue I would pursue it further. My Pulsar Plus has behaved identically when running with HA Core or HA Container so that leads me to believe it's something to do with Windows getting in the way. That's a pity because it makes an ideal test bed for experimentation until I decide whether HA/OCPP is going to be useful with my charger or not. I will study the docs on Netcat to find out how it works and see if that gives me any clues. If I don't get anywhere, I will look at buying a suitable hardware platform for HassOS. I already have an Intel NUC running my weather station and video surveillance so I don't want to mess around with it. Also have an ASUS board running a VPN for video streaming so don't want to mess with that either. Maybe a Raspberry Pi or ODROID will be the best idea. Which hardware platform are you using? |
Beta Was this translation helpful? Give feedback.
-
Hello again all, However, the OCPP Integration doesn't seem to be doing anything. Below is a screenshot showing the Netstat results. There is nothing listening on Port 9000... Using Weasel confirms this... I have tried removing and reloading the Repo and the Integration. Server logs show the usual WARNINGS about Custom Integrations but all other entries are just INFO. I really don't know what else I can do to troubleshoot this. Any suggestions greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
The websockets package should be installed automatically, at least if you install through HACS. |
Beta Was this translation helpful? Give feedback.
-
@drc38 we currently have websocket listed in requirements.txt, and websockets in requirements_test.txt. |
Beta Was this translation helpful? Give feedback.
-
Here's a log with the detail you should expect with debugging enabled: https://github.com/lbbrhzn/ocpp/files/7186245/home-assistant.1.log |
Beta Was this translation helpful? Give feedback.
-
Just to close off this thread... Repo v0.4.5, 0.4.7 or 0.4.8 all provide stable connections via OCPP. Each of them are now using OCPP Library v12.1 which has the 'Remove_Nones' bug fixed. For added stability it is recommended to make sure you're running Websockets 10.1 or later, rather than the earlier 9.x version which was bundled with HassOS 7.0. Special thanks to all involved for their hard work 👏 |
Beta Was this translation helpful? Give feedback.
-
Did any of you guys see connectivity issues the recent weeks? I got my Pulsar Plus now. It came with SW 5.3.20, and I upgraded it to 5.5.10. Anyways, during the brief periods where wifi works, I cannot get it to connect to the OCPP integration. I am on home assistant From the Pulsar, however, not a single packet arrives on port Grateful for any hints P.S.: The wifi connection loss issues seem to be not that frequent when OCPP is turned off. Not sure what to make of that, though. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm new in the HA world and I am struggling for hours to make my wallbox speak to my Nuc via OCPP.
Am I overlooking sth.? Do I need to configure the websocket by myself? Do I need to fill in the password in mywallbox? Where would I set a password in HA?
You must think I'm stupid. I'd be very thankful for any help.
Fred
PS: I rebooted all components several times.
Beta Was this translation helpful? Give feedback.
All reactions