homebridge / HAP-NodeJS

Node.js implementation of the HomeKit Accessory Protocol (HAP)
Apache License 2.0
2.68k stars 630 forks source link

Support for channel up and down tv remote #941

Open ferensw opened 2 years ago

ferensw commented 2 years ago

Current Situation

The channel up/down buttons for the tv remote are not available. This is new in ios 15 for the apple tv remote in the control centre.

Proposed Change

Support for the channel up/down buttons in the new ios 15 remote. An addition of a Buttontype.

Additional Context

No response

ferensw commented 2 years ago

Like this:

image

seydx commented 2 years ago

I think this layout is only for apple tv (and maybe official certified tvs with siri?) and not for tv accessories

ebaauw commented 2 years ago

It’s AppleTV only. The Remote widget shows my new Sony TV with native HomeKit support just like the Homebridge TV accessories.

ferensw commented 2 years ago

Thanks for clearing this out. It's just a pity that the most used function of a tv remote (channel up/down) is not available. Or maybe I'm just to old-skool...

ebaauw commented 2 years ago

For Homebridge TVs, you can map these to the up and down, or to the left and right “buttons”.

thelofts commented 1 year ago

iOS 17 - Channel Up/Down and Menu buttons are in all TVs now (i wish it isn’t just beta bug) How to use HAP to catch the press of those? IMG_0168 IMG_0167

Supereg commented 1 year ago

Is that a HAP-NodJS based TV you are showing?

We have lost if known Keys/Buttons here https://github.com/homebridge/HAP-NodeJS/blob/9c9bd7101b2ab520a237c09da8017d18a5c2c7cc/src/lib/definitions/CharacteristicDefinitions.ts#L3078

there are some blanks we don’t know yet about (12-14)

this defines which keys are supported https://github.com/homebridge/HAP-NodeJS/blob/9c9bd7101b2ab520a237c09da8017d18a5c2c7cc/src/lib/definitions/CharacteristicDefinitions.ts#L3088. If channel keys don’t show with current HAP-NodeJS versions they are maybe located at >15 key ids.

tavicu commented 10 months ago

Do we have any update here?

n0rt0nthec4t commented 9 months ago

Following. Be interested to see an update that might allow leveraging these newly exposed items

ebaauw commented 2 weeks ago

I did set the Accessibility setting and am now seeing channel buttons for my Sonos TV as well as for the TVs from Homebriige ZP. They don't seem to do anything, though (iOS 17.6.1 on my iPad). When pressing the Channel Up button, the Arrow Down button activates (which it also does when pressing that area on the widget without the accessibility area. When pressing the Channel Down button, nothing happens.