Having trouble with adding Dirigera Hub. #176
mario14480
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve connected my Philips motion sensors to the Dirigera Hub, but Home Assistant is having trouble loading the entries.
Logger: homeassistant.config_entries
Quelle: config_entries.py:761
Erstmals aufgetreten: 08:14:04 (1 Vorkommnis)
Zuletzt protokolliert: 08:14:04
Error setting up entry IKEA Dirigera Hub : 192.168.5.22 for dirigera_platform
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/init.py", line 197, 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.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/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.13/site-packages/dirigera/devices/motion_sensor.py", line 34, in dict_to_motion_sensor
return MotionSensor(dirigeraClient=dirigera_client, **data)
File "/usr/local/lib/python3.13/site-packages/pydantic/main.py", line 250, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for MotionSensor
attributes.batteryPercentage
Field required [type=missing, input_value={'customName': 'Lichtsens... 'circadianPresets': []}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Beta Was this translation helpful? Give feedback.
All reactions