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

2.5.1 and before, extreme delay and unstable Hub when many devices connected and active update question option in the Settings. #103

Open
vvbasti opened this issue Nov 4, 2024 · 41 comments

Comments

@vvbasti
Copy link

vvbasti commented Nov 4, 2024

I've had this problem for a long time that the integration is hindering the HUB, commands are only executed after 10 seconds or not at all. It is very noticeable when turning on lights from the Ikea APP, they change to on in the app but are not on, then after 2-3 seconds they change back to off in the display. After a long time > 5 seconds they are actually switched on.
I suspect it is due to the frequent update requests from the sensors. Could this cycle possibly be made configurable? so that the hub is not put under as much strain on many devices. It is reproducible, if I deactivate the integration the response time returns to normal immediately.

Which debug logs can I contribute to further analysis?

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

I found one Issue with Battery Level Update, some Sensors are not present the Battery State.

Update for sensor.battery_percentage_13 fails
Update for sensor.battery_percentage_6 fails
Update for sensor.gaestewc_battery_percentage fails
Update for sensor.battery_percentage_12 fails
Update for sensor.battery_percentage_11 fails
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1061, in validate_conn
conn.connect()
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect
self.sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl
.py", line 462, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl
.py", line 504, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/ssl.py", line 1042, in _create
self.do_handshake()
File "/usr/local/lib/python3.12/ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
TimeoutError: _ssl.c:983: The handshake operation timed out

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

Would u try 2.5.2 and let me know if the status of the outlet is updated as I took out polling. It should be much faster. Also for the above a full log would help

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

Sorry I'm a bit clumsy with HAS, where can I find the complete debug log for your integration. For the other integrations I find an option under system / protocols at the top right, but unfortunately dirigera addon does not appear there. Does it then write the things to the system log?
I'll test the version right away

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

Just read here https://github.com/sanjoyg/dirigera_platform/wiki/Calling-dump_data-to-dump-the-JSON (the part of enabling debugging)

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

Thank you, my system answer with error Code
Die Aktion dirigera_platform.dump_data konnte nicht ausgeführt werden. Unknown error

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2852, in _execute_service
return await self._hass.async_add_executor_job(target, service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/init.py", line 59, in handle_dump_data
ip = config_data[CONF_IP_ADDRESS]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

You dont need to call the service call, just enable debug and u should see the logs in the system log

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

Hy, my feeling is that it's much better than before. I noticed through the log that I also had my own problem. Due to the reconnection, a few sensors were not yet available in HAS, so it is possible that such ghost devices are then repeatedly requested from the hub and thus generate additional load. Or does the integration only ask for a limited amount and then deactivates the entities that were not found.

I still see an error in the log, something with the time zone, is it a problem with my system or with the integration?
AttributeError: 'str' object has no attribute 'tzinfo'

But thank you very much, you are the best, the integration is great. Due to the IPv6 and mDNS issues, Matter is not really mature enough to easily work with it in complex networks.

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

please paste error log for the error u mentioned

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
2024-11-04 16:13:31.410 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dirigera_platform which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:31.412 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration pysmaplus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:31.412 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration philips_ambilight_hue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:31.414 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration proxmoxve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:31.415 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration zha_toolkit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:31.415 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-04 16:13:35.371 WARNING (MainThread) [pysmaplus.device_speedwire] Protocol already created
2024-11-04 16:13:35.414 WARNING (MainThread) [pysmaplus.device_speedwire] Protocol already created
2024-11-04 16:13:38.178 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465001: [752, 752, 752, 752, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:38.178 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465101: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:38.178 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465201: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:40.432 WARNING (SyncWorker_0) [zhaquirks] Loaded custom quirks. Please contribute them to https://github.com/zigpy/zha-device-handlers
2024-11-04 16:13:40.433 WARNING (MainThread) [zigpy.config.validators] The ikea_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'ikea'}]
2024-11-04 16:13:40.434 WARNING (MainThread) [zigpy.config.validators] The ledvance_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'ledvance'}]
2024-11-04 16:13:40.434 WARNING (MainThread) [zigpy.config.validators] The sonoff_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'sonoff'}]
2024-11-04 16:13:40.434 WARNING (MainThread) [zigpy.config.validators] The inovelli_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'inovelli'}]
2024-11-04 16:13:40.483 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465001: [732, 732, 732, 732, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:40.483 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465101: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:40.484 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465201: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:41.464 WARNING (MainThread) [zigpy.config.validators] The ikea_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'ikea'}]
2024-11-04 16:13:41.465 WARNING (MainThread) [zigpy.config.validators] The ledvance_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'ledvance'}]
2024-11-04 16:13:41.465 WARNING (MainThread) [zigpy.config.validators] The sonoff_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'sonoff'}]
2024-11-04 16:13:41.465 WARNING (MainThread) [zigpy.config.validators] The inovelli_provider key is deprecated, migrate your configuration to the extra_providers list instead: extra_providers: [{'type': 'inovelli'}]
2024-11-04 16:13:48.382 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_heart
2024-11-04 16:13:48.382 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_heart
2024-11-04 16:13:48.382 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_ladle
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_ladle
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.383 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_wake_up
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_wake_up
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_broom
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_broom
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.384 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_broom
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_broom
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_leaf
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_leaf
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.385 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_yoga
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_yoga
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_moon
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_moon
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_wake_up
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_wake_up
2024-11-04 16:13:48.386 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.387 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.387 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_clean_sparkles
2024-11-04 16:13:48.387 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_clean_sparkles
2024-11-04 16:13:48.387 ERROR (MainThread) [homeassistant.components.scene] Error adding entity None for domain scene with platform dirigera_platform
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 826, in _async_add_entity
original_icon=entity.icon,
^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/scene.py", line 60, in icon
return ikea_to_hass_icon(self._scene.icon)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/dirigera_platform/icons.py", line 90, in ikea_to_hass_icon
return ikea_to_hass_mapping[ikea_icon]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'scenes_flame'

