Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A8 Touch wall panel indication working reverse and temperature sensor
#1
Hi Xu Wei,

Good day, I need assitance for two things.

1. My DHT sensor not reading temperature and the ESPHome log messages output below. 

Code:
[20:03:03][C][dallas.sensor:075]: DallasComponent:
[20:03:03][C][dallas.sensor:076]:   Pin: GPIO14
[20:03:03][C][dallas.sensor:077]:   Update Interval: 60.0s
[20:03:03][W][dallas.sensor:080]:   Found no sensors!
[20:03:03][C][dallas.sensor:089]:   Device 'study_room_temperature_sensor'
[20:03:03][C][dallas.sensor:089]:     Device Class: 'temperature'
[20:03:03][C][dallas.sensor:089]:     State Class: 'measurement'
[20:03:03][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[20:03:03][C][dallas.sensor:089]:     Accuracy Decimals: 1
[20:03:03][C][dallas.sensor:097]:     Address: 0x1c0000031edd2a28
[20:03:03][C][dallas.sensor:098]:     Resolution: 12

[20:03:55][E][dallas.sensor:112]: Requesting conversion failed
[20:03:55][D][sensor:094]: 'study_room_temperature_sensor': Sending state nan °C with 1 decimals of accuracy

I have tried connecting my DHT11 sensor to both S1 & S2 input terminals and getting the same error for reading the temperature.

2. I am trying to make the Touch Wall Panel Switch glow when turning on inputs, I know KC868-A8 not having a digital input, but i made a small adjustment and patched a wire from relay 1 GND output terminal in the PCB and connected to Switch D1. K1 is connected to input.

All looks good, but the LED is turning ON when the switch 1 is turned off and LED is Off when switch 1 is turned ON.

Connection Details:

A8 Board Input 1 --> Wall Switch K1
A8 Board Relay 1 Digital Input GND soldered from PCB --> Wall Switch D1
A8 Board S1 --> DTH11 Data terminal , VCC and Ground connected in the S1-S4 terminal block VCC & GND.

My ESPHome code block is a below, I tried several 'Inverted : true" at switch component and binalry_sensor component in yaml file, but I am missing some basic part.

Need your help to overcome my Two issues.

Code:
#
esphome:
  name: a8-study-room
  platform: ESP32
  board: esp32dev


# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "********************************************"

ota:
  password: "0fb1fa5d2db965e28cfb201d5afaf06c"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kc868-A8 Fallback Hotspot"
    password: "************"

captive_portal:

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "Study Room Fan"
    id: a8_study_room_fan
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: false

     
binary_sensor:
  - platform: gpio
    name: "a8_study_room_fan"
    on_press:
      then:
        - switch.toggle: a8_study_room_fan
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode:
        input: true

dallas:
  - pin: 14

sensor:
  - platform: dallas
    address: 0x1c0000031edd2a28
    name: "study_room_temperature_sensor"


Attached Files
.txt   KC868-A8-Touch_Wall_Switch.txt (Size: 1.36 KB / Downloads: 170)
Reply
#2
1. you are using DS18B20 config format, your DHTxx sensor should be, the S1 and S2 all can use for DHTxx sensor:
sensor:
  - platform: dht
    pin: 14
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

here is details: https://esphome.io/components/sensor/dht.html

2. KC868-A8 have 8 channel digital input ports, just directly to use, why need solder on PCB?

see this photo, there are 8 channel DI use for switch button:

   
Reply
#3
(07-03-2023, 10:49 PM)admin Wrote: 1. you are using DS18B20 config format, your DHTxx sensor should be, the S1 and S2 all can use for DHTxx sensor:
sensor:
  - platform: dht
    pin: 14
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

here is details: https://esphome.io/components/sensor/dht.html

2. KC868-A8 have 8 channel digital input ports, just directly to use, why need solder on PCB?

see this photo, there are 8 channel DI use for switch button:

Hi,

1. Thanks, my temperature sensor is working now.

2. 8 channel digital inputs are connected to Touch Wall switch K1-8 terminals. But it is not enough to make the wall switch panel LED turn ON. 

So connected relay input DC supply GND 1-8 to Wall panel switch D1-8 terminals.
Reply
#4
ok, i see, i think you can exchange your feedback voltage polarity.
Reply
#5
I do not understand what is mean by exchange feedback polarity, can you give more details.

Or you can give a rough circuit sketch for my easy understanding. I am more of a DIY person than a electronics person ?.
Reply
#6
can you take a photo of your board working, or take a video is better.
Reply
#7
Hi I've uploaded the video and photo of the connection, also uploading the yaml file configuration.


And the touch switch sensitivity is hard and sometimes not responding.


Attached Files
.zip   a8-study-room.zip (Size: 48.03 MB / Downloads: 213)
Reply
#8
you can check the diagram of KC868-A8: https://www.kincony.com/download/KC868-A8-PCBV1.4.pdf
because all relay's coin connect with dc12v together, the control pin use by 0v when relay will ON. but wall switch panel need feedback +12v , so that LED will be ON.
i think you can chose another style of wall switch panel: https://www.kincony.com/metal-frame-mome...panel.html this LED is 0v when relay ON.
Reply
#9
I have just checked the board and switch with multimeter, when relay is ON the control voltage output is 12V.

But the wall switch panel is supplied with 0V the LED is ON and OFF when supplied with 12V.

Is there any work around with yaml file, like inverted: true/false, Pull Up / Pull Down options etc. I am not the expert here, so suggest if there is options with touch switch until i get momentary switch in my next order.
Reply
#10
This is a physical circuit connection and cannot be changed by software. next time chose these type of momentary switch panel is OK:
https://www.kincony.com/metal-frame-mome...panel.html
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)