and the file locations for the custom-cards. As said, I tried HACS some time ago, and then there was some struggle to move to the new location for community, and referencing to these locations. Im still using the ‘old’ location, in the www folder.
About system performance: as always your mileage may vary. I use the HUE integration. that loses the connection to the hub and consequently lights whenever the system gets stressed. At the time, HACS was a serious affecting this, as where the other mentioned CC’s. Since taking these out, things have quieted down significantly.
Getting back to my original question for finding an alternative to HACS, I now have set up GitHub sensors for the custom cards:
still need to find my way to the more-info (now clicking isn’t possible yet), and some way to automatically alert when the {{ state_attr(config.entity,‘latest_release_url’).split(‘tag/’)[1]}} has changed. Seems feasible, but will be for tomorrow…
The mini-media-player-bundle was updated yesterday when I posted this.
It’s not just me. There are plenty of recent posts on the button-card and thread about people THINKING they had a new version but didn’t and as I said, there is a github issue.
Yeah but I have never reverted a card.
Next time I have an update I will post screenshots seeing that seems to be the only proof acceptable to some people. After 3 years I think I know my way around HA pretty well… anyway…
Seems you are well on the way… I was using rest sensors to get the latest tag and then I was parsing the lovelace yaml file to get the current installed. It didn’t ‘do’ anything else other than visually show there was an update available.
not knocking your abilities. I’m just speaking from experience and my understanding of code. Also, I know how it works in regards to updating. It bases its updates on the releases OR the latest fix. The drop down determines that. If you aren’t paying attention to the drop down and update, you could just be installing the same version. Not to mention cache comes into play. If you don’t have a ? at the end of your resource, the browser may not use the update.
So all in all, I’d need to see ALL that information before I say it’s a bug.
There is a github issue with logs etc…
I am actually checking the downloaded code with the previous downloaded code so it’s not a resources issue.
I am well aware how it is supposed to work with releases or latest commit.
If I restart Home Assistant and then tell HACS to reinstall it pulls the right version without changing anything else.
meanwhile I took the last_changed out (since it adds nothing really other than the last time the system is restarted…) and replaced it with the latest commit message, so I can see in a glance what was changed.
#!/bin/bash
cd "$(dirname "$0")"
lovelace_cards=$(cat ui-lovelace.yaml)
darksky_card=$(echo "$lovelace_cards" | grep "dark-sky-weather-card" | head -1 | sed "s/.*\/dark-sky-weather-card.js?v=//")
# Build JSON output
card_installed_string='{"state":"","attributes":{"darksky":"'"$darksky_card"'"}}'
# Home Assistant Config
creds=$(cat abbusage/abbcreds.json)
server=$(echo "$creds" | jq -r '.server')
token=$(echo "$creds" | jq -r '.token')
# Publish to HA with token
curl -X POST -H "Authorization: Bearer $token" \
-H "Content-Type: application/json" \
-d "$card_installed_string" \
"$server"/api/states/sensor.lovelace_card_installed
I had the credentials stored in anoter file along with a token. I also was reading other cards originally but removed them as they were added to HACS but you get the idea. It reads the lovelace yaml file to get the current installed version… just parses resources section.
Id need a way to read the resources.yaml file, and find the version number of each loaded resource, to compare those with the tag my GitHub sensors extract from the repo’s…
not immediately obvious how I should handle the, so please let me think on that …
Yes definitely. When I started with the script I had a bunch of cards in there. I just posted my latest version before I didn’t need it anymore as everything I used was in HACS.
Also… I have been using rest sensors to suck data out of github and didn’t realise there was a github integration I could use. Going to try that as I think the rest sensors slow down ha when it starts - and a bunch of log messages about rest platform taking more than 10 seconds… so thanks.