kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
115 stars 37 forks source link

Have to ask siri twice for the lights to turn on #64

Closed JackSetaro closed 1 year ago

JackSetaro commented 3 years ago

The lights only turn on if I ask siri twice. The first time she says "sorry I did not get a response from your devices" Is this an issue can that be fixed? Thank you.

rmartella000 commented 2 years ago

Same problem here

kpsuperplane commented 2 years ago

Does this happen often? Unfortunately homekit gives me a very limited amount of time to complete the request, and it's possible there were some delays in the network

rmartella000 commented 2 years ago

It happens every time. It works fine from the home app but I have to do it twice with Siri and shortcuts.

anshumanbhatia commented 2 years ago

was there any move on this? I have the same problem

ipaqmaster commented 2 years ago

On homebridge v1.3.5 here. iOS 15.1.1 on an iPhone 12 Pro. Also having this problem for some things on homebridge for the past few months.

Very frustrating having to repeat to Siri to do something and Siri instantly gives up with response The XYZ is not responding. like the phone didn't even try. Immediately repeating the vocal command works instantly as desired the first time.

UniFi WiFi network with great signal strength to all devices including the phone and no noise on the channels the APs are configured for (Not a WiFi networking related problem)

This problem happens consistently for me after the phone screen has been off for at least 30 seconds. Long enough for the phone to enter a power saving sleep and stop responding to pings over WiFi.

It would be nice to solve. My home lights (LIFX, which are not on homebridge but rather added directly to HomeKit) never exhibit this issue and always work first try. I've only experienced this issue with homebridge appliances.

kpsuperplane commented 2 years ago

Hey @ipaqmaster, are you experiencing this with other homebridge plugins? It almost sounds like your homebridge server is going to sleep.

ipaqmaster commented 2 years ago

Hi kpsuperplane, I see your above comment mentioning how little time Homekit gives them little time to run and it does have my attention.

I have a few cmdSwitch2 modules and tthat module just runs shell commands. Very easy to use for people who spend a lot of time in shells.

These last two examples never exhibit this "not responding" issue and always work, taking the same 1-2 seconds as the aircon command if not sometimes longer. Yet that aircon command the iPhone always struggles to execute.

The homebridge server runs on the hypervisor as a CentOS 7 VM, it runs 24/7 and has no sleep state. (Unless you're referring to some internal sleeping state which homebridge enters after some idle time)


Even just now with my phone asleep -- I was able to say "turn on the TV", then "Turn on the surround" and those worked, then saying "Turn on the aircon" responded instantly saying it's not responding despite being the exact same ssh remoteHost sudo irsend send_once x y syntax as examples 3 and 4, which worked just now.

I don't know why it doesn't like the cmdSwitch2 aircon switch yet.

ipaqmaster commented 2 years ago

Ah sorry kpsuperplane, I didn't realize what tab I was in making this post, this isn't relevant to your module at all! I'll go and put my comments in the appropriate repo.

kpsuperplane commented 2 years ago

Thanks for the super in-depth response! As you mentioned, Homebridge does have an internal timeout, and while it isn't long, it's certainly noticeable (on the order of seconds). So when you say "siri instantly gives up" that probably means it's not the internal homebridge timeout that's going on here, especially since a repeated command works instantly!

This suggests something wonky is going on with your server (or homebridge install).

kpsuperplane commented 2 years ago

Oh, LOL. No problem haha

ipaqmaster commented 2 years ago

Yeah I can't believe it, so sorry about that lmao. But the information you've provided me with is still helpful and relevant to my issue so I'll look into potential timeouts either down the line or on homebridge itself. Thanks again for your time.