Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Feature request: color change homekit integration #9

Open
sverrevh opened this issue Jul 19, 2017 · 4 comments
Open

Feature request: color change homekit integration #9

sverrevh opened this issue Jul 19, 2017 · 4 comments
Assignees

Comments

@sverrevh
Copy link
Contributor

This plugin for homebridge (https://github.com/szokeptr/homebridge-tradfri-plugin) supports colors in Homekit. According to michbeck100/pimatic-hap#74 (comment) changes need to be made to this plugin first in order to get it working with the pimatic-HAP plugin.

@treban
Copy link
Owner

treban commented Jul 22, 2017

This plugin already has implemented color changing. I think a accessory definition in the homekit plugin is needed. I will check the homekit interface, change my plugin if needed and make a pull request to make it possible.

@treban treban self-assigned this Jul 22, 2017
@sverrevh
Copy link
Contributor Author

Homekit/Pimatic-HAP expects a color in Hue and Saturation:
Starting here is the conversion code from XY to Hue/saturation/light and the other way around:
https://github.com/szokeptr/homebridge-tradfri-plugin/blob/master/index.js#L3542

http://stackoverflow.com/a/9493060
http://stackoverflow.com/a/36061908

@michbeck100
Copy link

The conversion however must be done in pimatic-hap. I will have a look into this.

@sverrevh
Copy link
Contributor Author

sverrevh commented Nov 2, 2017

This is actually now less of an issue when you let the gateway handle HomeKit directly, also makes more sense to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants