I’d like to create a card on my dashboard to quickly see if one of my devices need to be upgraded.
It does work well for HA and my Pi-Hole, but I’d like to do similar thing to check if one of my UniFi needs a firmware upgrade (I have an USG, 4 switches and 2 APs).
I can see the current firmware of my devices in the UniFi integration as illustrated below.
But, I cannot see it in the sensor state.
Do you know how can I collect the value ?
But then, even if I’m able to get the current firmware value, I don’t know to what can I compare it in order to know if a new version is available… (like I did for HA by comparing sensor.installed_version and sensor.latest_available_version). Any advice is more than welcome Thanks
Since the latest firmware is 4.3.22.11330 and not 4.3.21.11325 and one of your attributes states that “upgradable” is “true” you can use that attribute to fire an action that there is an update available.
How did I not see this attribute Thanks!
The 2 UniFi devices that actually have a firmware update available are the 2 where I see this attribute “upgradable: true”.
The other UniFi devices that don’t have an update available don’t have this attribute at all.
Have to admit that I never knew that the “upgradable” attribute was there, until I saw it in this post, lol!
I think we helped each other out, so thank you too!
Ok so I created something very basic (in fact, like all that I’ve done so far in my HA dashboard… ) to see a green color on the custom button card of each of my UniFi device if an upgrade is available (using the attribute).
Sure, here it is. Again, I’m still discovering and learning about HA so my configuration is very basic. Sorry about that.
I use mainly “custom-button” on my dashboard.