Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

Television service? #218

Open vmarks opened 1 year ago

vmarks commented 1 year ago

Hi,

Does this support the television service?

I would like to set inputs, volume up/down/mute and power on/off for a television with this project.

hassbian-ABC commented 1 year ago

yes

PimV5755 commented 1 year ago

Pay attention that you cannot control this accessory from the Home app or using Siri. Other apps wil work. Apple does not allow uncertified (OpenSource HAP) accessories to audio and video. (Shame)

vmarks commented 1 year ago

That is incorrect.

Apple allows ravensystems/HAA ir blasters to control television input and volume for example in home and the control Center remote control widget.

On Fri, Jul 7, 2023 at 5:21 AM PimV5755 @.***> wrote:

Pay attention that you cannot control this accessory from the Home app or using Siri. Other apps wil work. Apple does not allow uncertified (OpenSource HAP) accessories to audio and video. (Shame)

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625118431, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSWUY7NNEIFP3KDN3TZBDXO7IIJANCNFSM6AAAAAAWO6LWRA . You are receiving this because you authored the thread.Message ID: @.***>

PimV5755 commented 1 year ago

That would be great. I tried to make a "speaker" accessory to control the volume of an amplifier/speaker. The accessory paired fine but in the Home-app there came the message that it is not supported. Do you have made it working?

Here ther is also the same problem mentioned (few years ago) https://github.com/homebridge/homebridge/issues/1326

vmarks commented 1 year ago

I have an IR blaster running ravensystems/haa that controls inputs and volume of a samsung TV.

Separately, I have homebridge running an onkyo receiver plugin which appears to homekit like a TV for inputs, and uses a fan speed or lamp dimmer (config option) to add a volume slider to homekit. Without that, you have to open control center, tap on remote, and use the volume buttons to control the volume of the receiver or TV.

but… it works.

On Jul 7, 2023 at 10:12:18 AM, PimV5755 @.***> wrote:

That would be great. I tried to make a "speaker" accessory to control the volume of an amplifier/speaker. The accessory paired fine but in the Home-app there came the message that it is not supported. Do you have made it working?

Here ther is also the same problem mentioned (few years ago) homebridge/homebridge#1326 https://github.com/homebridge/homebridge/issues/1326

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625476884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSWU6I4MHS5CF7S2QMMG3XPAKMFANCNFSM6AAAAAAWO6LWRA . You are receiving this because you authored the thread.Message ID: @.***>

PimV5755 commented 1 year ago

Yes, through Homebridge it works. However, I prefer the native setup so that I can use Siri. BTW I made a HomeKit “gateway” to control my Denon AVR

Op vr 7 jul. 2023 om 16:39 schreef Victor Marks @.***>

I have an IR blaster running ravensystems/haa that controls inputs and volume of a samsung TV.

Separately, I have homebridge running an onkyo receiver plugin which appears to homekit like a TV for inputs, and uses a fan speed or lamp dimmer (config option) to add a volume slider to homekit. Without that, you have to open control center, tap on remote, and use the volume buttons to control the volume of the receiver or TV.

but… it works.

On Jul 7, 2023 at 10:12:18 AM, PimV5755 @.***> wrote:

That would be great. I tried to make a "speaker" accessory to control the volume of an amplifier/speaker. The accessory paired fine but in the Home-app there came the message that it is not supported. Do you have made it working?

Here ther is also the same problem mentioned (few years ago) homebridge/homebridge#1326 https://github.com/homebridge/homebridge/issues/1326

— Reply to this email directly, view it on GitHub < https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625476884>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AACSWU6I4MHS5CF7S2QMMG3XPAKMFANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625513769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKZ5LWYVD5KCVPTHKOA3UDXPANQZANCNFSM6AAAAAAWO6LWRA . You are receiving this because you commented.Message ID: @.***>

vmarks commented 1 year ago

I agree, I prefer to not use homebridge. But the point I was making was that open source HAP works with volume.

I would like to replicate your Denon control. Are you able to share how you did it? I was thinking of using ravensystem/haa and mapping the TV configuration to the AVR urls that Denon uses.

On Jul 7, 2023 at 10:58:50 AM, PimV5755 @.***> wrote:

Yes, through Homebridge it works. However, I prefer the native setup so that I can use Siri. BTW I made a HomeKit “gateway” to control my Denon AVR

Op vr 7 jul. 2023 om 16:39 schreef Victor Marks @.***>

I have an IR blaster running ravensystems/haa that controls inputs and volume of a samsung TV.

Separately, I have homebridge running an onkyo receiver plugin which appears to homekit like a TV for inputs, and uses a fan speed or lamp dimmer (config option) to add a volume slider to homekit. Without that, you have to open control center, tap on remote, and use the volume buttons to control the volume of the receiver or TV.

but… it works.

On Jul 7, 2023 at 10:12:18 AM, PimV5755 @.***> wrote:

That would be great. I tried to make a "speaker" accessory to control the volume of an amplifier/speaker. The accessory paired fine but in the Home-app there came the message that it is not supported. Do you have made it working?

Here ther is also the same problem mentioned (few years ago) homebridge/homebridge#1326 https://github.com/homebridge/homebridge/issues/1326

— Reply to this email directly, view it on GitHub <

https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625476884>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AACSWU6I4MHS5CF7S2QMMG3XPAKMFANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625513769>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AUKZ5LWYVD5KCVPTHKOA3UDXPANQZANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625541853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACSWU5JNYPFZ54OYOYN4EDXPAP2VANCNFSM6AAAAAAWO6LWRA . You are receiving this because you authored the thread.Message ID: @.***>

PimV5755 commented 1 year ago

Sure. To make it work with Siri I made it a Lightbulb and limited the control URL to on/off and volume. I did make the double direction work. So if you use the remote or the volume knob, and the on/off it does update HomeKit (as it should) From that you can add more if you go for your solution. I will post an archive with th sample when I am home.

Op vr 7 jul. 2023 om 17:02 schreef Victor Marks @.***>

I agree, I prefer to not use homebridge. But the point I was making was that open source HAP works with volume.

I would like to replicate your Denon control. Are you able to share how you did it? I was thinking of using ravensystem/haa and mapping the TV configuration to the AVR urls that Denon uses.

On Jul 7, 2023 at 10:58:50 AM, PimV5755 @.***> wrote:

Yes, through Homebridge it works. However, I prefer the native setup so that I can use Siri. BTW I made a HomeKit “gateway” to control my Denon AVR

Op vr 7 jul. 2023 om 16:39 schreef Victor Marks @.***>

I have an IR blaster running ravensystems/haa that controls inputs and volume of a samsung TV.

Separately, I have homebridge running an onkyo receiver plugin which appears to homekit like a TV for inputs, and uses a fan speed or lamp dimmer (config option) to add a volume slider to homekit. Without that, you have to open control center, tap on remote, and use the volume buttons to control the volume of the receiver or TV.

but… it works.

On Jul 7, 2023 at 10:12:18 AM, PimV5755 @.***> wrote:

That would be great. I tried to make a "speaker" accessory to control the volume of an amplifier/speaker. The accessory paired fine but in the Home-app there came the message that it is not supported. Do you have made it working?

Here ther is also the same problem mentioned (few years ago) homebridge/homebridge#1326 https://github.com/homebridge/homebridge/issues/1326

— Reply to this email directly, view it on GitHub <

https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625476884>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AACSWU6I4MHS5CF7S2QMMG3XPAKMFANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625513769>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AUKZ5LWYVD5KCVPTHKOA3UDXPANQZANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625541853>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AACSWU5JNYPFZ54OYOYN4EDXPAP2VANCNFSM6AAAAAAWO6LWRA>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625546300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKZ5LUWRLT2J3NNEJKG4CTXPAQGRANCNFSM6AAAAAAWO6LWRA . You are receiving this because you commented.Message ID: @.***>

hassbian-ABC commented 1 year ago

I used IRremoteESP8266 and created a TV service

hassbian-ABC commented 1 year ago

IMG_0113

hassbian-ABC commented 1 year ago

IMG_0114

PimV5755 commented 1 year ago

Nice.

Op vr 7 jul. 2023 om 17:12 schreef img @.***>

[image: IMG_0114] https://user-images.githubusercontent.com/37896214/251784325-7425481a-4669-4ce1-9d5b-f217c05696a0.png

— Reply to this email directly, view it on GitHub https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/218#issuecomment-1625562202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKZ5LWDFJZB6OGYAWO3HHDXPARPVANCNFSM6AAAAAAWO6LWRA . You are receiving this because you commented.Message ID: @.***>

bartosz-777 commented 4 months ago

@hassbian-ABC could you share the code for tv remote(im interested in HomeKit part)? im trying to make it and if you already done it it'd be easier for me