Custom_updater and tracker-card not reporting correctly

ok, I see my mistake now. i was linking to the raw card file in my config.yaml rather than to the tracker file :persevere:

@ludeeus

I was using custom cards for the gauge and alarm panel but now that they have been adopted ‘officially’ how do I remove them from my tracker card?

I have removed the reference to them from the resources: section and deleted the custom code but they still appear on the tracker card.

And I have done a restart.

Hi @ludeeus,

what could be the reason the component @xirixiz’s mijnafvalwijzer isn’t displayed in the list? I have this configured:

component_urls:
  - https://raw.githubusercontent.com/robmarkcole/Hue-sensors-HASS/master/custom_updater.json
  - https://raw.githubusercontent.com/pnbruckner/homeassistant-config/master/custom_components.json
  - https://raw.githubusercontent.com/xirixiz/home-assistant-config/master/custom_updater.json 

but only the first 2 components are displayed (non-lovelace and lovelace). My component is on version @ Version : 1.0.2 while the json link clearly displays there s an update available

{
    "sensor.hue": {
      "updated_at": "2018-06-09",
      "version": "1.1.3",
      "local_location": "/custom_components/sensor/mijnafvalwijzer.py",
      "remote_location": "https://raw.githubusercontent.com/xirixiz/home-assistant-config/master/custom_components/sensor/mijnafvalwijzer.py",
      "visit_repo": "https://github.com/xirixiz/home-assistant-config/",
      "changelog": "https://github.com/xirixiz/home-assistant-config/releases/latest"
    }
}

though, remarkably, it states this while referencing sensor.hue…?

sensor.hue updated to sensor.mijnafvalwijzer. I copied it from an example and forgot to change sensor.hue…

happens…

still, the component tracker still doesn’t show up with an update, not does it list your component at all?

35

Slightly unrelated but what theme is that?
I like the flat buttons :slight_smile:

Ha, that’s my Matrix theme, I use when in developer mode … :wink:

You must know what is coming next…?

Can you share it? :wink:

sure, this one’s for Neo (and Trinity of course…)

matrix:
  name: 'Matrix'
  # MyVariables
  base-hue: '120' #Controls the base (and accent) color hue (0-360) | 0=Red 60=Yellow 120=Green 180=Cyan 240=Blue 300=Magenta 360=Red
  base-sat: '16%' #Controls the saturation of the theme (0%-100%) | 0%=Grey 100%=Full Saturation
  # MyVar
  huesat: 'var(--base-hue), var(--base-sat),'
  # Primary Color
  primary-color: 'hsl(var(--huesat) 20%)'
  # Backgrounds
  primary-background-color: 'var(--primary-color)'
  secondary-background-color: 'hsl(var(--huesat) 16%)'
  paper-listbox-background-color: 'var(--primary-color)'
  paper-card-background-color: 'hsl(var(--huesat) 12%)'
  paper-dialog-background-color: 'var(--paper-card-background-color)'
  table-row-background-color: 'hsl(var(--huesat) 12%)'
  table-row-alternative-background-color: 'hsl(var(--huesat) 10%)'
  # Devider
  divider-color: 'hsla(0, 0%, 0%, 0)'
  dark-divider-opacity: '0'
  light-divider-opacity: '0'
  # Text colors
  primary-text-color: 'hsl(var(--huesat) 60%)'
  text-primary-color: 'hsl(var(--huesat) 60%)'
  secondary-text-color: 'hsl(var(--huesat) 60%)'
  disabled-text-color: 'hsl(var(--huesat) 70%)'
  sidebar-text_-_color: 'hsl(var(--huesat) 90%)'
  sidebar-text-color: 'hsl(var(--huesat) 90%)'
  paper-card-header-color: 'hsl(var(--base-hue), 90%, 50%)'
  # Text Adjustments
  paper-font-headline_-_letter-spacing: '-0.5px'
  paper-font-headline_-_font-weight: '500'
  paper-font-body1_-_font-weight: '500'
  # Nav Menu
  paper-listbox-color: 'hsl(var(--huesat) 50%)'
  paper-grey-50: 'hsl(var(--huesat) 50%)'
  paper-grey-200: 'hsla(var(--huesat) 26%)'
  # Paper card
  paper-item-icon-color: 'hsl(var(--huesat) 30%)'
  paper-item-icon-active-color: 'var(--paper-item-icon-color)'
  paper-item-icon_-_color: 'var(--paper-item-icon-color)'
  paper-item-selected_-_background-color: 'hsla(0, 0%, 0%, 0.2)'
  paper-tabs-selection-bar-color: 'hsla(0, 0%, 0%, 0.2)'
  # Labels
  label-badge-red: 'hsla(0, 0%, 0%, 0)'
  label-badge-border-color: 'var(--label-badge-red)'
  label-badge-background-color: 'var(--paper-card-background-color)'
  label-badge-text-color: 'var(--primary-text-color)'
  # Shadows
  shadow-elevation-2dp_-_box-shadow: 'inset 0px 0px 0px 4px hsl(var(--huesat) 18%)'
  shadow-elevation-16dp_-_box-shadow: 'inset 0px 0px 0px 4px hsl(var(--huesat) 28%)'
  # Switches
  paper-toggle-button-checked-button-color: 'hsl(var(--base-hue), 90%, 50%)'
  paper-toggle-button-checked-bar-color: 'hsl(var(--huesat) 25%)'
  paper-toggle-button-unchecked-button-color: 'hsl(var(--huesat) 25%)'
  paper-toggle-button-unchecked-bar-color: 'hsl(var(--huesat) 5%)'
  # Sliders
  paper-slider-knob-color:      'hsl(var(--base-hue), 90%, 50%)'
  paper-slider-knob-start-color: 'hsl(var(--base-hue), 80%, 25%)'
  paper-slider-pin-color:      'hsl(var(--base-hue), 90%, 50%)'
  paper-slider-active-color:      'hsl(var(--base-hue), 90%, 50%)'
  paper-slider-container-color: 'hsl(var(--huesat) 28%)'
  paper-slider-secondary-color: 'hsl(var(--huesat) 90%)'
  paper-slider-disabled-active-color: 'hsl(var(--base-hue), 80%, 25%)'
  paper-slider-disabled-secondary-color: 'hsl(var(--base-hue), 80%, 25%)'
  paper-dialog-color: 'hsl(var(--base-hue), 20%, 80%)'
