rogro82 / hass-variables

Home Assistant variables component
236 stars 59 forks source link

HACS install creates var directory rather than variable in custom_components #41

Closed marclefevre closed 4 years ago

marclefevre commented 4 years ago

I just installed the integration using HACS and was getting error messages about integration 'variable' not found. I looked in custom_components and found that the directory was named 'var' (the old name, right?). After renaming var to variable, the error messages went away.

snarky-snark commented 4 years ago

The integration in HACS is this integration.

marclefevre commented 4 years ago

I could not find the Variable integration in HACS. I did clear my browser cache with no change.

So, I took the route of installing from the zip file. My original post came from confusion about the name of the integration (variable) and the name of the component (var). I'm still having problems getting it to work.

I deleted ./custom_components/var and re-unzipped the original zip file there. Restarting HA results in the following error:

''' Setup failed for var: Unable to import component: cannot import name 'ENTITY_SERVICE_SCHEMA' from 'homeassistant.helpers.config_validation' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/config_validation.py)

''' There must be something simple I'm forgetting. I had this working on an old server running HA 0.101.3.

Marc

On Fri, Jul 24, 2020 at 7:58 AM snarky-snark notifications@github.com wrote:

The integration in HACS is this integration https://github.com/snarky-snark/home-assistant-variables.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rogro82/hass-variables/issues/41#issuecomment-663525477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAGGZIAO5DUBCS23IVYBYLR5GAQ7ANCNFSM4PGMU3TA .

snarky-snark commented 4 years ago

It sounds like you might be installing an older release.

Just a reminder, you created this issue in the hass-variables repo which has no relation to the integration you seem to be trying to install which is located at this repo:

https://github.com/snarky-snark/home-assistant-variables

marclefevre commented 4 years ago

You are right. Should I start a new issue or continue here?

I have been working on this all day by uninstalling and reinstalling and googling the issues. I finally got it to show up HACS and I have rebooted to finish the configuration but I still get

''' Setup failed for var: Integration failed to initialize. '''

and nothing else to go on. Are there other logs I can look at? Can I bump the verbosity higher? What I have in configuration.yaml is

''' logger: default: info logs: homeassistant.core: info homeassistant.components.mqtt: info '''

Thanks for your help.

Marc

On Sat, Jul 25, 2020 at 11:39 AM snarky-snark notifications@github.com wrote:

It sounds like you might be installing an older release.

Just a reminder, you created this issue in the hass-variables repo which has no relation to the integration you seem to be trying to install which is located at this repo:

https://github.com/snarky-snark/home-assistant-variables

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rogro82/hass-variables/issues/41#issuecomment-663875267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAGGZPJJ32SNUQW35KKEIDR5MDENANCNFSM4PGMU3TA .

snarky-snark commented 4 years ago

It would be best to create a new issue in the home-assistant-variables repo since this repo is unrelated to the integration you are trying to install.

What version of the variable integration are you trying to install? What version of HACS? It sounds like the issue might be with HACS and not this component.

You might try adding config for a variable to see if that changes things. For example,

var:
  x:
    initial_value: 0
marclefevre commented 4 years ago

Starting a new issue in the correct repo.