Posts: 1
Threads: 0
Joined: Jul 2024
Reputation:
0
Dear Admin,
I have built a panel box in which i have several ATS (Auto transfer switch). I need to connect or/and Configure the ATS with K868KC-H32B so that i can control or give command to my ATS using K868KC-H32B.
The ATS has the port for RS485 as the K868KC-H32B. i have connected the wires however the ATS does not get command from K868KC-H32B.
could you please share a detailed instruction on the configuration of K868KC-H32B with ATS.
kind regards,
Paikar
Posts: 6,390
Threads: 830
Joined: Oct 2020
Reputation:
158
can you take a photo and diagram of your ATS (Auto transfer switch)? Then tell us what you want to in technical details.
Posts: 3
Threads: 0
Joined: Aug 2024
Reputation:
0
Bonjour à tous !
Je débute sur le forum et sur la programmation de ma carte KC868-A16 et ne suis pas sûr de le poster au bon endroit..
La carte correspond exactement à mon besoin et son association avec ECPHome est très intéressante. Je suis très content de mon achat et merci pour toute cette documentation mise à disposition.
J’ai utilisé principalement le lien : KinCony KC868-A16 | devices.esphome.io
Quand j’ai compilé j’ai eu une erreur me disant que je ne pouvais pas avoir le réseau wifi et Ethernet ensemble. J’ai donc mis des # devant la partie Ethernet pour que cela marche en Wifi. Cependant l’inverse ne fonctionne pas. Je n’arrive pas à faire fonctionner en Ethernet. J’aurai bien voulu les 2 car je ne suis pas sur de mon réseau WIFI.
J’ai aussi un deuxième problème, les mesures de température ne fonctionnent pas.
Est-il possible de m’aider svp ?
Voici le programme Yaml que j’ai intégré dans l’ESP32. Les entrées et sorties fonctionnent très bien.
esphome:
name: kc868-a16
esp32:
board: esp32dev
framework:
type: esp-idf
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
# Enable Home Assistant API
api:
encryption:
key: "KxxxxxxxxxxxxxxxxxxxxxxxxxK0r1qo="
ota:
- platform: esphome
password: "04fad46ba4xxxxxxxxxxxxxxxxad2ed0c0dee"
#ethernet:
# type: LAN8720
# mdc_pin: GPIO23
# mdio_pin: GPIO18
# clk_mode: GPIO17_OUT
# phy_addr: 0
uart:
- id: rs485
tx_pin: GPIO13
rx_pin: GPIO16
baud_rate: 9600
remote_receiver:
pin:
number: GPIO2
ignore_strapping_warning: true
remote_transmitter:
pin:
number: GPIO15
ignore_strapping_warning: true
carrier_duty_percent: 100%
i2c:
sda: GPIO4
scl:
number: GPIO5
ignore_strapping_warning: true
pcf8574:
- id: inputs_1_8
address: 0x22
- id: inputs_9_16
address: 0x21
- id: outputs_1_8
address: 0x24
- id: outputs_9_16
address: 0x25
binary_sensor:
- platform: gpio
name: "KC868-A16-HT1"
pin:
number: GPIO32
inverted: true
- platform: gpio
name: "KC868-A16-HT2"
pin:
number: GPIO33
inverted: true
- platform: gpio
name: "KC868-A16-HT3"
pin:
number: GPIO14
inverted: true
- platform: gpio
name: "KC868-A16-X01"
pin:
pcf8574: inputs_1_8
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X02"
pin:
pcf8574: inputs_1_8
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X03"
pin:
pcf8574: inputs_1_8
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X04"
pin:
pcf8574: inputs_1_8
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X05"
pin:
pcf8574: inputs_1_8
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X06"
pin:
pcf8574: inputs_1_8
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X07"
pin:
pcf8574: inputs_1_8
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X08"
pin:
pcf8574: inputs_1_8
number: 7
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X09"
pin:
pcf8574: inputs_9_16
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X10"
pin:
pcf8574: inputs_9_16
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X11"
pin:
pcf8574: inputs_9_16
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X12"
pin:
pcf8574: inputs_9_16
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X13"
pin:
pcf8574: inputs_9_16
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X14"
pin:
pcf8574: inputs_9_16
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X15"
pin:
pcf8574: inputs_9_16
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X16"
pin:
pcf8574: inputs_9_16
number: 7
mode: INPUT
inverted: true
switch:
- platform: gpio
name: "KC868-A16-Y01"
id: out_y01
pin:
pcf8574: outputs_1_8
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y02"
id: out_y02
pin:
pcf8574: outputs_1_8
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y03"
id: out_y03
pin:
pcf8574: outputs_1_8
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y04"
id: out_y04
pin:
pcf8574: outputs_1_8
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y05"
id: out_y05
pin:
pcf8574: outputs_1_8
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y06"
id: out_y06
pin:
pcf8574: outputs_1_8
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y07"
id: out_y07
pin:
pcf8574: outputs_1_8
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y08"
id: out_y08
pin:
pcf8574: outputs_1_8
number: 7
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y09"
id: out_y09
pin:
pcf8574: outputs_9_16
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y10"
id: out_y10
pin:
pcf8574: outputs_9_16
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y11"
id: out_y11
pin:
pcf8574: outputs_9_16
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y12"
id: out_y12
pin:
pcf8574: outputs_9_16
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y13"
id: out_y13
pin:
pcf8574: outputs_9_16
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y14"
id: out_y14
pin:
pcf8574: outputs_9_16
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y15"
id: out_y15
pin:
pcf8574: outputs_9_16
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y16"
id: out_y16
pin:
pcf8574: outputs_9_16
number: 7
mode: OUTPUT
inverted: true
Bien cordialement et encore merci pour votre aide.
Posts: 6,390
Threads: 830
Joined: Oct 2020
Reputation:
158
1. Ethernet and wifi can't work at the same time.
2. what temperature sensor you are using?
Posts: 3
Threads: 0
Joined: Aug 2024
Reputation:
0
Bonjour et merci pour votre retour,
1) Je comprends que les 2 ne peuvent pas fonctionner ensemble, mais quand j'enlève les # de la partie Ethernet et que je mets les # sur la partie wifi, plus rien ne fonctionne.
2) J'utilise des DS18b20.
Cordialement
Posts: 3
Threads: 0
Joined: Aug 2024
Reputation:
0
Bonjour,
Je viens de regarder le lien et adapter le programme. Il semble que les entrée 32, 33 et 14 étaient configurées en binary_sensor. dans le bas du programme j'ai réussi à configurer une seule des pins en Dallas.
Je ne dois pas encoder le Yaml comme il faut. Pouvez-vous m'aider à définir le bon Yaml at avoir les 3 entrée en configuration température svp ?
Pour Ethernet, que dois-je faire ?
Bien cordialement
Bernard
Programme :
esphome:
name: kc868-a16
esp32:
board: esp32dev
framework:
type: esp-idf
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
# Enable Home Assistant API
api:
encryption:
key: "KAMaVIgkKvrw3dsC7KD3/gHHSPCnpZOSUC7JjK0r1qo="
ota:
- platform: esphome
password: "04fad46ba41ed3068d41fad2ed0c0dee"
#ethernet:
# type: LAN8720
# mdc_pin: GPIO23
# mdio_pin: GPIO18
# clk_mode: GPIO17_OUT
# phy_addr: 0
uart:
- id: rs485
tx_pin: GPIO13
rx_pin: GPIO16
baud_rate: 9600
remote_receiver:
pin:
number: GPIO2
ignore_strapping_warning: true
remote_transmitter:
pin:
number: GPIO15
ignore_strapping_warning: true
carrier_duty_percent: 100%
i2c:
sda: GPIO4
scl:
number: GPIO5
ignore_strapping_warning: true
pcf8574:
- id: inputs_1_8
address: 0x22
- id: inputs_9_16
address: 0x21
- id: outputs_1_8
address: 0x24
- id: outputs_9_16
address: 0x25
binary_sensor:
# - platform: gpio
# name: "KC868-A16-HT1"
# pin:
# number: GPIO32
# inverted: true
# - platform: gpio
# name: "KC868-A16-HT2"
# pin:
# number: GPIO33
# inverted: true
# - platform: gpio
# name: "KC868-A16-HT3"
# pin:
# number: GPIO14
# inverted: true
- platform: gpio
name: "KC868-A16-X01"
pin:
pcf8574: inputs_1_8
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X02"
pin:
pcf8574: inputs_1_8
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X03"
pin:
pcf8574: inputs_1_8
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X04"
pin:
pcf8574: inputs_1_8
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X05"
pin:
pcf8574: inputs_1_8
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X06"
pin:
pcf8574: inputs_1_8
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X07"
pin:
pcf8574: inputs_1_8
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X08"
pin:
pcf8574: inputs_1_8
number: 7
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X09"
pin:
pcf8574: inputs_9_16
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X10"
pin:
pcf8574: inputs_9_16
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X11"
pin:
pcf8574: inputs_9_16
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X12"
pin:
pcf8574: inputs_9_16
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X13"
pin:
pcf8574: inputs_9_16
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X14"
pin:
pcf8574: inputs_9_16
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X15"
pin:
pcf8574: inputs_9_16
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "KC868-A16-X16"
pin:
pcf8574: inputs_9_16
number: 7
mode: INPUT
inverted: true
switch:
- platform: gpio
name: "KC868-A16-Y01"
id: out_y01
pin:
pcf8574: outputs_1_8
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y02"
id: out_y02
pin:
pcf8574: outputs_1_8
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y03"
id: out_y03
pin:
pcf8574: outputs_1_8
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y04"
id: out_y04
pin:
pcf8574: outputs_1_8
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y05"
id: out_y05
pin:
pcf8574: outputs_1_8
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y06"
id: out_y06
pin:
pcf8574: outputs_1_8
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y07"
id: out_y07
pin:
pcf8574: outputs_1_8
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y08"
id: out_y08
pin:
pcf8574: outputs_1_8
number: 7
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y09"
id: out_y09
pin:
pcf8574: outputs_9_16
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y10"
id: out_y10
pin:
pcf8574: outputs_9_16
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y11"
id: out_y11
pin:
pcf8574: outputs_9_16
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y12"
id: out_y12
pin:
pcf8574: outputs_9_16
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y13"
id: out_y13
pin:
pcf8574: outputs_9_16
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y14"
id: out_y14
pin:
pcf8574: outputs_9_16
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y15"
id: out_y15
pin:
pcf8574: outputs_9_16
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "KC868-A16-Y16"
id: out_y16
pin:
pcf8574: outputs_9_16
number: 7
mode: OUTPUT
inverted: true
# Config entree 1
one_wire:
- platform: gpio
pin: GPIO32
sensor:
- platform: dallas_temp
address: 0x1a0113136655aa28
name: temperature
update_interval: 120s
# Config entree 2
#one_wire:
# - platform: gpio
# pin: GPIO33
#sensor:
# - platform: dallas_temp
# address: 0x1a0113136655aa28
# name: temperature
# update_interval: 120s
# Config entree 3
#one_wire:
# - platform: gpio
# pin: GPIO14
#sensor:
# - platform: dallas_temp
# address: 0x1a0113136655aa28
# name: temperature
# update_interval: 120s