Haverland Radiators Smart Box Integration

Hi, I pushed my working smartbox version to this two repos:

You need to add the first repo to HACS.

I hope it helps.

1 Like

Thanks for sharing. Iā€™ve made some updates to fix the deprecating errors in the logs

1 Like

Great! I made a PR to merge the changes :wink:.

Let me know if I can help with anything.

1 Like

Thanks. Iā€™m by no means a coder so I canā€™t guarentee my changes are accurate. It did clear the errors in the home assistant logs and I still have control over my radiators.

Hi Alberto, Dave

I just tested the davefrooney version for my smartbox, by replacing the old one from graham and everything is working fine on my test platform (second instance of ha on docker on pi4), no more warningsā€¦
Will move it to my active instance if no errors show up.

Thanks for doing this, hopefully itā€™ll live a lot longer nowā€¦

A8

Iā€™m so glad it works!

Hi there

Im new hereā€¦ and new on codingā€¦

So thereā€™s any chance on HJM heaters? Read some people saying not workingā€¦ or some difficultiesā€¦

And maybe I will need a guide (if system available) to do the integration on my systemā€¦

Hi,

HJM heaters works with this integration. Just follow the guide.

well will tryā€¦ follow the guide. As im not too advance on that matterā€¦

or any matter :sweat_smile:

Iā€™m really sorry. I canā€™t get past the first line of the installation instructions (the python bit). Iā€™m new to all this & have yet to successfully get anything working thatā€™s not from HACS. Any good pointers on really basic instructions? Even YouTube videos seem to start at a point more advanced than I am

wellā€¦ not easy to a new guy implement the thingsā€¦

but understandā€¦

btw how to get basic_auth_creds from HJMā€¦

well with some effort ā€¦ IĀ“m able to get it on Google Chrome using DevTools ā†’ Network ->Headers ā†’ Authorization

you need to check if you have pythonā€¦

probably you have itā€¦ (check some YouTube videos) verify if have pythonā€¦ install hacs. and all you need

like Iā€™ve Donneā€¦

well im stuck right nowā€¦

Just install, reboot and so but now LOG error

Logger: homeassistant.setup
Source: setup.py:404
First occurred: July 22, 2024 at 11:50:03 PM (1 occurrences)
Last logged: July 22, 2024 at 11:50:03 PM

Error during setup of component smartbox
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 964, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1060, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect
    self.sock = conn = self._new_conn()
                       ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ebe27e0>: Failed to establish a new connection: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 829, in urlopen
    return self.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 829, in urlopen
    return self.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 829, in urlopen
    return self.urlopen(
           ^^^^^^^^^^^^^
  [Previous line repeated 5 more times]
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 801, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 594, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='%3capi-hjm%3e.helki.com', port=443): Max retries exceeded with url: /client/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ebe27e0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/smartbox/__init__.py", line 95, in async_setup
    devices = await get_devices(
              ^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartbox/model.py", line 276, in get_devices
    session = await hass.async_add_executor_job(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/smartbox/session.py", line 43, in __init__
    self._auth(
  File "/usr/local/lib/python3.12/site-packages/smartbox/session.py", line 55, in _auth
    response = self._requests.post(
               ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='%3capi-hjm%3e.helki.com', port=443): Max retries exceeded with url: /client/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ebe27e0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

Reading above posts, canā€™t find the solution or what causing this issue

Can you share your config?

sureā€¦

and yes this is a very simple HA setupā€¦ only a few automations triggers (I donā€™t have nothing visual ) I canā€™t follow YouTube guys and do something niceā€¦ already try to pay some guy to helpā€¦ but very very expensive

You need to remove the <> from the config file and restart

1 Like

:flushed: :flushed: :flushed: :flushed: :flushed: :rage: :rage: :rage: :face_with_symbols_over_mouth: :face_with_symbols_over_mouth: :face_with_symbols_over_mouth: :face_with_symbols_over_mouth:

reallyā€¦ now I just compare with above postsā€¦ Maybe re-write instructionsā€¦ Im so stupid!

it worksā€¦ need to buy new glasses

I have tried again.
I get this error - The ā€˜smartboxā€™ integration does not support YAML setup

Once again, any help gratefully received. I seem to be struggling at the most basic level

donā€™t remember for sureā€¦ but I think its okā€¦
Maybe you can share some picture (may help me remember) or just wait for expertsā€¦