Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.36k stars 253 forks source link

Update notification in HA when new version is available #1759

Open edwardtfn opened 7 months ago

edwardtfn commented 7 months ago

I'm not sure if it's technically feasable but HA gives all kinds of update-notifications but not when this bundle (TFT firmware, blueprint and ESP firmware) are updated. That's kind of odd. Maybe a simple integration that polls the versions would help?

_Originally posted by @MichaelHeimann in https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/1758_

edwardtfn commented 7 months ago

In fact, the notification you currently have is connected to the entity update.<<Panel name>>_firmware, which is managed by ESPHome (not our code) and indicate when a new version if ESPHome (compiler) is available, so it is quite disconnected from our project. A notification about new version of our project available would be possible using Home Assistant notification area, which is not commonly used for this purpose, but this would require the panel pulling our GitHub repository from time to time, which might not be possible in some cases where the panel is isolated from the Internet, but also may cause discomfort in some people (although for those we could have a switch to enable/disable this). I've been thinking about this as part of Simplifying User Experience for NSPanel Firmware as access to Internet would make many things easier for entry level users, but still having to mature this a bit more.

Dust-E commented 2 months ago

Hi @edwardtfn I'm actually looking for the same solution. The Github integration in HA gives you the option to create a number of sensors per repository via the Configure button I think if you give a separate message in this topic that you have uploaded the TFT, you could trigger it If you would like to do that I can see if I can test this Let me know

edwardtfn commented 2 months ago

Home Assistant v2024.7 (to be released) and ESPHome v2024.6 enables an update entity for the ESPHome part, but that would require a pre-built firmware (which we already have in experimental phase), however that is only for the ESPHome side. The issue about using the Github integration is that every user would have to install that manually. 😩 As I mentioned before, using persistent notification for this is quite easy, but a bit odd. Maybe we can enable/disable those notifications via Blueprint. Anyhow, we probably don't want the panel pooling something in the Internet all the time without user's consent.

Dust-E commented 2 months ago

I like to see that you go for the best. :-) For the time being, it wouldn't matter to me for this interim solution, which I can understand if you don't want this for a small group of people.