NIBE Uplink API component (non S-series)

Thanks!! That did the trick.

Hi!
This one gives me a bit of an issue:

If i select anything else than boost_three_hours i only setts it to off when i check the nibe app. If i set it to boost_three_hours it sets it to boost_one_time in the nibe app.
Do i miss any thing here?

It seems I canā€™t fetch the auth token. Two errors that seem relevant below. Running Hassio 0.90.1.

Sat Mar 23 2019 18:04:59 GMT+0100 (centraleuropeisk normaltid)
Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

Log Details (ERROR)
Sat Mar 23 2019 18:05:07 GMT+0100 (centraleuropeisk normaltid)
Error on converting code
Traceback (most recent call last):
  File "/config/custom_components/nibe/config.py", line 87, in async_step_auth
    await self.uplink.get_access_token(user_input['code'])
  File "/config/deps/lib/python3.7/site-packages/nibeuplink/__init__.py", line 285, in get_access_token
    await raise_for_status(response)
  File "/config/deps/lib/python3.7/site-packages/nibeuplink/__init__.py", line 182, in raise_for_status
    headers=response.headers)
aiohttp.client_exceptions.ClientResponseError: 400, message='{"error":"invalid_request"}'

My guess is you are not pasting only the code part.

I realized I had disabled DuckDNS and SSL in favor of the new remote component, but forgot to change the base URL to http://.

I managed to get it working now. :slight_smile:

Just migrated from the old version to the new one on my Hassio 0.90.1
Worked perfectly, no problems whatsoever, thanks @elupus!

@elupus any thoughts on adding support for custom_updater? https://github.com/custom-components/custom_updater

Nah. Just keep the git repo in your config, then an update is just a ā€˜git pullā€™ away.

A heads up. 0.93 breaks config flow for component so you canā€™t set it up right now. It should still work if it is already configured.

Issue tracking this here: https://github.com/elupus/hass_nibe/issues/36

0.93 is safe. It will break in 0.94. So I have some time to fix at least :slight_smile:

Hi,

Iā€™ve just installed the hass_nibe component and exploring it, but are getting a notification saying that nibe.fan could not be set up. Any clues what could be wrong?

Iā€™m running HA 0.93 on Hassio.

I get the exact same issue

Hi,

Iā€™m new to home assistant, tried hass.io and hassbian but just canā€™t get it to work, could anyone give me a step by step for either hassian or hass.io? Thanks!

@Berjastein

All info in the GitHub page

Thanks for reply, i got it installed, all i have to do is put ā€œnibe:ā€ in configuration.yaml file then it should run?

Anynone got a clue why Iā€™m getting a notification saying that nibe.fan could not be set up?
I enabled logging but it didnā€™t give me much more information.

2019-06-05 20:43:58 INFO (MainThread) [homeassistant.setup] Setting up fan
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=turn_on>
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=turn_off>
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=toggle>
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=set_speed>
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=oscillate>
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=fan, service=set_direction>
2019-06-05 20:43:58 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds.
2019-06-05 20:43:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=fan>
2019-06-05 20:43:58 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform nibe: Platform not found.

Just checked the repo and noticed the latest commit. Fan is working now! :slight_smile:

I didnā€™t read this before upgrading to 0.94. Couldnā€™t find in git if this was fixed or not?

It should have been fixed.

1 Like

Ok, thanks I need to update my files then.

edit: files updated and its working again! thanks for the awsome job you do!