tonesto7 / homebridge-hubitat-tonesto7

Hubitat Homebridge Plugin
107 stars 34 forks source link

Incorrect Homekit Device States #103

Closed kmnedd closed 3 years ago

kmnedd commented 3 years ago

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!


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)

  1. Execute an unlock or open door command form Homekit
  2. I see it begin, but the icon gets stuck on "unlocking" or "opening".
  3. The lock unlocks or the door opens.
  4. I see the action execute in the Homebridge log file.
  5. However, the end state of the device is not reflected in the Homebridge Accessories tab of Hombridge UI.
  6. If I close the Home App, while the "unlocking" or "opening" is still on the screen and open it again, the devices appear in their beginning "locked" or "closed" state, even though they are unlocked or open wit the Hubitat app indicating this as well.

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

tonesto7 commented 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

kmnedd commented 3 years ago

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.

tonesto7 commented 3 years ago

Glad you got it sorted out... You will be very happy with the integration now. It's super fast and very reliable