Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
E16S home assistant
#3
I use kc868-e16s with home assistant by MQTT.

My Home Assistant is on mini PC (HAOS)
Core 2024.12.3
Supervisor 2024.11.4
Operating System 14.0
Frontend 20241127.8

I can read status of inputs, but I have a problem controlling the outputs – it’s not working. Where am I making a mistake?

Here is my configuration.yaml

mqtt:
  switch:

  - name: 'output-1'
    unique_id: output-1
    state_topic: 'server/C82E18C85694/state'
    command_topic: 'server/C82E18C85694/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0   
   
  binary_sensor:
    - name: "input-1"
      unique_id: "input-1"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input1.value }}"
      payload_on: true
      payload_off: false

    - name: "input-2"
      unique_id: "input-2"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input2.value }}"
      payload_on: true
      payload_off: false

    - name: "input-3"
      unique_id: "input-3"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input3.value }}"
      payload_on: true
      payload_off: false

    - name: "input-4"
      unique_id: "input-4"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input4.value }}"
      payload_on: true
      payload_off: false

    - name: "input-5"
      unique_id: "input-5"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input5.value }}"
      payload_on: true
      payload_off: false

    - name: "input-6"
      unique_id: "input-6"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input6.value }}"
      payload_on: true
      payload_off: false

    - name: "input-7"
      unique_id: "input-7"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input7.value }}"
      payload_on: true
      payload_off: false

    - name: "input-8"
      unique_id: "input-8"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input8.value }}"
      payload_on: true
      payload_off: false

    - name: "input-9"
      unique_id: "input-9"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input9.value }}"
      payload_on: true
      payload_off: false

    - name: "input-10"
      unique_id: "input-10"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input10.value }}"
      payload_on: true
      payload_off: false

    - name: "input-11"
      unique_id: "input-11"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input11.value }}"
      payload_on: true
      payload_off: false

    - name: "input-12"
      unique_id: "input-12"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input12.value }}"
      payload_on: true
      payload_off: false

    - name: "input-13"
      unique_id: "input-13"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input13.value }}"
      payload_on: true
      payload_off: false

    - name: "input-14"
      unique_id: "input-14"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input14.value }}"
      payload_on: true
      payload_off: false

    - name: "input-15"
      unique_id: "input-15"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input15.value }}"
      payload_on: true
      payload_off: false

    - name: "input-16"
      unique_id: "input-16"
      state_topic: "KC868_E16S/C82E18C85694/STATE"
      value_template: "{{ value_json.input16.value }}"
      payload_on: true
      payload_off: false
Reply


Messages In This Thread
E16S home assistant - by janami - 11-30-2024, 07:39 AM
RE: E16S home assistant - by admin - 11-30-2024, 11:15 AM
RE: E16S home assistant - by janami - 12-15-2024, 06:31 PM
RE: E16S home assistant - by admin - 12-16-2024, 12:15 AM
RE: E16S home assistant - by janami - 12-16-2024, 07:04 AM
RE: E16S home assistant - by admin - 12-16-2024, 11:21 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)