Now KC868-D8 can easily integrate to home assistant by MQTT, use for 8 channel dimmer output.
step-A. Make sure KC868-D8’s firmware version is >= V4.34. you can download new firmware from our technical support forum: https://www.kincony.com/forum
step-B. open controller’s IP, set ethernet work mode = MQTT, set the MQTT server IP and port,Mqtt Broker username and Mqtt Broker password. Suggest use Ethernet for MQTT.
C. install a broker on your server. for example , we have installed home assistant on the Raspberry pi4, we can install Mosquitto broker on Raspberry PI. set MQTT username and password.
D. edit /config/configuration.yaml for home assistant.
# Example configuration.yaml entry for dimmer1 output:
mqtt:
broker: 192.168.1.96
port: 1883
username: mqtt
password: 123
light:
– name: D16-1
unique_id: D16-1
schema: template
command_topic: “dimmer/55b71a5caf7a9902e9734477/set”
state_topic: “dimmer/55b71a5caf7a9902e9734477/state”
command_on_template: >
{%- if brightness is defined -%}
,{“dimmer1”:{“value”:{{(brightness / 255 * 100) | int – 1}}}
{%- else -%}
,'{“dimmer1”:{“value”:99}}’
{%- endif -%}
command_off_template: ‘{“dimmer1”:{“value”:0}}’
state_template: >
{%- if value_json.dimmer1.value == 0 -%}
off
{%- else -%}
on
{%- endif -%}
brightness_template: ‘{{(value_json.dimmer1.value / 99 * 255)| int}}’