CJNE / ha-myenergi

Home Assistant integration for MyEnergi devices
MIT License
147 stars 33 forks source link

Firmware versions not updated in Device Info page #385

Open markcocker opened 1 year ago

markcocker commented 1 year ago

Version of the custom_component

VERSION = "0.0.23"

Describe the bug

I updated the Eddi firmware from 5.166 to 5.168. Sensor sensor.myenergi_eddi_13216250_firmware was updated correctly as shown in the logbook:

image

However the Device info page at URL https://localhost:8123/config/devices/device/81969428db84748bd0f6bbc7fffd3a66 also contains the firmware version and it was updated as shown below:

image

I tried in a private browser tab and got the same results.

LeiChat commented 1 year ago

The firmware shown on the Device Info card and the value shown on the sensor are the same for me. Perhaps there's a delay in the Device Info card value being updated? Have you tried reloading YAML and/or restating Home Assistant?

image

markcocker commented 1 year ago

I tried Setting > Restart Home Assistant > Quick reload and the firmware version on the device info page was not updated.

I tried Setting > Restart Home Assistant > Restart Home Assistant and the firmware version on the device info page was updated.

Is it expected to restart HA before this page is updated?

LeiChat commented 1 year ago

Not sure, sorry. It seems more common for changes to HACS integrations to require a restart than some of the core integrations.

G6EJD commented 1 year ago

In the Readme on line 3 it infers a restart of HA after changes

markcocker commented 1 year ago

That section of the readme is about installing the custom component. This issue is unrelated to installation.

Is this page relevant? https://developers.home-assistant.io/docs/architecture/devices-and-services says 'The Entity Platform helper manages all entities for the platform and polls them for updates if necessary`

reedy commented 1 year ago

Possibly related to #375 ?

trizmark commented 1 year ago

I thought this would be related to #375, but it's not. The entity holding the FW version updates correctly, but the device info page shows the old FW version until restart. I am checking why the update does not happen as you should not need to restart HA for something like this.