Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 into Home assistant via MQTT
#4
(10-02-2024, 02:25 PM)Ugeo Wrote: I did everything according to your example. (switch:-output 1) works fine. But "input1" is still in the "unknown" status. Please send an example for KC868-A16 and specifically for (binary_sensor: -"input1"). I would appreciate it.

Inputs are not working because of these bugs !

There are bugs in MQTT message in version 2.2.5. Reproduced on A8 and also A16.
1. Missing coma after last input and before first output, example:
... "input15":{"value":false},"input16":{"value":false}"output1":{"value":false}, ...
2. Missing coma after last output and before first adc, example:
... "output15":{"value":false},"output16":{"value":true}"adc1":{"value":0}, ...
3. Missing coma after last adc and before first sensor, example:
... "adc4":{"value":0}"sensor1":{"temperature":-100.0,"humity":-100.0}, ...
4. Typo error on sensor humidity name, example:
... sensor1":{"temperature":-100.0,"humity":-100.0}, ...
instead of: ... sensor1":{"temperature":-100.0,"humidity":-100.0}, ...

MQTT is not working in version 2.2.5 because of these bugs.

(10-02-2024, 02:25 PM)Ugeo Wrote: I did everything according to your example. (switch:-output 1) works fine. But "input1" is still in the "unknown" status. Please send an example for KC868-A16 and specifically for (binary_sensor: -"input1"). I would appreciate it.

My binary sensor working code:

  binary_sensor:
    - name: 'a16-kcs-input-1'
      unique_id: a16-kcs-input-1
      state_topic: 'KC868_A16/D3AF7679AD2B/STATE'
      value_template: '{{ value_json.input1.value }}'
      payload_on:  true
      payload_off:  false
      device:
        identifiers: "kincony_a16_device"
        name: "Module Kincony A16"
        model: "KC868-A16"
        manufacturer: "Kincony"

    - name: 'a16-kcs-input-2'
      unique_id: a16-kcs-input-2
      state_topic: 'KC868_A16/D3AF7679AD2B/STATE'
      value_template: '{{ value_json.input2.value }}'
      payload_on:  true
      payload_off:  false
      device:
        identifiers: "kincony_a16_device"
        name: "Module Kincony A16"
        model: "KC868-A16"
        manufacturer: "Kincony"
 
Will work for you with updated KCS firmware! not 2.2.5
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 Aladin - 10-25-2024, 09:19 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)