ha-hls-player
to provide updates on current video time to make sure camera cast to Nest Hub actually plays video and didn't get stuck
#20087
Unanswered
maxosprojects
asked this question in
Other feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a dashboard with camera feed via
hui-picture-entity-card
. The dashboard worked fine at first, but pretty quickly started to turn off, get stuck on the page with HA icon saying "Connected", or the picture card showing HA icon and no camera feed.I've made a few automations that would track the status of the cast and regularly restart the cast, like the one proposed here. However, eventually that stopped working too, to the point that restarting the cast gets stuck on the "Connected" page right away, so another restart is requiered right away, or having to issue a reload for the dashboard several times with this:
Plus, cast blinking every minute when it restarts, event when unnecessary (so just in case) is quite annoying.
The fundamental problem is that there doesn't seem to be a way to tell that the video is actually playing when HA thinks the cast is in
playing
state.Those issues led me to make this HACS hack-card, which:
currentTime
property of the video every 2 secondsinput_number.nest_hub_cast_liveness_video_curr_time
number helper with that timeOn the backend side:
configuration.yml
thatinput_number.nest_hub_cast_liveness_video_curr_time
is excluded fromrecorder
since that would record too much of unnecessary datainput_number.nest_hub_cast_liveness_video_curr_time
hasn't changed in the last 30 seconds, restarts the castThis is the code of that card:
Expand
So the ask is to include something like the above code into
ha-hls-player
, and perhaps other cards that support video, to have the feedback from the ui that the video is actually playing, and not stuck for whatever reason.I could make a PR with the necessary changes once/if there is an agreement on the value of this feature and the way to implement that.
Beta Was this translation helpful? Give feedback.
All reactions