Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balboa Integration not working anymore, can't also delete #69517

Closed
h0jeZvgoxFepBQ2C opened this issue Apr 7, 2022 · 14 comments
Closed

Balboa Integration not working anymore, can't also delete #69517

h0jeZvgoxFepBQ2C opened this issue Apr 7, 2022 · 14 comments

Comments

@h0jeZvgoxFepBQ2C
Copy link

The problem

Tried to delete my Balboa integration after the latest upgrade to 2022.04, but doesn't work

What version of Home Assistant Core has the issue?

2022.4

What was the last working version of Home Assistant Core?

2022.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Balboa

Link to integration documentation on our website

No response

Diagnostics information

Logger: aiohttp.server
Source: custom_components/balboa/const.py:12
Integration: Balboa Spa Client
First occurred: 07:57:04 (1 occurrences)
Last logged: 07:57:04
Error handling request

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 112, in delete
    result = await hass.config_entries.async_remove(entry_id)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 858, in async_remove
    await entry.async_remove(self.hass)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 510, in async_remove
    component = integration.get_component()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 584, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/balboa/__init__.py", line 21, in <module>
    from .const import (
  File "/config/custom_components/balboa/const.py", line 12, in <module>
    from homeassistant.components.fan import SPEED_HIGH, SPEED_LOW, SPEED_OFF
ImportError: cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/__init__.py)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

> ImportError: cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/__init__.py)

Additional information

No response

@thecode
Copy link
Member

thecode commented Apr 7, 2022

According to the log you are using Balboa as a custom component: File "/config/custom_components/balboa/const.py" and not the core integration (I have no idea why). If you need the custom integration please create an issue upstream: https://github.com/garbled1/balboa_homeassistan

To move to core integration remove the folder balboa from /config/custom_components

If you are in need of support I highly recommend to try our Community Forum or join our Discord chat server.
We use GitHub for tracking issues with Home Assistant Core itself, not for providing support.
Thanks! 👍

@h0jeZvgoxFepBQ2C
Copy link
Author

h0jeZvgoxFepBQ2C commented Apr 7, 2022

I'm using the custom integration since the default integration doesn't offer the light switch and many other sensors!

Bildschirmfoto 2022-04-08 um 00 48 46

But thanks, fixed it with this knowledge!

@h0jeZvgoxFepBQ2C
Copy link
Author

Maybe this custom integration could be merged with the default integration? it works really fine in general, also a pending PR fixed my issues with 2022.4

@adamrami
Copy link

Hi
did you manage to fix the Balboa setup in HA with the Custom integration? Or just the regular core integration?
Thanks
/A

@h0jeZvgoxFepBQ2C
Copy link
Author

Yes, it worked out with both ways (custom and native integration).

When using the custom component (more features, sensors) I had to apply the pending PR changes: garbled1/balboa_homeassistan#33

When using the native component, it was necessary to remove the custom component balboa folder, afterwards it worked fine.

@adamrami
Copy link

Thanks for the feedback. Appreciate it!
/A

@h0jeZvgoxFepBQ2C
Copy link
Author

Thanks for your help ❤️

@adamrami
Copy link

adamrami commented Apr 19, 2022

Working for me as well now :) Judging by the Screenshot you have above, it seems like you have the option to control the fan and the lamp as well. Not sure if we have the same Spa, but this is what I see in HA (this is not Custom component) :
Screenshot 2022-04-19 at 14 29 50

@h0jeZvgoxFepBQ2C
Copy link
Author

Yeah, the additional sensors and fan switches are only available via the custom component, not the native home assistant integration => https://github.com/garbled1/balboa_homeassistan

So I don't use the native home assistant integration, only the custom component since I want to control the fans as well (and get additional sensor data).

@adamrami
Copy link

adamrami commented Apr 20, 2022

So I removed the core integration and installed the costume integration via HACS. It went well, but I don't know how to add it to my Dashboard after installing it.
According to the documentation for Costume Integration, I am supposed to add the IP address or hostname of your spa's wifi adapter. And that is where I got stuck, I don't know where the IP is supposed to be entered! Not sure what the next step should be. Thankful for input!

@h0jeZvgoxFepBQ2C
Copy link
Author

After adding the custom component you have to go again to the integrations board, click on the plus button and select again balboa (like with the native integration). Then a window should pop up where you can enter the (preferrably static) IP address of your Spa.

@adamrami
Copy link

adamrami commented Apr 20, 2022

correct I have tried that, and what I get is the following:
Screenshot 2022-04-20 at 16 09 17
g

@h0jeZvgoxFepBQ2C
Copy link
Author

h0jeZvgoxFepBQ2C commented Apr 20, 2022

Yep, you have to apply the changes from the PR which I mentioned above, there is also an open issue/PR on the balboa repo: garbled1/balboa_homeassistan#32

Simply follow this comment: garbled1/balboa_homeassistan#32 (comment)

Edit the mentioned files directly on the server (just overwrite the whole file contents is fine) and restart the server, afterwards the window shouldn't show the error again.

Whole PR is here: garbled1/balboa_homeassistan#33

@adamrami
Copy link

thanks a lot! Now it worked :)
You made my day!

@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants