I have been trying to get this working with hass 0.53 but the log keeps throwing this at me, does anyone have any suggestions?
2017-09-09 19:42:22 ERROR (MainThread) [homeassistant.setup] Error during setup of component nibe
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py”, line 194, in _async_setup_component component.setup, hass, processed_config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup value = future.result() File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run result = self.fn(*self.args, **self.kwargs)
File “/home/homeassistant/.homeassistant/custom_components/nibe.py”, line 86, in setup hass.data[DOMAIN] = NibeUplink(hass, config)
File “/home/homeassistant/.homeassistant/custom_components/nibe.py”, line 152, in init submit_caption = ‘Set Url’
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/configurator.py”, line 79, in request_config ).result()
AttributeError: ‘str’ object has no attribute ‘loop’
When clicking on the Authorize url I get to a page saying
Error while reading message ‘DotNetOpenAuth.OAuth2.Messages.EndUserAuthorizationRequest’ parameter ‘redirect_uri’ with value: MYURL
Pasting link in config windows gives me same error as @pgreberg.
For redirect URL I just put same dyndns url I have for HASS. Is this correct?
Your redirect url looks to be wrong. Nibe thinks you have entered the value MYURL. Not a full url. You must have a full url with http:// or https:// prefix . They must be identical in your configuration.yaml and the setup at the nibe homepage.
Hi, I’ve been trying to add this plugin to my Hass.io V0.54.0
Got the URL and everything, but the plugin doesn’t seem to start now, it gives this error:
2017-09-26 21:34:33 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform nibe
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 159, in _async_setup_platform
None, platform.setup_platform, self.hass, platform_config,
AttributeError: module ‘custom_components.sensor.nibe’ has no attribute ‘setup_platform’
2017-09-26 21:34:37 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.
Without any problems I installed it on hassio 0.55.0 just an hour ago. Since I can’t understand your error message I just tell you what I did. Maybe you will find a difference.
On https:// api.nibeuplink .com I created an application with http://localhost:8123/ as the Callback URL
Created the folder custom_components in hassio config folder
Hi Dansve,
Thanks for your great explanation. I copied what you did on a new installation (bought a second sd-card) to see if it would work. It did!
After checking to see what went wrong on my previous setup, I noticed I mixed up the two files, both called nibe.py. The file in the folder ‘sensor’ was the same as the one in the custom_component folder, because of directly doing a ‘git clone’ from the custom_component folder. This creates a new folder in that folder, which is not the correct setup.
Thanks again for your help!
Alwik
And I just noticed what I misunderstood. The URL to be entered is the local hass URL that follows the API permission page, which includes the requested “CODE” parameter. Oh well, retracing steps is good sometimes…
Tried creating some kind of request at Github, not sure I did it correctly but I added electricity price so that it is identified as a sensor value instead of some kind of state and also added underscores to the device_state_attributes since it is then easier to create template sensors from those. Having spaces creates unnecessary problems in hass.
Ok, used Groups to fix that.
Another question, on my Hassbian (did first try it on my Hassio) I use SSL certificate (https) and I can’t get the authorize to work, I get an error message every time.