amsreader-firmware icon indicating copy to clipboard operation
amsreader-firmware copied to clipboard

Support for update entities in Home Assistant introduced in 2022.4

Open bjornsivertsen opened this issue 3 years ago • 7 comments

As a person that rarely visits the AMS interface, but instead pulls the data into my Home Assistant instance through MQTT, I might miss important updates. From version 2022.4, Home Assistant will support update entities.

This could allow the visibility within Home Assistant, if an update is available.

In addition, and IF(!) AMS will support 1-click-to-update (rather than uploading a downloaded firmware and installing), you would be able to initiate the update from Home Assistant.

bjornsivertsen avatar Apr 06 '22 07:04 bjornsivertsen

ESP32 version of the firmware can self update. If anyone can provide the necessary JSON to publish on MQTT, I can implement the changes.

gskjold avatar Apr 06 '22 08:04 gskjold

ESP32 version of the firmware can self update. If anyone can provide the necessary JSON to publish on MQTT, I can implement the changes.

Is the same functionality planned for ESP8266? Although I am more than happy with the current approach.

bjornsivertsen avatar Apr 06 '22 09:04 bjornsivertsen

Yes, but I've had some issues getting it to work properly. I have not given up though.

gskjold avatar Apr 06 '22 09:04 gskjold

Please make the auto updating optional and not forced when implemented, it can surely be the default but if running snapshots or modified versions forced updates is undesirable. Same goes for updates that might break some configuration.

StarkJohan avatar Aug 31 '22 17:08 StarkJohan

I cannot find any specific examples on how this should be published on MQTT. If someone can reference a proper example, I will look into this.

gskjold avatar Sep 30 '22 17:09 gskjold

Thank you, I will have a look!

bjornsivertsen avatar Oct 06 '22 13:10 bjornsivertsen

There are examples here: https://www.home-assistant.io/integrations/update.mqtt/

bardahlm avatar Nov 03 '22 15:11 bardahlm