2 Likes

Hit the CHECK button, and it should show now

no it doesn’t yet:

45

did a reload, restart…

I did only check the json file… you need to contact the developer of this sensor.
the version tag inside the file is wrong
https://github.com/custom-components/custom_updater/wiki/components

Ok thank you @ludeeus, turning to @xirixiz again :wink: would you please check the version tag so the custom updater card can run and update the custom component?

Hi all,

I’m trying to setup those custom component and card without success:

Here’s my config file :

custom_updater:
  show_installable: false
  hide_sensor: false
  track:
   # - components
    - cards
   # - python_scripts
  card_urls:
    - https://raw.githubusercontent.com/custom-cards/tracker-card/master/tracker-card.js
    - https://raw.githubusercontent.com/ciotlosm/custom-lovelace/blob/master/monster-card/monster-card.js 

It says invalid config.

Then on my lovelace-uiI can see the tracker card, but without any row.

Can someone please support me?

sorry, but what exactly should be changed?

None of your card_urls are valid

This part are considered advanced configuration, this option is here to provide support for third-party cards, do not add anything here unless a card dev has made a special json file for this you can point to, putting in a URL directly to a card here will not work, and can potentially cause the component to fail.

Both those cards are tracked by default, so you can remove the card_urls section.
If you have an issue after that open a issue here https://github.com/custom-components/custom_updater/issues

If you look at the link I posted with it, it states that the version needs to be stated in one of the expecting formats

  • VERSION = 'x.y.z'
  • __version__ = 'x.y.z'
1 Like

been banging my head against the wall checking the settings in the custom component tracker or the json file it references… the error is in the custom components itself which has no correct version entry.
@xirixiz please add __version__= '1.1.4' to the custom component. Ill cross post in the components thread too

It uses regex to determine the the local version, feel free to make a PR that allows it to check for the one you have/had in the file
https://github.com/ludeeus/pyupdate/blob/master/pyupdate/ha_custom/custom_components.py#L110

not sure what to do here, I changed(added) the version in my local file and now your card sees the update correctly.

01

If I update now, the new local file won’t have the correct version again, so I think the best option will be if the author adds it to his component.

Yes, he/she will have to do that to persist the tag.