-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
The probe if online seems too slow for Siri #50
Comments
Unfortunately it takes some time until the TV is available in the network and responds as online, when it takes longer then this is the response which you will get, but the TV will should anyway turn on. |
WiFi, but perfect reception. Maybe the setState should fake the status of the fake Switch and at the next interval the normal function checks the real state |
And: the „boot“ of the TV is very fast, I have a pretty new OLED one ;) |
I think this could be due to WiFi. It doesn't matter how fast the TV boots, the WiFi needs some time authenticate and connect to the network. Maybe with a LAN connection it would be faster. Any chance for you to try it out? |
It works with LAN. I changed back to WiFi. While I was testing the Ping was not responding anymore after the TV turned off (to be expected), but after a few tries the Ping stayed stable even though the TV was offline. This confuses webosTvAccessory.prototype.setState, because it does check if the module is connected or not to see if the TV is on or not - not the actual status of the TV. I know that it is unable to check anything via the API, while Layer3 is not working. I removed the "if (!this.connected)" from the "Turn On" part - the WoL request can be send if the ping is reachable and the module connected. Should I create a PR for this? |
Ok, so i think #51 has something to do with it. I have an idea how to implement this properly. |
For me its just plain simple. Just say "Hey Siri Turn off LG TV in living room or "Hey Siri Turn on LG TV in living room ". |
This is a very valid point from moonchen: We should check that also. If you share your idea I could have a look also! :) |
I will try it out today, if i can reproduce it then i will attempt a fix. |
Ok, so there is definitely the issue with the power, so if i ask Siri to turn off the TV and it is already turned off it should report with success, that makes sense. |
From a logical standpoint this is absolutely correct. From a HomeKit standpoint I disagree kindly - @moonchen explained that perfectly. If it’s used in a HomeKit scene the scene will not complete successfully and Siri will report an error. I agree that the volumeService has no point in being used in a scene, but why should it throw an error in any case. Best would be if Siri reports something like the scene is completed successfully and if you mute a turned off TV alone it should report something like „this does not need to be executed“ or whatever - but this is not possible. |
I just tried it with my Hue lights, as soon as i cut the power of my lamps Siri will also responds with "device is not responding", so if anyone has such lamp in a scene it will also throw an error. |
Yeah but in this case the device is actually not responding. |
Actually when i set a turned off lamp to "red" it will turn the lamp on and set it to red. |
I actually tried it with my LightStrips before posting - not for me. Strange. But: no error in any case :) |
True... |
Turn off twice: second time error |
Please if you do the tests then make sure that the OLED refresh is not running because this is just delivers wrong results and unnecessary confusion... |
You cannot turn this off. This is not the pixel refresh which takes an hour or so.The TV will turn on at that point when you sent the WoL request. Also I just turned the TV via your Module off and it showed up on again in HomeKit - even though the TV was off. |
As far as muting, there is an unfortunate side effect of the volume control being a light bulb. If I tell Siri to “turn off lights”, it will try to mute the TV as well. If the TV is off at that time, I will get “device is not responding”. I understand the developer argument for erroring out, but as a user I wouldn’t want the error message, since everything happened according to my wishes. |
I would go further to say that unmuting while the TV is off should succeed as well. The only time I expect the “not responding” message is when the TV is actually disconnected from the network, power, is broken, or is misconfigured. |
@DanielWeeber Like i said before you test it make sure it is off, you need to wait about 10 minutes before testing it, all other tests are just misleading... @moonchen That is true, i noticed that too that when i want to turn off all light it also tries to mute the TV, that is why there is a switch which allows you to disable the volume service. This I am not sure about, for my understanding is the "device is not responding" should come up when the tv is actaully not responding, that includes also when the TV is in standby since any LG API doesn't work at that time thus the TV cannot respond. You will get the same error message with any other HomeKit device when it is unreachable and not responding. If you are not at home and try to mute the TV but the TV is off you get a success message but actually the TV is not responding so you got a wrong feedback, and when you come home you will see that the TV is not on which is what you have not expected. This is a double sided card and this needs to be carefully though off. |
With another module (homebridge-marantz-volume) we came to the conclusion to change the LightBulb to a Service.Fan. We only had to change two lines for that. We also made it optional via the config file.@marcin: Same Problem this morning. |
Making this configurable is not a solution i think, i would rather keep the configuration options simple. At some point I and the users will lose track of all the configuration options if i add one for every simple thing... Because the TV is still on in those 10 minutes, this is how OLEDs work. I will try to somehow fix the OLED problem but this is not part of this issue here. |
But it's not a simple thing, it's a valid point to change. Also the default for everyone would not be changed. If you do not specify the configuration option, nothing will change. Yes, Speaker Support is added within HomeKit, but not within Home.app. If you add a Speaker it would be available in other HomeKit Apps or Eve, but not within the OG Home App. Also merdok that was exactly my issue here.. Everything which I noticed from time to time for turning off/on my OLED via the module. |
I would rather prefer not to do the config option at this time. The mute should now always return success so there will not be any issues with scenes. Can such speaker device be controlled via Siri? The OLED issue is not easily fixed, i already explained it. It is because the TV still is physically on, the screen is just turned off when the small pixel refresh is running... My latest should fix the Siri response when TV is on... |
No, as per my knowledge. |
Isn't HomePod such a speaker device? |
You cannot emulate any Airplay2 devices, yet. //edit: Let me explain the Service.Speaker again, I forgot something: It is possible to use that, but only as part of a video-doorbell. Not as a standalone speaker. |
That is odd... |
@moonchen did you test my latest commit? Is your issue resolved? |
Yes. Siri no longer says "device not responding" if the TV is off. |
Ok, good to know. |
If I use Siri with HomePod to turn on the TV the response seems too slow for Siri to recognize. It says, that "some devices are not responding". After a few more seconds the "turning wheel" in HomeKit is gone and the Switch shows that the TV is turned on.
Maybe the check for the availability of port 3000 is too slow?
The text was updated successfully, but these errors were encountered: