Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 into Home assistant via MQTT
#7
Today I installed new firmware 2.2.6  (thanks) and now outputs are working fine: 
they can be managed from HAOS (also in 2.2.5) 
and follows status change (fixed with 2.2.6). 
The problem remain on Inputs, I cannot see any status change and they are always in "unknown" status. 
I tryied many options, finally I found the working configuration for inputs:

mqtt:
  switch:
    - name: "a161-kcs-output-1"
      unique_id: a161-kcs-output-1
      state_topic: "KC868_A16/XXXXXXXXX/STATE"
      command_topic: "KC868_A16/XXXXXXXXX/SET"
      payload_on: '{"output1":{"value":true}}'
      payload_off: '{"output1":{"value":false}}'
      value_template: "{{ value_json.output1.value }}"
      state_on: true
      state_off: false

binary_sensor:
these are wrong:
      payload_on: '{"input1":{"value":true}}'
      payload_on: "true"
      payload_on: true (Incorrect type. Expected "string")

this is working for me
    - name: "a161-kcs-input-2"
      unique_id: a161-kcs-input-2
      state_topic: "KC868_A16/XXXXXXXXX/STATE"
      value_template: "{{ value_json.input2.value }}"
      payload_on: "True"
      payload_off: "False"

  • Core2024.10.4
  • Supervisor2024.10.3
  • Operating System13.2
  • Frontend20241002.4
Reply


Messages In This Thread
KC868-A16 into Home assistant via MQTT - by Ugeo - 09-30-2024, 02:25 PM
RE: KC868-A16 into Home assistant via MQTT - by Labesanella - 10-28-2024, 11:41 PM

Forum Jump:


Users browsing this thread:
2 Guest(s)