-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Siri power control "failed to respond" (Active characteristic in Switch service) #10
Comments
The timeout is implemented by HomeKit, not by this plugin. I think its limit is 10 seconds for each request. If the appliance is taking longer than the HomeKit timeout then the only way to avoid it would be to indicate success without waiting for the Home Connect response, but that would hide real failures. Which Home Connect API requests are taking a long time, and how long are they taking? A log with debug enabled ( |
Thanks for your fast reply @thoukydides With the log. I wouldn't want to post it public, because of other plugins there are a lot of other things in it. Any Idea? Sorry not so familiar with the logs. |
Unfortunately the video doesn't tell me anything useful.
This suggests that it is not actually a timeout. It is more likely that the plugin is returning an actual error to HomeKit.
If you are comfortable sharing the log with me then you can send it via email (the envelope icon on https://www.thouky.co.uk/contact.html). Otherwise you will need to read the log yourself to identify the problem. I do not see this issue with either my physical appliances or the simulators, so without the log there isn't much I can do to resolve it. |
Thanks @thoukydides Mail is out and happy to hear from you. I appreciate the time and friendly help you give. |
Thank you for the log. Unfortunately, it looks like it had HAP debug enabled (using However, an initial inspection suggests that the plugin is responding to the HomeKit requests within a reasonable time period and with successful result. The first ON took 1 second (although the appliance then took a further 48 seconds before it was finally ready). The OFF took 6 seconds, and the second ON took 5 seconds. I will see what else I can conclude from a more careful examination of the log... |
I'm running an Instance so I edited the /etc/default file If there is another way to give you more info I'm happy to follow your instruction. At the moment I tried several times turn on and off the machine with Siri HomePod, also on Siri voice command on iPhone 11 Pro and every time the coffee machine is turning on/of but Siri is always announcing that the device is not giving any response. |
It looks like the Home Connect servers stopped working around 17:02 GMT today. In my own logs I started getting I am now unable to establish any connection to the Home Connect servers, so it looks like that's the end of development for today... |
Enjoy your evening. We will talk later. ;) Thanks. And again, if you use https://www.buymeacoffee.com or accept PayPal happy to help with a beverage. |
OK, I have managed to reproduce this issue. It only occurs when using Siri to control the appliance power, resulting in the response that This problem does not happen when starting a program, not even with the response delayed to take 8 seconds. (Increasing the delay beyond 9 seconds starts to give a Neither does it occur when using a HomeKit app (whether Apple Home or a third-party app) to control the appliance power. I normally test the plugin using the Home+ app, not using Siri, which is why I hadn't noticed the problem myself, and why I failed to reproduce it yesterday... Using exactly the same code to handle the On characteristic of the power and program Switch services does not change the behaviour - the power Switch service still gives the My current suspicion is that the cause is the addition of non-standard characteristics into the power Switch service in the most recent (0.13.0) release. (Previously they were contained in a custom service, with the power Switch service used as-is, but I changed that to improve how the characteristics are displayed in the Home+ app.) More investigation required... |
By a process of elimination, the problem is caused by the Active characteristic. It appears that when Siri is instructed to turn the appliance on or off it writes to both the (standard) This plugin uses the Clearly adding an |
I will fix this in the next release (once I have figured out the best way to do so). However, this may be a week or two since I am in the middle of some other changes that will take a while to complete... |
You are awesome. What a great investigation and thanks for the background info. |
My current thinking is that it would be best to add a new "current program"
Hood appliances would lose these characteristics since the plugin handles their programs differently... although it may make sense to add
|
This should be fixed in v0.14.0 which I have just released. |
Thanks for this update, I use the homebridge-alexa plugin with your plugin, but the power switch was not working. Now, with this update, it works great! |
Thanks @Kohle81 for letting me know that this change also helps with homebridge-alexa. I don’t use that plug-in or Alexa myself, so please raise an issue if I break it again. I will close this issue once @DJay-X has confirmed that it also fixes power control from Siri. |
@thoukydides Thanks a lot. After a few tries I can also confirm that turning on/off the coffee maker with Siri on HomePod works instant and without any issue now. Fantastic work with the entire plugin in such short time.♡ Awesome. Thanks for sharing with us. |
Thanks @DJay-X. It looks like this issue is now resolved, so I will close it. |
@thoukydides I have the same issue again "I noticed that when switch on the coffee maker Siri is giving feedback that the device is not responding." Or when I ask to something like "Espresso". |
I have just tested Siri control if appliance power with v0.17.2 and it is working fine for me using a HomePod. Regardless, it cannot be the same as the problem you originally reported in this issue because that was due to the plugin adding an If this is reproducible then please create a new issue for it and provide a debug log. |
I noticed that when switch on the coffee maker Siri is giving feedback that the device is not responding. However the device is turning on and cleaning. It seems Siri/HomeKit is not noticing the "on" progress and assume too quick as not responding. Maybe the timeout could be a few seconds longer?Not sure if this could be a solution or even possible?
Thanks in advance.
The text was updated successfully, but these errors were encountered: