-
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
Feature Request: Support Channel Switching (show channels as inputs) #45
Comments
Hey @psycoticninja ! Thanks for reaching out. I believe this should work already. Or at least, I see the channel in my Home app. Although, it doesn't work reliably: the Home app queries the state only every once in a while, which means that if you just turned it on, it will only display "On" instead of the channel name. |
Thanks for the update - good to know it is implemented, unfortunately it does not seem to work at all (even after periods of time with the TV On) with my Hisense 49R4 TV. It'd be a pretty cool thing to display if it worked - but seems this is a HomeKit problem now, not a plugin issue. |
Have you tried force quitting the Home app? It does work for me, but if I want it to work immediately after turning on the TV, I have to force quit the Home app. This also happens with other plugins as well. |
By force quit do you mean close the app from the app switcher? If this is the case, done this many times. Typically I don't run Home in the background, just do what I need to do in the app then completely close it. Just now the TV has been for approx 40 mins, and in Home app I open and just see it as "TV", rather than the current program/channel. |
Oooh wait, I'm dumb. I completely misunderstood your initial report: I thought you wanted the channel (as-in "the input") to be displayed, not the actual TV program name. I checked my TV model and it doesn't report what yours report (I only see that it's on live TV, it doesn't tell me anything about the program), so it'd be complicated for me to implement. Would you be okay taking a stab at this? After setting up your development environment (install NodeJS, Python, running I do believe, however, it might create some additional headaches with the fact that HomeKit wants inputs to be static: for example, I tried in the past to have application there (such as Netflix, Prime Video, etc.) but I was not able to do it, because when turning on the TV, it takes a few seconds to retrieve the list of applications and HomeKit would timeout and not show any input. |
More Information if someone is willing to implement this: just displaying the channel name or the progname is not really doable without a bit more changes. The mentioned lg-plugin does this by letting users configure channels as input sources. So someone would need to:
|
Is your feature request related to a problem? Please describe:
Not related to a problem.
Describe the solution you'd like:
When the TV is On, when running
python3 hisensetv.py IP_ADDRESS --get state -ifname ifname
, the resulting output includes a "progname" and "channel_name".When the TV is on TV input/statetype is livetv, to replace the "On" in Home to either the progname or channel_name data.
Describe alternatives you've considered:
Not applicable.
Additional context:
Came across this thought from another Homebridge plugin - https://github.com/grzegorz914/homebridge-lgwebos-tv
The text was updated successfully, but these errors were encountered: