Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create light switch in home assistant using MQTT
#5
The topic is of course old, but maybe it will be useful to someone

  - light: 
        schema: template
        name: 'Hall'
        unique_id: a6-kcs-1-output-2
        state_topic: 'KC868_A6/XXXXXXXXXX/STATE'
        command_topic: 'KC868_A6/XXXXXXXXXX/SET'
        command_off_template: '{"output2":{"value":false}}'
        command_on_template: '{"output2":{"value":true}}'
        state_template: '{{ iif (value_json.output2.value == true , "on", "off") }}'
Reply


Messages In This Thread
RE: Create light switch in home assistant using MQTT - by D2K - 01-26-2026, 06:02 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)