-
Notifications
You must be signed in to change notification settings - Fork 8
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
Media player / sensors don’t update #115
Comments
Anything in logs showing disconnects? |
Unfortunately not. I went to the Yoto just now, saw it showed idle so plugged a card in and let it play. Still showed idle in HASS. So I turned debug logging on and then opened the Yoto app. It immediately updated to 'playing' in HASS (this was around 16:49/16:50). No logs listed for Yoto at all until I opened the app but then these followed in the debug file. Almost like the player wasn't sending any commands until I used the app to wake it? Even though it was technically awake as it was playing. Anything else I can check for you? 2024-09-09 16:50:14.459 DEBUG (Thread-9181 (_thread_main)) [yoto_api.YotoMQTTClient] yoto_api - MQTT Topic: device/y2ENCAR0tJ9EVzZKlo6bVvQv/status |
What I find is the Mqtt server stops sending updates after some time. We have to poke the server to wake it up again. Right now some logic exists to do that after an interval. Sounds like it may need to be shorter. I'm finding mine works fine, but may have other factors. |
Okay, let me know if I can help at all. Right now I can just set an automation to reload the integration every hour or so I guess, see how that goes. |
What's your update interval set to? That interval is focused on "config" items like lights etc. |
You mean on the Yoto integration? The scan interval is just the default, 60 mins. Would setting it lower give me a more responsive update on the media player side of things? Basically I want to tie automations to playback start and stop so ideally want to get it fairly reactive. |
Shouldn't be needed, play back should come in real time. That polling interval is just configuration items not playback. I'll double check the interval that it kicks off the "request playback" update. Like opening the app I wrote in something to ping the server if it hasn't had an update in awhile. Since server seems to fall asleep after awhile. |
Have you tried this out recently? Do you still have this issue? |
Actually, no, it appears to be fixed. I've noticed it's working and responsive now so that's great thanks. |
Just something I’ve noticed over the last couple of days, our Yoto doesn’t update the media player after a period of time. It just shows Idle even if something is playing. If I open the Yoto app then the media player updates in HASS and shows the currently playing item.
Strangely I can still control the volume from HASS but the state won’t update to Playing until the Yoto app has been opened.
I also noticed this morning that other sensors like Charging or Ambient Light didn’t update either. Both showed old data until I reloaded the configuration.
The text was updated successfully, but these errors were encountered: