Apollon77 / ioBroker.tuya

ioBroker adapter to connect to several small and cheap Wifi devices that care connected to the Tuya Cloud and mostly use the Smartlife App/Alexa-Skill
MIT License
89 stars 23 forks source link

Get RGB into HUE #518

Open OberfragGER opened 1 year ago

OberfragGER commented 1 year ago

Hi, there is a Tuya-Plugin for Homekit, but this works just a month an then u have to reenable the API.

To get all my lightbulbs e.g. into Homekit its necessary to have the RGB code as hue (and vice versa) . So it would be very nice to have an extra datapoint directly. Somehow im too stupid to build a proper blockly.

The formula is provide here. https://stackoverflow.com/questions/23090019/fastest-formula-to-get-hue-from-rgb

Apollon77 commented 1 year ago

How you exactly want to bring it "into Homekit"? Yahka Adapter or what?

OberfragGER commented 1 year ago

How you exactly want to bring it "into Homekit"? Yahka Adapter or what?

Yes. You have this characteristics for a light. image

Apollon77 commented 1 year ago

The question is if it not more a feature request for Yahka to automatically beeing able to convert a RGB state into Hue settings .....

OberfragGER commented 1 year ago

The question is if it not more a feature request for Yahka to automatically beeing able to convert a RGB state into Hue settings .....

Sorry. It was mentioned to be a feature request (i choosed between bug and feature request).

Apollon77 commented 1 year ago

All good, I understood it as feature request ... I just think if ithat one is right in this adapter or if not Yahka should support that becaude many other adapters also provide just RGB states. Adding to all of them that they also du hue<->RGB conversion feels not right ... but Yahka (if Homekit requires Hue) and easiely do that conversion logic in one place

OberfragGER commented 1 year ago

Okay. You are right. But this Hue is as far as i know part of the official homekit api. I dont think that someone will implement that in there. And i dont see many updates of yakha..

For me its fine if you choose to close this request and suggest to make a yakha-feature request.

Apollon77 commented 1 year ago

Please open a feazrue request there too and link the two and we have both open. I think what you can do is to create own helper states for now ... I will clairify how to continue once I find time