sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
122 stars 16 forks source link

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 2 weeks ago

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

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_wrapsocket( ^^^^^^^^^^^^^^^^ 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_intls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

please paste error log for the error u mentioned

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

can you forward me the logs

vvbasti commented 2 weeks ago

Hy, my logs. logs.txt

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

sanjoyg commented 2 weeks ago

Please try it now, should be fixed

vvbasti commented 2 weeks ago

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

sanjoyg commented 2 weeks ago

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

sanjoyg commented 2 weeks ago

the log is not uploaded properly

vvbasti commented 2 weeks ago

logs-3.txt

sanjoyg commented 2 weeks ago

Please try release 2.6.3

vvbasti commented 2 weeks ago

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

vvbasti commented 2 weeks ago

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 commented 2 weeks ago

LEts see if the news release 2.6.4 solves it for u

vvbasti commented 1 week ago

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 commented 1 week ago

Sorry I dont understand what is meant be triggers on Light Device are not available?

On Fri, Nov 8, 2024 at 4:59 PM vvbasti @.***> wrote:

home-assistant_dirigera_platform_2024-11-08T11-23-19.700Z.log https://github.com/user-attachments/files/17677797/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.

— Reply to this email directly, view it on GitHub https://github.com/sanjoyg/dirigera_platform/issues/103#issuecomment-2464475447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2X3CTQQPOGCDHGSVKKG2LZ7SOBLAVCNFSM6AAAAABREEM7YCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRUGQ3TKNBUG4 . You are receiving this because you commented.Message ID: @.***>

vvbasti commented 1 week ago

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 commented 1 week ago

please provide the dump json to debug

vvbasti commented 1 week ago

description: "" mode: single triggers:

The Device data not Fill when no trigger is selectet

vvbasti commented 1 week ago

Here the normal Trigger list for a E27 Bulb

image

And when select a Trigger the device Data was filled

description: "" mode: single triggers:

sanjoyg commented 1 week ago

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

vvbasti commented 1 week ago

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 commented 1 week ago

These are lightControllers, they dont publish hub events unfortunately.

vvbasti commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 5 days ago

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

Best regards from Germany

vvbasti commented 1 day ago

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?