KC868-D16 can easily integrate to home assistant by MQTT, use for 16 channel dimmer output.
Login web browser with your KC868-D16’s IP address, set ethernet work mode = MQTT, set the MQTT server IP and port,Mqtt Broker username and Mqtt Broker password.
install a broker on your server. for example , we have installed home assistant on the KC868-Server (Raspberry pi CM4), we can install Mosquitto broker on Raspberry PI. set MQTT username and password.
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}}’