2024-11-04 16:13:48.395 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.396 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_arrive_home
2024-11-04 16:13:48.396 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_briefcase
2024-11-04 16:13:48.396 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_briefcase
2024-11-04 16:13:48.396 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_brightness_up
2024-11-04 16:13:48.397 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_brightness_up
2024-11-04 16:13:48.397 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_disco_ball
2024-11-04 16:13:48.397 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_disco_ball
2024-11-04 16:13:48.397 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_leave_home
2024-11-04 16:13:48.397 WARNING (MainThread) [custom_components.dirigera_platform] Unknown icon scenes_leave_home
2024-11-04 16:13:52.048 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465001: [772, 772, 772, 772, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:52.048 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465101: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:52.048 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465201: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:13:58.376 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform dirigera_platform is taking over 10 seconds.
2024-11-04 16:14:03.820 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465001: [767, 767, 767, 767, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:14:03.820 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465101: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:14:03.820 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465201: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:14:16.196 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465001: [761, 761, 761, 761, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:14:16.197 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465101: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
2024-11-04 16:14:16.197 WARNING (MainThread) [pysmaplus.device_speedwire] No Handler for 00465201: [-1, -1, -1, -1, 1] @ ['62', '66', '70', '74', '78']
*2024-11-04 16:14:21.749 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, self._args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _async_write_ha_state_from_call_soon_threadsafe
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/datetime/init.py", line 106, in state
if value.tzinfo is None:
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'

2024-11-04 16:14:25.325 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _async_write_ha_state_from_call_soon_threadsafe
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/datetime/init.py", line 106, in state
if value.tzinfo is None:
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo' #

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

Doesnt seem to be from this integration. Can you please test to see that the outlet status is reflected quickly. Also let me know other devices you have, you could help with status updates for some others too

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 4, 2024

I also checked all of these icons exist, have to do little more debug

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

I think you did a good job, everything is still happening without delay and very quickly.

I have all Senors from ikea then was exist.
And some 3rd from aliexpresswithissues.

Currently i think the Updates are fast enough.
I will check

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

I have check the water leak sensor BADRIN.
The respons comes <1Sec to HAS, i think this was for the most Sensor more than good. The most battery sensors make a delay self by design with standby sleep logic.

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

The PARASOLL the same <1sec delay.
So was a perfekt working solution.

@vvbasti
Copy link
Author

vvbasti commented Nov 4, 2024

Hy, i have detect a issue with automations.
In the device no triggers can select.

And without comes a error message when i save

Message malformed: Integration '' not found

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 5, 2024

can you forward me the logs

@vvbasti
Copy link
Author

vvbasti commented Nov 5, 2024

Hy, my logs.
logs.txt

and with debug and reload the integration
logs-1.txt

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 5, 2024

Please try it now, should be fixed

@vvbasti
Copy link
Author

vvbasti commented Nov 5, 2024

Hy, the Automation Issue is not solved.
logs-2.txt

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 5, 2024

This will take some rounds of debugging, please try the latest release

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 6, 2024

the log is not uploaded properly

@vvbasti
Copy link
Author

vvbasti commented Nov 6, 2024

logs-3.txt

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 6, 2024

Please try release 2.6.3

@vvbasti
Copy link
Author

vvbasti commented Nov 6, 2024

Hy, i try it. No available Action on device are Available
logs-4.txt

@vvbasti
Copy link
Author

vvbasti commented Nov 7, 2024

home-assistant_2024-11-07T10-11-23.556Z.log

Hy a, new Log.
Can I help something else? Do you still need information or log files?

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 8, 2024

LEts see if the news release 2.6.4 solves it for u

@vvbasti
Copy link
Author

vvbasti commented Nov 8, 2024

home-assistant_dirigera_platform_2024-11-08T11-23-19.700Z.log

Hy, sorry the Triggers on Light Device is still not available.
The Performance Issue from Integration Connections is solved, no issues after your fix.

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 8, 2024 via email

@vvbasti
Copy link
Author

vvbasti commented Nov 10, 2024

217042950-4daa0e66-27d1-4353-9a0e-f25776a59682
Hy, the trigger is required in outomations for init the automation to start and follow the conditions. Without, no automation can work.

Here a example with controlled device, a light device normal deliver the trigger on, off, change

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 12, 2024

please provide the dump json to debug

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

description: ""
mode: single
triggers:

  • trigger: device
    device_id: ""
    domain: ""
    entity_id: ""
    conditions:
  • condition: device
    type: is_off
    device_id: d7ed4866b14753b62e9641de5f7e2926
    entity_id: e2e12360b6a8dd3f7dc763e5a89363f9
    domain: light
    actions:
  • type: turn_on
    device_id: d7ed4866b14753b62e9641de5f7e2926
    entity_id: e2e12360b6a8dd3f7dc763e5a89363f9
    domain: light

The Device data not Fill when no trigger is selectet

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

Here the normal Trigger list for a E27 Bulb

image

And when select a Trigger the device Data was filled

description: ""
mode: single
triggers:

  • type: changed_states
    device_id: ccd35c32960681e02319f71190adc5ef
    entity_id: f3fcab9c12c7a9d35994860f2ed45055
    domain: light
    trigger: device
    conditions:
  • condition: device
    type: is_off
    device_id: 600bb9d720b0b57978d396705c1f363d
    entity_id: a3cc70cf6185054ac86c37c92180c0c4
    domain: switch
    actions: []

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 12, 2024

sorry I meant the dump of the entire device set, the link is in the readme on how to generate the dump

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

Hy, i Have a Second HUB, the Productive System has to Many Devices and heavy large Logs, i set Up a LAB Enviroment for you.
When its help, ?

Here the log from Productive

home-assistant_2024-11-12T10-02-33.622Z.log

@sanjoyg
Copy link
Owner

sanjoyg commented Nov 12, 2024

These are lightControllers, they dont publish hub events unfortunately.

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

2024-11-12 13:22:36.732 INFO (SyncWorker_0) [custom_components.dirigera_platform] === START Devices JSON ===
2024-11-12 13:22:36.733 INFO (SyncWorker_0) [custom_components.dirigera_platform] --------------
2024-11-12 13:22:36.980 ERROR (SyncWorker_0) [custom_components.dirigera_platform] TYPE IS <class 'list'>
2024-11-12 13:22:36.980 INFO (SyncWorker_0) [custom_components.dirigera_platform] [{'id': 2, 'relationId': '98586a72-6148-466c-8a4a-a89e1b7522dd', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2024-10-28T12:32:00.849Z', 'isReachable': True, 'lastSeen': '2024-11-12T12:22:00.266Z', 'attributes': {'customName': 'Test', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.660.6', 'hardwareVersion': 'P2.5', 'serialNumber': 2, 'identifyStarted': '2024-10-28T12:32:03.000Z', 'identifyPeriod': 65534, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': False, 'backendConnectionPersistent': False, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'DE', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Berlin', 'nextSunSet': None, 'nextSunRise': None, 'homestate': 'home', 'countryCode': 'XZ', 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 3, 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-11-12T12:00:36.000Z', 'isReachable': True, 'lastSeen': '2024-11-12T12:02:31.000Z', 'attributes': {'customName': 'E27', 'firmwareVersion': '1.2.217', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E27 WS opal 980lm', 'productCode': 'LED1545G12E27EU', 'serialNumber': 4, 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 43, 'startUpCurrentLevel': 100, 'colorMode': 'temperature', 'colorTemperature': 2702, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'updateInProgress', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature']}, 'room': {'id': 5, 'name': 'Sonstiges', 'color': 'ikea_blue_no_63', 'icon': 'rooms_box'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False, 'adaptiveProfile': {}}]
2024-11-12 13:22:36.980 INFO (SyncWorker_0) [custom_components.dirigera_platform] --------------

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

Hy, I now have a complete LAB setup so that I can test things better in the future without my family exposing me to jungle (-;

I probably have a problem understanding it, because it works perfectly with the old 1.8.4, so it must be due to the changes.

I just installed the old version and it works immediately.

image

2024-11-12 13:31:29.055 INFO (SyncWorker_2) [custom_components.dirigera_platform] === START Devices JSON ===
2024-11-12 13:31:29.055 INFO (SyncWorker_2) [custom_components.dirigera_platform] --------------
2024-11-12 13:31:29.319 INFO (SyncWorker_2) [custom_components.dirigera_platform] [{'id': '98586a72-6148-466c-8a4a-a89e1b7522dd_1', 'relationId': '98586a72-6148-466c-8a4a-a89e1b7522dd', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2024-10-28T12:32:00.849Z', 'isReachable': True, 'lastSeen': '2024-11-12T12:31:00.527Z', 'attributes': {'customName': 'Test', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.660.6', 'hardwareVersion': 'P2.5', 'serialNumber': '98586a72-6148-466c-8a4a-a89e1b7522dd', 'identifyStarted': '2024-10-28T12:32:03.000Z', 'identifyPeriod': 65534, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': False, 'backendConnectionPersistent': False, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'DE', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Berlin', 'nextSunSet': None, 'nextSunRise': None, 'homestate': 'home', 'countryCode': 'XZ', 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'ebd8db22-e049-418c-b7b8-7d139ed6c548_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-11-12T12:27:34.000Z', 'isReachable': True, 'lastSeen': '2024-11-12T12:30:14.000Z', 'attributes': {'customName': 'E27', 'firmwareVersion': '2.3.095', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E27 WS opal 980lm', 'productCode': 'LED1545G12E27EU', 'serialNumber': '000B57FFFE6F8B4D', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorMode': 'temperature', 'startupTemperature': -1, 'colorTemperature': 2702, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature']}, 'room': {'id': '763259a1-3f2c-4e2e-aea2-17ae22b05e2e', 'name': 'Sonstiges', 'color': 'ikea_blue_no_63', 'icon': 'rooms_box'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False, 'adaptiveProfile': {}}]
2024-11-12 13:31:29.320 INFO (SyncWorker_2) [custom_components.dirigera_platform] --------------
2024-11-12 13:31:29.320 INFO (SyncWorker_2) [custom_components.dirigera_platform] === END Devices JSON ===

@vvbasti
Copy link
Author

vvbasti commented Nov 12, 2024

Addendum, I tested all versions, 1.8.9 is the last one in which it works, after that a change probably caused the problem.

@vvbasti
Copy link
Author

vvbasti commented Nov 16, 2024

Its possible to bring this Feature back, or is this extreme strong in the new code > 2.x

Best regards from Germany

@vvbasti
Copy link
Author

vvbasti commented Nov 20, 2024

I compared it with the matter integration, here the trigger works and you can select it on the devices. But I don't want to switch to matter, I think their integration is better, matter doesn't handle the sensors well. Do you see a way to bring the function back?

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

2 participants