Closed kmnedd closed 3 years ago
I can say with high confidence there is nothing wrong with the code as it works for thousands of users.
The only thing I can think of is that events are just not making it from Hubitat to the plug-in. Try enabling the useCloud flag in the plug-in to see if the issue resolves itself.
If it starts working then inbound traffic to the device hosting the plug-in the port might be blocked for inbound.
You should see the event received from Hubitat for all the device events where the state changes in the the Hubitat logs after you see the device command in the logs
I figured it out.
I had listed the IP address and port for the Hubitat hub in the config file. When I removed both (as they are optional) it worked and I started receiving HomeKit notifications again.
Thanks,
Kevin From: tonesto7 @.> Date: Friday, August 13, 2021 at 12:06 PM To: tonesto7/homebridge-hubitat-tonesto7 @.> Cc: kmnedd @.>, Author @.> Subject: Re: [tonesto7/homebridge-hubitat-tonesto7] Incorrect Homekit Device States (#103)
I can say with high confidence there is nothing wrong with the code as it works for thousands of users. The only thing I can think of is that events are just not making it from Hubitat to the plug-in. Try enabling the useCloud flag in the plug-in to see if the issue resolves itself. If it starts working then inbound traffic to the device hosting the plug-in the port might be blocked for inbound.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/tonesto7/homebridge-hubitat-tonesto7/issues/103#issuecomment-898567651, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVF2MIIVQPK5QKQRK3LQXTTT4U7JJANCNFSM5CCGZKDA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
Glad you got it sorted out... You will be very happy with the integration now. It's super fast and very reliable
Verify the following before opening an trouble issue
Go over all the following points, and put an
x
in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!App Code
.About Your Setup
Expected Behavior
Status of devices in Homekit should reflect the actual status of the device as shown in the Hubitat app.
Current Behavior
I have a door lock and 3 garage doors that don't reflect the proper state in Homekit. When the lock is unlocked or when the doors are opened, I can there proper states in the Hubitat app, but Homekit shows them as closed. Upon triggering I can see them unlocking or opening, but Homekit quickly reverts back to locked or closed state despite them being otherwise. This actually happened while I was using Smartthings, so I converted to Hubitat. The same issue....perhaps there is something in the code that was ported over.
Steps to Reproduce (for bugs)
Context
**How has this issue affected you? What are you trying to accomplish?
The issue is serious enough to lose confidence in the plugin as I can trust the presented state of the device. I have tried to this on both HOOB and on a MacOS Homebridge instance. I am seeing the same behavior in both.
Providing context helps us come up with a solution that is most useful in the real world
Please include a copy of any relevant log output to assist in tracking down the bug config (1).pdf