Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caitken-com/node-red-contrib-homekit-rgb
Node-RED node to convert HomeKit light Accessory's HSB to RGB values
https://github.com/caitken-com/node-red-contrib-homekit-rgb
Last synced: 7 days ago
JSON representation
Node-RED node to convert HomeKit light Accessory's HSB to RGB values
- Host: GitHub
- URL: https://github.com/caitken-com/node-red-contrib-homekit-rgb
- Owner: caitken-com
- License: mit
- Created: 2023-08-24T04:32:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-06T00:54:18.000Z (about 1 year ago)
- Last Synced: 2024-12-28T09:14:33.497Z (11 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node-RED node to convert HomeKit Light Accessory's HSB values to RGB values
Useful with: node-red-contrib-homekit | node-red-contrib-homekit-bridged
## Expected input
Output of [HomeKit light accessory](https://nrchkb.github.io/wiki/service/lightbulb/), _any_ of the following:
* *msg.payload.Hue* **{float}** `0.0` to `360.0`
* *msg.payload.Saturation* **{float}** `0.0` to `100.0`
* *msg.payload.Brightness* **{int}** `0` to `100`
* *msg.payload.ColorTemperature* **{int}** `140` to `500`Or, to convert from RGB, _all_ of the following:
* *msg.payload.r* **{int}** Red channel `0` to `255`
* *msg.payload.g* **{int}** Green channel `0` to `255`
* *msg.payload.b* **{int}** Blue channel `0` to `255`Or, to convert from XY, _all_ of the following:
* *msg.payload.x* **{float}** X channel
* *msg.payload.y* **{float}** Y channel## Output
The original input message (pass-though), plus _all of following_ conversions (rgb, hsb, xy, megakelvin)
* *msg.payload.r* **{int}** Red channel `0` to `255`
* *msg.payload.g* **{int}** Green channel `0` to `255`
* *msg.payload.b* **{int}** Blue channel `0` to `255`
* *msg.payload.x* **{float}** X channel
* *msg.payload.y* **{float}** Y channel
* *msg.payload.Hue* **{float}** Hue `0.0` to `360.0`
* *msg.payload.Saturation* **{float}** Saturation `0.0` to `100.0`
* *msg.payload.Brightness* **{int}** Brightness`0` to `100`
* *msg.payload.ColorTemperature* **{int}** Mega Kelvin `150` to `500`