Zacknetic / HomebridgeMagicHome-DynamicPlatform

Homebridge Plugin for MagicHome LED controllers and light bulbs
Apache License 2.0
61 stars 11 forks source link

[BUG] Changing a light state from outside of Homebridge doesn't sync back to Homebridge #123

Open giladgd opened 2 years ago

giladgd commented 2 years ago

Describe the bug

When I turn a LED strip on or off using a Google Nest device or using the Magic Home app, the LED controller state doesn't update on Homebridge automatically, which makes it impossible to crate automation the depend on the on/off state change of the light.

I also noticed that the status in HomeBridge updates instantly when opening the HomeKit app on an Apple device, but it doesn't update in the background.

To Reproduce

Steps to reproduce the behavior:

  1. Open the HomeKip app, navigate to the room when a LED strip device is present, make sure it's off in the app and in reality

  2. Ask a Google Nest device to turn on the light

  3. The light status in the HomeKit app doesn't update.

  4. Open the HomeKip app, navigate to the room when a LED strip device is present, make sure it's off in the app and in reality

  5. Open the Magic Home app on another device

  6. Turn on the light using the Magic Home app

  7. The light status in the HomeKit app doesn't update

Expected behavior

After turning on the light from a Google Next device or the Magic Home app, the light status should automatically update in the Homekit app by itself.

Additional context

I think adding an option to do state polling could help.

Host Hardware

Homebridge and MagicHome