prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
51 stars 22 forks source link

Add Support for "Audio" Device Type #14

Closed mgrosman closed 2 years ago

mgrosman commented 3 years ago

Thanks for creating this plugin! Would it be possible to add support for Audio device group?

prasad-edlabadka commented 3 years ago

What would audio device map to? There isn't a "Audio device" in HomeKit. Airplay 2 is not supported by home bridge.

mgrosman commented 2 years ago

Maybe it can be mapped to "uncategorized"? Or even as a switch if that would enable to control on/off? For instance in the Google home app the audio device is recognized as audio but cannot be controlled for any functions other on/off

bkarlson commented 2 years ago

Yes, even controlling some device as a switch would be helpful, this way we can activate amplifiers, TVs etc.

bkarlson commented 2 years ago

@mgrosman , my use case is to turn off/on the amplifier along with the projector. I added "fan" IR control to Tuya app, chose Other -> Manual mode and set up only ON button from my amp remote. Now I can turn on/off the amp via "fan" appliance in Homekit, basically it's a switch and works great for my purpose ;)

prasad-edlabadka commented 2 years ago

I will add a generic "Switch" to control on and off if device supports. This will allow you to switch on or turn off any device.

prasad-edlabadka commented 2 years ago

Added support in the latest release.

mgrosman commented 2 years ago

@bkarlson - clever, nice workaround :)

@prasad-edlabadka - cheers for adding the genetic switch support, sounds great. I'll give it a test in the coming days!