node-red-contrib-homekit-rgb 2.0.1

Node-RED node to convert HomeKit light Accessory's HSB values to RGB

npm install node-red-contrib-homekit-rgb

Useful with: node-red-contrib-homekit | node-red-contrib-homekit-bridged

Expected input

Output of HomeKit light accessory, 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} Brightness0 to 100
  • msg.payload.ColorTemperature {int} Mega Kelvin 150 to 500

Node Info

Version: 2.0.1
Updated 2 months, 3 weeks ago
License: MIT
Rating: 0.0

Actions

Rate:

Downloads

5 in the last week

Nodes

  • homekit-rgb

Keywords

  • rgb
  • homekit
  • hsv
  • hsb
  • kelvin
  • xy
  • node-red

Maintainers