a529987659852 / openwbmqtt

Custom component for home assistant supporting openWB wallbox
35 stars 16 forks source link

settings made in HomeAssistant does not change #26

Closed ChristophCaina closed 1 year ago

ChristophCaina commented 2 years ago

Hi, I've created a small Dashboard for the openWB in HomeAssistant, where I've also used some of the items which "should" (?) change settings on the Device.

grafik

Now, I've noticed, the following:

  1. I have changed the setting for "Mindestladestrom" to 6A on the Wallbox. It was previously on 10A
  1. When I change the setting in HomeAssistant to 6A it will change back to 10A after restarting HomeAssistant.
ChristophCaina commented 2 years ago

I have observed this a bit more.

This applies to: "SoC Begrenzung" - which has been set to 80% "Mindestladestrom" - which has been set to 6A and pretty sure also for the others, which I haven't changed / tested yet.

ChristophCaina commented 2 years ago

I did some more tests on that issue:

  1. Changes applied in openWB were visible in HomeAssistant (as mentioned in comment 2.
  2. After rebooting HomeAssistant, these changes were reset in HomeAssistant
  3. After rebooting openWB the changed values were persistant in HomeAssistant
  4. Changing the settings in HomeAssistant does change the settings in openWB
  5. After rebooting HomeAssistant, the changes were reset in HomeAssistant again
  6. After -reopen the openWB settings, the changes made in HomeAssistant were not persistant.

-- it requires a reboot of the openWB to "apply" the changes (without reboot, they are fix in openWB but HomeAssistant will always show the old settings) -- HomeAssistant can change the settings on the openWB but does not save them.

ChristophCaina commented 2 years ago

maybe, the better question:

a529987659852 commented 2 years ago

Found the root cause: Posted to the wrong MQTT topics. I'm currently solving this issue and post an update.