Open runemoennike opened 1 month ago
I created an experimental environment to test the response time of the Addon Notifier, with a button in the Overview screen, as a trigger to start an automation. Under these conditions the sound starts instantly. I recommend doing a similar test to understand if the delay can be attributed to the doorbell. I need more details on this bell to make some hypotheses.
Thank you! I will do some tests and see if I can get some clues.
I get the same delay of about a second when calling the service directly from the developer tools. Maybe my Pi is just a bit overloaded :)
Since the delay in response time is also present in local tests, I would recommend the following insights.
Il giorno mer 17 lug 2024 alle ore 15:02 Rune Mønnike < @.***> ha scritto:
I get the same delay of about a second when calling the service directly from the developer tools. Maybe my Pi is just a bit overloaded :)
— Reply to this email directly, view it on GitHub https://github.com/guido-syseng/Hassio-Addons/issues/4#issuecomment-2233270829, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS3PGVPDPXV2JC5YMAEWRKLZMZTO5AVCNFSM6AAAAABJ4PWLJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGI3TAOBSHE . You are receiving this because you commented.Message ID: @.***>
The button is an "Aqara Wireless Mini Switch" connected via Zigbee to a Conbee 2 on the Pi. However, I don't think that's the issue, as I get about the same delay using the Developer Tools like this:
Again, it's only slightly more than a second, so it's no big issue. It was just since there was no delay using paplay in the Terminal&SSH add-on, I was looking for a way to achieve the same via an automation.
First of all thank you for this add-on!
I experience about a 1 second delay, from calling the service to send stdin to the add-on before the sound plays. I use it for our doorbell, and would love it to be closer to instantaneous. Is there any way to lower or get rid of this delay? If someone could point the way I'd be happy to make a PR.
I tried using paplay or ffplay via a shell_command configuration, but it seems they're no longer part of the Home Assistant built. Shame, because it works great via the Terminal&SSH add-on.