Smart Home Automation Forum
KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF (/showthread.php?tid=2431)



KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - stanchiam - 12-09-2022

Hi, 

I am using ESPhome and home assistant, tried the below yaml using REV1.5 board but not sure how to get the temperature sensor and RF receiver/transmitter(already installed) working on HA.

Is my yaml correct? I am not sure about the pin number used, from the board i see the dht data cable is fixed at HT3.
Please help take a look at the yaml and also how to use with HA. Unable to find info for ESPHome and HA using KC868-A16.

remote_receiver:
  pin: 2
  dump: rc_switch
  # Settings to optimize recognition of RF devices
  tolerance: 50%
  filter: 250us
  idle: 4ms
  buffer_size: 2kb
remote_transmitter:
  pin: 15
  carrier_duty_percent: 100%
# Example configuration entry for sensor
sensor:
  - platform: dht
    pin: 14
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"
    update_interval: 10s
  # - platform: dallas
  #   pin: 14
  #   address: 0x1c0000031edd2a28
  #   name: "ds18b20-1"



RE: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - admin - 12-09-2022

here is pins define for KC868-A16:

DS18B20/DHT11/DHT21/WS2812 LED strip -1: 32
DS18B20/DHT11/DHT21/WS2812 LED strip -2: 33
DS18B20/DHT11/DHT21/WS2812 LED strip -2: 14


RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15

I suggest you test step by step. such as test DHT11 firstly, delete your RF config firstly. when DHT is work well, then add RF module to ESPHome.


RE: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - admin - 12-09-2022

can you take a photo, how you wire your sensor and RF module with your KC868-A16 board.


RE: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - stanchiam - 12-09-2022

(12-09-2022, 01:43 AM)admin Wrote: can you take a photo, how you wire your sensor and RF module with your KC868-A16 board.

(12-09-2022, 01:33 AM)admin Wrote: here is pins define for KC868-A16:

DS18B20/DHT11/DHT21/WS2812 LED strip -1: 32
DS18B20/DHT11/DHT21/WS2812 LED strip -2: 33
DS18B20/DHT11/DHT21/WS2812 LED strip -2: 14


RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15

I suggest you test step by step. such as test DHT11 firstly, delete your RF config firstly. when DHT is work well, then add RF module to ESPHome.

tried, remove rf, only left sensor but still not showing in HA or inside the esphome web server

sensor:
  - platform: dht
    pin: 14
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"
    update_interval: 10s


 


RE: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - stanchiam - 12-09-2022

Resolved, i update the esphome via the lan network and though it was ok, but it is not.
I power off and on then use the usb option to install. Then it appear.


RE: KC868-A16 ESPHome yaml for DHT11/ds18b20 RF - admin - 12-09-2022

ok , great. update to newest version always a good way to solve problem.