elupus / hass_nibe

Home Assistant Nibe Uplink Integration
185 stars 54 forks source link

Integrations not working #47

Closed nolenjohan closed 5 years ago

nolenjohan commented 5 years ago

I have a new installation of Hass.io 0.99 and can't add Nibe Uplink, when clicking "Nibe Uplink" in Integrations page (plus sign and choose from list), nothing happens, it jumps directly back to the list of availible integrations. Have rebooted several times and tried again. No luck.

Any ideas?

elupus commented 5 years ago

Hmm. No, Will have to check. But check log, there might be some clue. You have current version of the custom component?

elupus commented 5 years ago

This could be: https://github.com/home-assistant/home-assistant/issues/26720

So first await patch release of HA.

nolenjohan commented 5 years ago

Ok, thanks! Checked my minimal log (Critical) and can see this:

Log Details (WARNING) Thu Sep 19 2019 16:39:05 GMT+0200 (centraleuropeisk sommartid) You are using a custom integration for nibe which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

Seems strange since I did not succeed to integrate it, is it because I have the files in the directory? Or can there be remains from previous backed up files (added to new installation) that fool the system? I removed "Nibe Uplink" from previous installation before copying the files in "Config" share as a backup to be used in new installation.

elupus commented 5 years ago

So by that you mean you are not using latest version?

nolenjohan commented 5 years ago

I'm using the latest version of Hass.io and of your integration (the files downloaded from this page). I regularly take backups of all content in "config" share. Two weeks ago I removed "Nibe Uplink" by delete the integration from within the web-GUI, I also deleted any associated Lovelace lines (since I had made modifications they did not disappear when deleting the integration).

Yesterday my SD-card died... used a new SD-card and "etched" latest Hass.io version to it, after start and being ready I had HA at version 0.99.0. Copied all content of the backup ("config" share) to the new installation, everything back as before.

Tried to add "Nibe Uplink" again, get the issues as described in the start of this thread.

elupus commented 5 years ago

Right. So then let's start by waiting for 0.99.1 release. Since bug mentioned above will likely block adding the integration.

If you don't want to wait install Hass with 0.98 and add integration there, then upgrade to 0.99.

elupus commented 5 years ago

Ps. Check that you backups contain the hidden ".storage" folder. If those where there you should not have needed to add the integration again.

nolenjohan commented 5 years ago

Yes, backups contains the hidden ".storage" folder, though I deleted the integration before I took the backup (I only save one version of backup). All other integrations did appear after copying the backup to the "config" share, like "Philips Hue", "Telldus Live", "UNIFI Controller" etc. without the need to redo the integrations.

nolenjohan commented 5 years ago

Upgraded to 0.99.2 and could add the "Nibe Uplink" integration with successful result, but, there are no sensors, completely empty... screenshot 864

I also receive this error message: screenshot 865

My config in configuration.yaml: nibe: systems:

elupus commented 5 years ago

Check log

nolenjohan commented 5 years ago

screenshot 866

elupus commented 5 years ago

I need the details.

nolenjohan commented 5 years ago

I hope this is sufficient:

2019-09-20 09:39:30 INFO (SyncWorker_15) [homeassistant.util.package] Attempting install of nibeuplink==0.9.1 2019-09-20 09:40:17 INFO (MainThread) [homeassistant.setup] Setting up nibe 2019-09-20 09:40:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component nibe Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component hass, processed_config File "/config/custom_components/nibe/init.py", line 165, in async_setup await async_register_services(hass) File "/config/custom_components/nibe/services.py", line 58, in async_register_services from nibeuplink import SMARTHOME_MODES, SetThermostatModel ImportError: cannot import name 'SMARTHOME_MODES' from 'nibeuplink' (/config/deps/lib/python3.7/site-packages/nibeuplink/init.py) 2019-09-20 09:40:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

Please check your config., notification_id=invalid_config>

2019-09-20 09:40:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

'Authorization was successfull! Entities will now be added.', 'component.nibe.config.error.code': "Couldn't get an access token from code. Further information may be in home assitant log", 'component.nibe.config.abort.already_configured': 'Uplink is already configured', 'component.logi_circle.config.abort.already_setup': 'You can only configure a single Logi Circle account.', 'component.logi_circle.config.abort.external_error': 'Exception occurred from another flow.', 'component.logi_circle.config.abort.external_setup': 'Logi Circle successfully configured from another flow.',

elupus commented 5 years ago

Looks weird. It sort of looks like you have an old version of nibeuplink in your config folder at /config/deps/lib/python3.7/site-packages/nibeuplink

Could you try and delete that folder and restart?

nolenjohan commented 5 years ago

Delete both folders? screenshot 867

nolenjohan commented 5 years ago

Deleted both folders and restarted HA, no errors and now I can find many sensors/devices in "Developer Tools" -> "States", but they are not showing up in the web GUI

elupus commented 5 years ago

Lovelace is not auto generated. You need to create that manually.

nolenjohan commented 5 years ago

Aha, ok! Thanks!

toni1703 commented 3 years ago

Hello My nibe is setup and running...My problem is that if my electrical power is off , when it comes back on my raspberry pi starts faster then the nibe system and the nibe integration in HA does not load (saying in HA unavailable). I would much apreciate a solution to this problem. Thanks in advance.

image