Hi, carlituxman, I think you’re not using my implementation but the old one from graham33. I don’t use TEMP_CELSIUS in mine but the modern UnitOfTemperature.CELSIUS.
I just publish the first release since Graham33 left and I took over maintenance. This release just fixes my Github CI and bumps the minimum Home Assistant version to 2024.2.0
Please update to this release to keep everything working.
Same for me, your latest version works well.
I used a version of davefrooney forked from yours but this version is not updated, and I got with it the same error “TEMP-CELSIUS”
Any help with my error? im use elnur acm and power meter.
Thanks
Registrador: homeassistant.setup
Fuente: setup.py:416
Ocurrió por primera vez: 07:54:39 (1 ocurrencias)
Última vez registrado: 07:54:39
Error during setup of component smartbox
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File “/config/custom_components/smartbox/init.py”, line 95, in async_setup
devices = await get_devices(
^^^^^^^^^^^^^^^^^^
…<9 lines>…
)
^
File “/config/custom_components/smartbox/model.py”, line 288, in get_devices
await create_smartbox_device(
…<6 lines>…
)
File “/config/custom_components/smartbox/model.py”, line 313, in create_smartbox_device
await device.initialise_nodes(hass)
File “/config/custom_components/smartbox/model.py”, line 63, in initialise_nodes
status = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._session.get_status, self._dev_id, node_info
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.13/site-packages/smartbox/session.py”, line 154, in get_status
return self._api_request(
~~~~~~~~~~~~~~~~~^
f"devs/{device_id}/{node[‘type’]}/{node[‘addr’]}/status"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/local/lib/python3.13/site-packages/smartbox/session.py”, line 108, in _api_request
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/site-packages/requests/models.py”, line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api-elnur.helki.com/api/v2/devs/5bfcabd3d880xxxxx/pmo/9/status
api_name: api-elnur
username: [email protected]
password: f8xxxx
session_retry_attempts: 20 # how many times to retry session REST operations
session_backoff_factor: 1.0 # how much to backoff between REST retries
socket_reconnect_attempts: 20 # how many times to try reconnecting the socket.io socket
socket_backoff_factor: 1.0 # how much to backoff between initial socket connect attempts
device_ids:
Why basic_auth_creds not is correct? im check several times in chrome inspector and always its the same token (obviously the xxxxx of the end not is part of the token), im try with and without == of the end.
The device id is the device indicated in the aplication is a Elnur G control hub.
In the next released I’ll add the configuration throught the UI thanks to @Delmael. For now, it’s only translated to spanish. I you want to translate to your own language, please, open a PR with the new file.
401 Client Error: Unauthorized for url: https://api-haverland.helki.com/client/token
I’m almost certain my details are correct, I have manually connected myself using those details but HA won’t work. Is it because my HA is running on an unsecure http and not https? Would really appreciate any help that could be given.