sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
71 stars 8 forks source link

Parasoll slow response #36

Closed mgums closed 2 months ago

mgums commented 2 months ago

I notice with the Parasoll doorsensor, that not every event is captured via Dirigera integration or it comes with a delay. In the IKEA iPhone App I see the door open and close actions immediately. Is there some sort of delay implemented maybe? When I open the door and close it fast, no change is recorded in HA. In the IKEA app the change is there. Next to that I see the following in the debug logs, so maybe more is going on? 2024-04-17 17:53:08.243 DEBUG (Thread-2) [custom_components.dirigera_platform] rcvd message : {"id":"891622ef-1e1e-4695-8d61-8039e0b83342","time":"2024-04-17T15:53:08.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"35342df4-c2f1-4f38-a34e-4b8704e9ebd3_1","type":"sensor","deviceType":"motionSensor","createdAt":"2024-04-15T11:37:10.000Z","isReachable":true,"lastSeen":"2024-04-17T17:50:08.000Z","attributes":{"isDetected":false,"sensorConfig":{"scheduleOn":false,"onDuration":120,"schedule":{"onCondition":{"time":"22:00"},"offCondition":{"time":"06:00"}}},"circadianPresets":[]},"remoteLinks":[]}} 2024-04-17 17:53:08.243 DEBUG (Thread-2) [custom_components.dirigera_platform] Setting 35342df4-c2f1-4f38-a34e-4b8704e9ebd3_1 reachable as True 2024-04-17 17:53:08.244 DEBUG (Thread-2) [custom_components.dirigera_platform] device type of message motionSensor 2024-04-17 17:53:08.245 DEBUG (Thread-2) [custom_components.dirigera_platform] setting is_detected to False 2024-04-17 17:53:08.245 DEBUG (Thread-2) [custom_components.dirigera_platform] attribute sensorConfig not in list of device type motionSensor, ignoring update... 2024-04-17 17:53:08.245 DEBUG (Thread-2) [custom_components.dirigera_platform] attribute circadianPresets not in list of device type motionSensor, ignoring update...

sanjoyg commented 2 months ago

The log that you posted is that from the doorsensor, the device type shows it to be a motion sensor

mgums commented 2 months ago

I have a flue, so not 100% sharp :-) I turned on the debug in the Dirigera integration, opened the door, looked in the IKEA app to check if door is opened there (and yes), close the door and stopped the debug in Dirigera integration, which immediately downloads the log to my laptop (so I don;t have to get it from system log). You see also down here the door is only a couple of seconds open. The IKEA app only records in minutes, but it shows both the open and close state.

2024-04-17 17:56:28.026 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:33:30.054 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:33:30.056 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:33:30.062 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:33:30.063 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:33:30.821 DEBUG (MainThread) [custom_components.dirigera_platform] motion sensor update... 2024-04-17 19:33:30.822 DEBUG (MainThread) [custom_components.dirigera_platform] open close sensor update... 2024-04-17 19:33:30.823 DEBUG (MainThread) [custom_components.dirigera_platform] open close sensor update... 2024-04-17 19:33:31.148 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:33:31.149 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:33:31.150 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:33:39.270 DEBUG (Thread-3) [custom_components.dirigera_platform] rcvd message : {"id":"12079c0d-7524-458e-983b-4745176a83fd","time":"2024-04-17T17:33:39.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"f35d1d38-1472-4d06-8f13-7aa84b9cb3d3_1","type":"sensor","deviceType":"openCloseSensor","createdAt":"2024-04-17T12:29:56.000Z","isReachable":true,"lastSeen":"2024-04-17T19:33:39.000Z","attributes":{"isOpen":true},"remoteLinks":[]}} 2024-04-17 19:33:39.271 DEBUG (Thread-3) [custom_components.dirigera_platform] Setting f35d1d38-1472-4d06-8f13-7aa84b9cb3d3_1 reachable as True 2024-04-17 19:33:39.271 DEBUG (Thread-3) [custom_components.dirigera_platform] device type of message openCloseSensor 2024-04-17 19:33:42.799 DEBUG (Thread-3) [custom_components.dirigera_platform] rcvd message : {"id":"51b99dfa-97c8-43b3-9ca1-99152f002300","time":"2024-04-17T17:33:42.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"f35d1d38-1472-4d06-8f13-7aa84b9cb3d3_1","type":"sensor","deviceType":"openCloseSensor","createdAt":"2024-04-17T12:29:56.000Z","isReachable":true,"lastSeen":"2024-04-17T19:33:42.000Z","attributes":{"isOpen":false},"remoteLinks":[]}} 2024-04-17 19:33:42.800 DEBUG (Thread-3) [custom_components.dirigera_platform] Setting f35d1d38-1472-4d06-8f13-7aa84b9cb3d3_1 reachable as True 2024-04-17 19:33:42.800 DEBUG (Thread-3) [custom_components.dirigera_platform] device type of message openCloseSensor 2024-04-17 19:34:00.055 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:34:00.057 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:34:00.058 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:34:00.058 DEBUG (MainThread) [custom_components.dirigera_platform] outlet update... 2024-04-17 19:34:00.822 DEBUG (MainThread) [custom_components.dirigera_platform] motion sensor update... 2024-04-17 19:34:00.824 DEBUG (MainThread) [custom_components.dirigera_platform] open close sensor update... 2024-04-17 19:34:00.825 DEBUG (MainThread) [custom_components.dirigera_platform] open close sensor update... 2024-04-17 19:34:01.148 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:34:01.149 DEBUG (MainThread) [custom_components.dirigera_platform] controller update... 2024-04-17 19:34:01.150 DEBUG (MainThread) [custom_components.dirigera_platform] controller update...

vulcanoid1975 commented 2 months ago

I have two Parasoll sensors, they also are quite slow to respond, as I said on https://github.com/sanjoyg/dirigera_platform/issues/20#issuecomment-2053630667

Maybe this might help: 2024-04-17 183836.739 INFO.txt

sanjoyg commented 2 months ago

I hope you feel better soon. Try 1.5.3 hub even for open close sensor now processed. Do test and and if it works as expected please close the issue

mgums commented 2 months ago

Status changes instantly in HA when opening and closing the door. Thx a lot Sanjoy, awesome! Do you need me to do any debugging? Just let me know. Regards, Marco

vulcanoid1975 commented 2 months ago

Amazing work! Thank you!

sanjoyg commented 2 months ago

Thank you mgums, I will reach out to you for debugging help that I might need

mgums commented 2 months ago

Hi Sanjoy. This night a saw one instance of doormen-detection not being registered in HA. It was visible in the IKEA app though. One of these days I will do more testing and debug tracing when trying to capture such an event. Regards, Marco

sanjoyg commented 2 months ago

Please do , not aware of what doormen-detection is

On Fri, Apr 19, 2024 at 12:25 PM mgums @.***> wrote:

Hi Sanjoy. This night a saw one instance of doormen-detection not being registered in HA. It was visible in the IKEA app though. One of these days I will do more testing and debug tracing when trying to capture such an event. Regards, Marco

— Reply to this email directly, view it on GitHub https://github.com/sanjoyg/dirigera_platform/issues/36#issuecomment-2065877472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2X3CWPYEZPMQEPO3Q4UWTY6C5WHAVCNFSM6AAAAABGLUXRKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVHA3TONBXGI . You are receiving this because you modified the open/close state.Message ID: @.***>