brutella / hc

hc is a lightweight framework to develop HomeKit accessories in Go.
Apache License 2.0
1.74k stars 189 forks source link

accessory tv #194

Closed xxandev closed 1 year ago

xxandev commented 3 years ago

Hi I have a question on TV all characteristics of the device are not displayed only Active and Input Sources LIB hc 1.2.3 (aac10474c5d81a74dc91be5db4cca38301d1ec8a) GO 1.15.8 OS linux ubuntu 20.04 lts Apple device ipad, OS 14.4

this example doesn't work https://github.com/brutella/hc/blob/master/_example/tv/main.go Unable to Add Accessory (Accessory is out of compliance)

https://github.com/alpr777/homekit https://github.com/alpr777/homekit/blob/main/accessory_television.go https://github.com/alpr777/homekit/blob/main/example/television/main.go

cloudkucooland commented 3 years ago

https://github.com/cloudkucooland/TooFar/blob/main/devices/txnr686.go

That's a configuration that works for me. The AddInputs is pretty specific to this device, but I've got comments in there for what does and doesn't work as far as characteristics and services.

Yes, other than input-source and power, I've never gotten any of the other values to display in the Home app. I do have the internal temp sensor showing, but that isn't helpful at all.

xxandev commented 3 years ago

no matter what I do, only 2 characteristics are still displayed (Active and Input Sources)

https://github.com/alpr777/homekit/blob/main/example/television/README.md

cloudkucooland commented 3 years ago

no matter what I do, only 2 characteristics are still displayed (Active and Input Sources)

https://github.com/alpr777/homekit/blob/main/example/television/README.md

Those are the only two I've gotten to display as well. Volume is controlled, but not displayed (I use iPhone's volume buttons when in "remote" mode). The remote works as well, not quite as many features as with AppleTV, but it still works.

What else are you trying to get to show? Perhaps the home app doesn't actually display it for anything.

xxandev commented 3 years ago

I wanted a simple TV remote with a homekit) switching channels would be nice, more precisely, to be displayed Television.RemoteKey (Rewind, Exit, Play/Pause, Info, Next, Prev ...). Because many TVs are IP controlled, they have their own control applications. And if the Television.RemoteKey was displayed in the homekit, it would make it possible not to use the standard application. Thank you for the answer)

xxandev commented 3 years ago

Sorry) After you wrote that perhaps control should not come from the Homekit app Everything became obvious) It really is, you are right) There is a service remote control

You helped me, thanks)

UPDATED: https://github.com/alpr777/homekit/blob/main/example/television/README.md

cloudkucooland commented 3 years ago

Happy to help. Perhaps someone could write a macOS app to act as the remote too?

claywd commented 3 years ago

Working on it the logic for an app. I may try and throw a GUI if I get some time after current project.