I have a problem with slider in light component.
I’m writing custom integration via MQTT, my config auto-discovery message is:
homeassistant/light/ampio/712/config {"~":"homeassistant/light/ampio/712","name":"LED biuro P","unique_id":"ampio_light_712","command_topic":"~/set","state_topic":"~/state","rgbw_command_topic":"~/rgbw_set","rgbw_state_topic":"~/rgbw_state","rgbw_value_template":"\n{%- set binary = '{:b}'.format((value | int)).zfill(32) -%}\n{%- set red = (binary[24:] | int(base=2)) -%}\n{%- set green = (binary[16:24] | int(base=2)) -%}\n{%- set blue = (binary[8:16] | int(base=2)) -%}\n{%- set white = (binary[0:8] | int(base=2)) -%}\n{{ red }},{{ green }},{{ blue }},{{ white }}","rgbw_command_template":"\n{%- set newColor = '{:b}'.format(white|int).zfill(8) -%}\n{%- set newColor = newColor + '{:b}'.format(blue|int).zfill(8) -%}\n{%- set newColor = newColor + '{:b}'.format(green|int).zfill(8) -%}\n{%- set newColor = newColor + '{:b}'.format(red|int).zfill(8) -%}\n{{ newColor | int(base=2) }}","on_command_type":"brightness","object_id":"ampio_light_712","device":{"manufacturer":"Ampio","identifiers":"32_1","suggested_area":"Biuro P"}}
The system I’m integrating with exposes RGBW light as 32 bit number.
Any ideas? That’s like my 10th approach for that integration and I’m starting to lose my sanity…