Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
E16S home assistant
#1
Ahoj všichni,
Na mini PC mám přes PROXMOX nainstalovanou desku KC868-E16S a Home Assistant. Jaký komunikační protokol bych měl použít, abych zajistil stabilní připojení? Rozhodně nechci žádné bezdrátové možnosti.
Mohl by mi prosím někdo napsat podrobný návod jak to nastavit?
A jaký firmware mám nahrát do KC868-E16S?
Děkuju.
Reply
#2
here is ESPHome yaml for KC868-E16S using ethenret (not by wifi)
https://www.kincony.com/forum/showthread.php?tid=2125
Reply
#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
#4
your topic for OUTPUT is wrong. You should use:

state_topic: 'KC868_E16S/C82E18C85694/state'
command_topic: 'KC868_E16S/C82E18C85694/set'

now mistake is :
state_topic: 'server/C82E18C85694/state'
command_topic: 'server/C82E18C85694/set'
Reply
#5
Photo 
(12-16-2024, 12:15 AM)admin Wrote: your topic for OUTPUT is wrong. You should use:

    state_topic: 'KC868_E16S/C82E18C85694/state'
    command_topic: 'KC868_E16S/C82E18C85694/set'

now mistake is :
    state_topic: 'server/C82E18C85694/state'
    command_topic: 'server/C82E18C85694/set'

I edit topic, but still not working:

mqtt:
  switch:
  - name: "output-1"
    unique_id: "output-1"
    state_topic: 'KC868_E16S/C82E18C85694/state'
    command_topic: 'KC868_E16S/C82E18C85694/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0   


Any idea? Do I have the outputs set correctly on the KC868-E16S?

thanks J


Attached Files Image(s)
   
Reply
#6
Code:
mqtt:
  switch:
  - name: "output-1"
    unique_id: "output-1"
    state_topic: 'KC868_E16S/C82E18C85694/state'
    command_topic: 'KC868_E16S/C82E18C85694/set'
    payload_on:  '{"output1":{"value":true}}'
    payload_off:  '{"output1":{"value":false}}'
    value_template: '{{ value_json.output1.value }}'
    state_on: 1
    state_off: 0 
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)