Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 ESPHome yaml for DHT11/ds18b20 RF
#1
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"
Reply
#2
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.
Reply
#3
can you take a photo, how you wire your sensor and RF module with your KC868-A16 board.
Reply
#4
(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


 


Attached Files Image(s)
   
Reply
#5
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.
Reply
#6
ok , great. update to newest version always a good way to solve problem.
Reply


Forum Jump:


Users browsing this thread: