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

zigbee motion sensor error in HA when connected to DIRIGERA #122

Open
Pumawave4 opened this issue Dec 14, 2024 · 0 comments
Open

zigbee motion sensor error in HA when connected to DIRIGERA #122

Pumawave4 opened this issue Dec 14, 2024 · 0 comments

Comments

@Pumawave4
Copy link

Logger: homeassistant.config_entries
Bron: config_entries.py:635
Eerst voorgekomen: 9 december 2024 om 18:58:06 (5 gebeurtenissen)
Laatst gelogd: 10:45:16
Error setting up entry IKEA Dirigera Hub : 192.168.0.149 for dirigera_platform

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/init.py", line 200, in async_setup_entry
await platform.make_devices(hass,hass_data[CONF_IP_ADDRESS], hass_data[CONF_TOKEN])
File "/config/custom_components/dirigera_platform/ikea_gateway.py", line 97, in make_devices
motion_sensors = await hass.async_add_executor_job(hub.get_motion_sensors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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/dirigera/hub/hub.py", line 256, in get_motion_sensors
return [dict_to_motion_sensor(sensor, self) for sensor in sensors]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dirigera/devices/motion_sensor.py", line 34, in dict_to_motion_sensor
return MotionSensor(dirigeraClient=dirigera_client, **data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for MotionSensor
attributes -> isOn
field required (type=value_error.missing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant