Replies: 10 comments 5 replies
-
It seems to me from your logs that it is working fine. The timeout responses are as expected. The way it works is the client (homebridge) sends a request to the server and waits for up to 80 seconds for a response. If nothing happens, then the server sends a timeout and the client sends another request. This happens continuously. As soon as an event comes in from SmartThings, the server sends back an event to the client (which I see in the logs - see the entry Received response from webhook {"timeout":false,"events":[{"deviceId":"4e99a338-504d-4fac-aea4-263cefdaa158","value":"off","componentId":"main","capability":"switch","attribute":"switch"}]} in the log file). The client processes the change, then sends the next request to the server. |
Beta Was this translation helpful? Give feedback.
-
A carton my HomeKit on my Pago e
Get Outlook for iOS
From: iklein99 ***@***.***>Sent: Monday, July 24, 2023 3:50 PMTo: iklein99/homebridge-smartthings ***@***.***>Cc: que779 ***@***.***>; Author ***@***.***>Subject: Re: [iklein99/homebridge-smartthings] ST PI time out response (Discussion #191)
It seems to me from your logs that it is working fine. The timeout responses are as expected. The way it works is the client (homebridge) sends a request to the server and waits for up to 80 seconds for a response. If nothing happens, then the server sends a timeout and the client sends another request. This happens continuously.
As soon as an event comes in from SmartThings, the server sends back an event to the client (which I see in the logs - see the entry Received response from webhook {"timeout":false,"events":[{"deviceId":"4e99a338-504d-4fac-aea4-263cefdaa158","value":"off","componentId":"main","capability":"switch","attribute":"switch"}]} in the log file). The client processes the change, then sends the next request to the server.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I can’t help you there. Has nothing to do with my plug-in. Sent from my iPhoneOn Jul 24, 2023, at 6:28 PM, que779 ***@***.***> wrote:
I am trying to scan the qr code into homekit from homebridge but evertime I do it fails.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
now I got this [7/24/2023, 4:46:13 PM] [Smartthings Plug (IK)] Posting request to web hook |
Beta Was this translation helpful? Give feedback.
-
[7/24/2023, 5:00:14 PM] [Smartthings Plug (IK)] Starting subscription handler |
Beta Was this translation helpful? Give feedback.
-
Ooops!! Good catch. Had to renew the cert on the server. Try again. |
Beta Was this translation helpful? Give feedback.
-
This is so wierd last week my v3 model dies so I got a aeotec and got it up and working everything synced I followed your instructions and on saturday it woked but then I messed up and had to get a new access token and redo it now it is no linking from homekit to smartthings. Normally you scan the qr code says add anyway and then it will have you tediously add them in one by one. Then they would work I get unable to add accessory failed to add accessory, there is another message. I cant remember what it is. I have created a ticket for the creator of homebridge but no response as of yet. The other wierd thing is that the accessories would show and then they would be disappeared. Thats why I am concerned that it has something to do with the ST new protocol. Also does it have to be in a child bridge or can it be on the main bridge? |
Beta Was this translation helpful? Give feedback.
-
Finally I got the other message from homekit it says accessory not found you may need to restart your accessory and add it to your home. Does this mean the homebridge or ST? |
Beta Was this translation helpful? Give feedback.
-
Try both. I’m trying to help you with the plugin, but homebridge not talking to HomeKit is outside of that.
… On Jul 24, 2023, at 9:26 PM, que779 ***@***.***> wrote:
Finally I got the other message from homekit it says accessory not found you may need to restart your accessory and add it to your home.
Does this mean the homebridge or ST?
—
Reply to this email directly, view it on GitHub <#191 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABG55EXDAWU3YPXQAFMR6JTXR4OFLANCNFSM6AAAAAA2WD4E7I>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
I followed the instructions on the ST provided by the https://stwh.kleinstudios.net/api url and I am also unable to regesiter with HK please assist.....
This is the logs from HK
[7/24/2023, 11:58:47 AM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:00:12 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:00:12 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:01:38 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:01:38 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:03:03 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:03:03 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:04:29 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:04:29 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:05:54 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:05:54 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:07:19 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:07:19 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:07:33 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":false,"events":[{"deviceId":"4e99a338-504d-4fac-aea4-263cefdaa158","value":"off","componentId":"main","capability":"switch","attribute":"switch"}]}
[7/24/2023, 12:07:33 PM] [Smartthings Plug (IK)] Received events for Desk Lamp
[7/24/2023, 12:07:33 PM] [Smartthings Plug (IK)] Event for Desk Lamp:main - off
[7/24/2023, 12:07:33 PM] [Smartthings Plug (IK)] Event updating switch capability for Desk Lamp to off
[7/24/2023, 12:07:33 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:08:58 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:08:58 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:10:24 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:10:24 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:11:49 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:11:49 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:38:50 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:40:16 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:40:16 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:41:03 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":false,"events":[{"deviceId":"40094a48-ef51-4256-87b7-0d2466a6eeb5","value":"on","componentId":"main","capability":"switch","attribute":"switch"}]}
[7/24/2023, 12:41:03 PM] [Smartthings Plug (IK)] Received events for Desk Light
[7/24/2023, 12:41:03 PM] [Smartthings Plug (IK)] Event for Desk Light:main - on
[7/24/2023, 12:41:03 PM] [Smartthings Plug (IK)] Event updating switch capability for Desk Light to on
[7/24/2023, 12:41:03 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:41:13 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":false,"events":[{"deviceId":"7965d7c3-7a0a-418e-a57f-9593358ae8db","value":"on","componentId":"main","capability":"switch","attribute":"switch"}]}
[7/24/2023, 12:41:13 PM] [Smartthings Plug (IK)] Received events for Corner Light
[7/24/2023, 12:41:13 PM] [Smartthings Plug (IK)] Event for Corner Light:main - on
[7/24/2023, 12:41:13 PM] [Smartthings Plug (IK)] Event updating switch capability for Corner Light to on
[7/24/2023, 12:41:13 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 12:42:38 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 12:42:38 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:42:08 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:43:34 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:43:34 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:45:00 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:45:01 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:46:27 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:46:27 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:47:52 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:47:52 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:49:17 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:49:17 PM] [Smartthings Plug (IK)] Posting request to web hook
[7/24/2023, 2:50:43 PM] [Smartthings Plug (IK)] Received response from webhook {"timeout":true,"events":[]}
[7/24/2023, 2:50:43 PM] [Smartthings Plug (IK)] Posting request to web hook
this is from the smartthings live events
Jul 24 23 2:57:58.777
CONTROL_EVENT
{ "type": "CONTROL_EVENT", "data": "welcome", "lastEventId": "", "origin": "https://spigot-regional.api.smartthings.com" }
Jul 24 23 2:56:58.621
CONTROL_EVENT
{ "type": "CONTROL_EVENT", "data": "welcome", "lastEventId": "", "origin": "https://spigot-regional.api.smartthings.com" }
Jul 24 23 2:55:58.475
CONTROL_EVENT
{ "type": "CONTROL_EVENT", "data": "welcome", "lastEventId": "", "origin": "https://spigot-regional.api.smartthings.com" }
Jul 24 23 2:55:05.459
CONTROL_EVENT
{ "type": "CONTROL_EVENT", "data": "welcome", "lastEventId": "", "origin": "https://spigot-regional.api.smartthings.com" }
Beta Was this translation helpful? Give feedback.
All reactions