serkri / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
71 stars 27 forks source link

Change serial number when update to 1.5.1 #85

Closed Xnygra closed 1 year ago

Xnygra commented 1 year ago

My serial number where changed to a new serial number when update to 1.5.1. Not sure if it really impacts anything, but i had to change the local url to the new serial number. The new serial number is only, to my knowledge, found under its name on the wifi network. Could be an issues if you need to claim a warranty repair I guess.

dingo35 commented 1 year ago

I cannot reproduce this; it is strange because the serial number is calculated from the MAC address, and AFAIK this algorithm hasnt changed from the original firmware.

Two questions:

  1. from which firmware did you upgrade to 1.5.1?
  2. From what to what changed your serial number?
Xnygra commented 1 year ago
  1. I upgraded from 1.4.4
  2. My serial number was 05455, which is also on the physical label on the unit, to 49475.

I noticed, if it matters, that when i had my original serial number, the leading 0 was omitted in the network wifi name and the URL, so it was "smartevse-5455.local"

dingo35 commented 1 year ago

Very interesting! Turns out that when your SmartEVSE is turned on, it calculates a 5 digit serial number from the MAC address, and uses that to put up the AP for wifi configuration. And later on it calculates a 4 digit serial number from a pre-programmed value. To prevent confusion I disabled the second number, but now you say the second one is on the physical label, my conclusion is that I made the wrong decision....

1.5.2RC.zip Would you be so kind to test the included firmware.bin (spiffs.bin has not changed); it should give you back your "old" serial number, and hopefully it still gets recognized by the HomeAssistant component....

Xnygra commented 1 year ago

Yes, got my old serial number. perfect, thanks. But still not working with the HA component (ha-SmartEVSEv3) serial number not recognised when typing the 5 digit, with the leading 0, when omitting that and typing the last 4, 5455 it gets recognised but only leds me to a new window with the only option to "Close" and no action is taken.

dingo35 commented 1 year ago

That is strange, it should bring you to the (standard) window where the area for the device can be chosen. I have one other user with the same problem, but I can't reproduce it. Can you post your logs (grep hass /var/log/syslog or systemctl status home-assistant@homeassistant ) ?

dingo35 commented 1 year ago

Also you could re-download the custom component files from github, the old version used the OS'es ping command to discover the device, that dependency is removed in the newest version....

Xnygra commented 1 year ago

got the HA Plugin to work now, not sure how, but the last try it said it was already configured, and true, there it was.

I tried to get the logs for you, but did not get your commands to work in the CLI. Sorry, but Linux is far from my knowledge.