maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
803 stars 233 forks source link

TV Support Example #395

Closed joaodforce closed 3 years ago

joaodforce commented 3 years ago

I making an adapter to control my LG TV via it's serial port. I got a hold of the protocol it uses, and It is possible to control anything trough it. Change volume, input. directions etc...

However Im not familiar with the ESP-Homekit SDK yet, Im studying it and the examples, however there is no example of setting the acessory to show as an actual TV on the home App. I've gotten the core methods working, I just need to bing the correct services and characteristics to make it appear right.

If someone can give me a light on the matter I would gladly make a PR to add the TV accessory as an example.

maximkulkin commented 3 years ago

Check this repository, it's a TV accessory that controls TV through IR commands.

andrei-gavrila commented 3 years ago

Here is an example on using the input sources - that can be freely renamed in Homekit - to set up a list of favorite channels for easy switching: https://github.com/maximkulkin/esp-ir/issues/11

More details are available in the post.

@maximkulkin BTW, a reply to that issue would be highly appreciated 😛

joaodforce commented 3 years ago

omg! this is perfect! thanks, I'll be working with the provided examples.

pocketscience commented 3 years ago

I making an adapter to control my LG TV via it's serial port. I got a hold of the protocol it uses, and It is possible to control anything trough it. Change volume, input. directions etc...

However Im not familiar with the ESP-Homekit SDK yet, Im studying it and the examples, however there is no example of setting the acessory to show as an actual TV on the home App. I've gotten the core methods working, I just need to bing the correct services and characteristics to make it appear right.

If someone can give me a light on the matter I would gladly make a PR to add the TV accessory as an example.

@joaodforce Can you post a link to the LG protocol documentation please? Thanks.

joaodforce commented 3 years ago

@pocketscience Sure thing, I used the one from this site

https://support.justaddpower.com/kb/article/36-lg-rs232-control/

I also have this PDF, but I don't remember where I got it from, I think I printed from some website.

RS-232C - LG TV Control.pdf

I don't know how many LG TVs share this protocol however.