Posts: 4
Threads: 1
Joined: Nov 2024
Reputation:
0
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.
Posts: 4
Threads: 1
Joined: Nov 2024
Reputation:
0
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
Posts: 6,669
Threads: 844
Joined: Oct 2020
Reputation:
162
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'