Giter Club home page Giter Club logo

Comments (5)

mteutelink avatar mteutelink commented on June 12, 2024

I tried to call the dump service, but i can't find the output. Tried the logs, but found the error above.

from dirigera_platform.

mteutelink avatar mteutelink commented on June 12, 2024

2024-02-28 22:46:08.164 ERROR (MainThread) [homeassistant.components.light] Error while setting up dirigera_platform platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/dirigera_platform/light.py", line 44, in async_setup_entry
hub_lights = await hass.async_add_executor_job(hub.get_lights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/deps/lib/python3.12/site-packages/dirigera/hub/hub.py", line 137, in get_lights
return [dict_to_light(light, self) for light in lights]
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/deps/lib/python3.12/site-packages/dirigera/devices/light.py", line 109, in dict_to_light
return Light(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 341, in init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for Light
room
field required (type=value_error.missing)
2024-02-28 22:46:08.610 DEBUG (MainThread) [custom_components.dirigera_platform] Found 0 env devices to setup...
2024-02-28 22:46:08.610 DEBUG (MainThread) [custom_components.dirigera_platform] Found 0 env entities to setup...
2024-02-28 22:46:08.611 DEBUG (MainThread) [custom_components.dirigera_platform] EnvSensor & Controllers Complete async_setup_entry
2024-02-28 22:46:08.656 DEBUG (MainThread) [custom_components.dirigera_platform] Found 0 motion_sensor entities to setup...
2024-02-28 22:46:08.656 DEBUG (MainThread) [custom_components.dirigera_platform] Found 0 open close entities to setup...
2024-02-28 22:46:08.656 DEBUG (MainThread) [custom_components.dirigera_platform] Binary Sensor Complete async_setup_entry
2024-02-28 22:46:38.129 DEBUG (SyncWorker_24) [custom_components.dirigera_platform] outlet update...
2024-02-28 22:46:51.888 INFO (SyncWorker_5) [custom_components.dirigera_platform] === START Devices JSON ===
2024-02-28 22:46:51.889 INFO (SyncWorker_5) [custom_components.dirigera_platform] --------------

from dirigera_platform.

sanjoyg avatar sanjoyg commented on June 12, 2024

As you would see in the logs there are no devices that it could read from the hub. Possibly the hub was not setup correctly with the integration. The JSON dump is nothing

2024-02-28 22:46:51.888 INFO (SyncWorker_5) [custom_components.dirigera_platform] === START Devices JSON ===
2024-02-28 22:46:51.889 INFO (SyncWorker_5) [custom_components.dirigera_platform] --------------

from dirigera_platform.

mteutelink avatar mteutelink commented on June 12, 2024

Funny, the light bulbs work fine in IKEA Smart Home and Apple Homekit, but they don't show up in this integration.

from dirigera_platform.

sanjoyg avatar sanjoyg commented on June 12, 2024

:( Not sure how I can help...

from dirigera_platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.