Home Assistant - RGB Light with Home Kit Bridge

Job ID: 37276259

Budget: $15 – $25 USD

Help me create a simple Virtual RGB LED light that is visible in Home App (via Home Kit Bridge).

I have code as follows but it doesn't work when changing the colour in Home App, the values don't change in Home Assistant. For a simple dimming white light via Home App it does update in Home Assistant however.

input_number:
rgb_light_strip_red:
name: "RGB Light Strip Red"
min: 0
max: 255
step: 1

input_number:
rgb_light_strip_green:
name: "RGB Light Strip Green"
min: 0
max: 255
step: 1

input_number:
rgb_light_strip_blue:
name: "RGB Light Strip Blue"
min: 0
max: 255
step: 1


light:
- platform: template
lights:
rgb_light_strip:
friendly_name: "RGB Light Strip"
value_template: "{{ state_attr('light.rgb_light_strip', 'state') }}"
turn_on:
service: light.turn_on
data:
entity_id: light.rgb_light_strip
rgb_color:
- "{{ states('input_number.rgb_light_strip_red') | int }}"
- "{{ states('input_number.rgb_light_strip_green') | int }}"
- "{{ states('input_number.rgb_light_strip_blue') | int }}"
turn_off:
service: light.turn_off
data:
entity_id: light.rgb_light_strip


homekit:
filter:
include_entities:
- light.rgb_light_strip
Related categories: Home Automation Apple Homekit