custom-components / custom_updater

[DEPRECATED]📦 A component which allows you to track and update custom cards/components and python_scripts
MIT License
166 stars 66 forks source link

Component not found: custom_updater #53

Closed woody4165 closed 6 years ago

woody4165 commented 6 years ago

Version of the custom_component 3.1.7 Describe the bug When I add

custom_updater:
  show_installable: true
  hide_sensor: true
  track:
    - components
    - cards
    - python_scripts

or just:

custom_updater:

I get this error Component not found: custom_updater

removing it, check is ok.

custom_updater.py is in config/custom_components folder

What else can I check?

Do I need to make some modification in the python script?

Thanks

ludeeus commented 6 years ago

What is the first line in custom_updater.py? Also with your config adding python_scripts like that does absolutely nothing

woody4165 commented 6 years ago

Hi @ludeeus

My first lines in custom_updater.py are:

"""
A component which allows you to update your custom cards and components.

For more details about this component, please refer to the documentation at
https://github.com/custom-components/custom_updater
"""
import logging
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import track_time_interval

VERSION = '3.1.7'

What do you mean by "Also with your config adding python_scripts like that does absolutely nothing" ?

Thanks

woody4165 commented 6 years ago

I have tried again to add it into configuraion.yaml

custom_updater:   # https://github.com/custom-components/custom_updater/wiki/Installation
  track:
    - components
    - cards
    - python_scripts
  card_urls:
    - https://github.com/ciotlosm/custom-lovelace/tree/master/thermostat-card/thermostat-card.lib.js
    - https://github.com/ciotlosm/custom-lovelace/tree/master/thermostat-card/thermostat-card.js
    - https://raw.githubusercontent.com/bramkragten/custom-ui/master/updater.json
    - https://raw.githubusercontent.com/custom-cards/tracker-card/master/tracker-card.js
    - https://github.com/thomasloven/lovelace-slider-entity-row/blob/master/slider-entity-row.js
    - https://github.com/thomasloven/lovelace-toggle-lock-entity-row/blob/master/toggle-lock-entity-row.js
    - https://raw.githubusercontent.com/kuuji/button-card/master/tracker.json

and now I don't get any error message during check.

Now I see the card in Lovelace but I don't see anything.

My ui-lovelace.yaml is

          - type: custom:tracker-card
            title:
            trackers:
              - sensor.custom_card_tracker
              - sensor.custom_component_tracker

Should I close this issue or modify the title?

Thanks

ludeeus commented 6 years ago

Read https://github.com/custom-components/custom_updater/wiki/Installation#configuration-option-card_urls Adding .js files under card_urls can make it fail. The Card will not get any data untill your sensors work.

woody4165 commented 6 years ago

Thanks!

It's working now!

After some testing I just added those two lines that works fine.

  card_urls:
    - https://raw.githubusercontent.com/bramkragten/custom-ui/master/updater.json
    - https://raw.githubusercontent.com/kuuji/button-card/master/tracker.json

Thanks again. Now I can close the issue.