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

Devices displayed but not present in resailer website #19

Open
Delmael opened this issue Feb 14, 2025 · 5 comments
Open

Devices displayed but not present in resailer website #19

Delmael opened this issue Feb 14, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Delmael
Copy link
Collaborator

Delmael commented Feb 14, 2025

From : community forum

The only issue is that it shows several radiators that I don’t have (see images). I have 4 radiators but the list shows 16! The 12 that I don’t have are not connected (which is just as well) so I will just disable them.

Image

Before deactivating the pydantic verification there was these errors :

 Logger: homeassistant.config_entries
Source: config_entries.py:637
First occurred: 14:39:12 (3 occurrences)
Last logged: 14:46:00

Error setting up entry Haverland [email protected] for smartbox
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartbox/__init__.py", line 76, in async_setup_entry
    devices = await get_devices(session=session, hass=hass)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartbox/model.py", line 395, in get_devices
    devices.append(await create_smartbox_device(session_device, session, hass))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartbox/model.py", line 407, in create_smartbox_device
    await _device.initialise_nodes()
  File "/config/custom_components/smartbox/model.py", line 56, in initialise_nodes
    session_nodes = await self._session.get_nodes(self.dev_id)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/smartbox/session.py", line 303, in get_nodes
    nodes: Nodes = Nodes.model_validate(response)
                   ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pydantic/main.py", line 627, in model_validate
    return cls.__pydantic_validator__.validate_python(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        obj, strict=strict, from_attributes=from_attributes, context=context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
pydantic_core._pydantic_core.ValidationError: 12 validation errors for Nodes
nodes.0.lost
  Field required [type=missing, input_value={'name': 'KITCHEN', 'addr...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.1.lost
  Field required [type=missing, input_value={'name': 'LIVING ROOM 2',...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.2.lost
  Field required [type=missing, input_value={'name': 'SITTING ROOM 2'...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.3.lost
  Field required [type=missing, input_value={'name': 'SITTING ROOM 1'...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.4.lost
  Field required [type=missing, input_value={'name': 'LIVING ROOM 1',...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.5.lost
  Field required [type=missing, input_value={'name': 'ALISS BEDROOM',...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.6.lost
  Field required [type=missing, input_value={'name': 'LANDING', 'addr...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.7.lost
  Field required [type=missing, input_value={'name': 'ROBS BEDROOM', ...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.8.lost
  Field required [type=missing, input_value={'name': 'UTILITY', 'addr...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.9.lost
  Field required [type=missing, input_value={'name': 'OFFICE', 'addr'...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.10.lost
  Field required [type=missing, input_value={'name': 'STUDIO', 'addr'...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
nodes.11.lost
  Field required [type=missing, input_value={'name': 'End Bedroom', '...'level': 0, 'parent': 0}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
@ajtudela
Copy link
Owner

Mm, I don't think I have those devices in my settings. I'll check them later.

Do you know where they come from?

@Delmael
Copy link
Collaborator Author

Delmael commented Feb 14, 2025

I do not have them either. It's an haverland integration.
Someone on the forum raised this issue

@ajtudela
Copy link
Owner

I do not have them either. It's an haverland integration. Someone on the forum raised this issue

I read it yesterday. What I mean is if those devices are gathered by our integration, maybe adding a filter to Haverland integration is not a bad idea.

@Delmael
Copy link
Collaborator Author

Delmael commented Feb 14, 2025

So excluding these specific device for haverland before sending them to hass?

@ajtudela
Copy link
Owner

So excluding these specific device for haverland before sending them to hass?

Yeah, something like that. It's not the best but it's something.

@Delmael Delmael added the bug Something isn't working label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants