Smart Home Automation Forum

Full Version: Kc868-AM and sensors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I get yaml configuration file for esphome for the diagram attached
what function you want to use?
if want use DS18B20, see here: https://esphome.io/components/sensor/dallas.html
I want to use DS18B20  to control air conditioners, to be turned On and Off based on defined temperature and motion sensor (person Presence)
This is my esphome yaml config file
esphome:
  name: kc868-am01
  friendly_name: Kc868-am01
esp32:
  board: esp32dev
  framework:
    type: arduino
# Enable logging
logger:
 
# Enable Home Assistant API
api:
  encryption:
    key: "mWaHqnW3P/nXU0DCEzl3GkixqPp44sawqt6lMh1JiuY="
ota:
  password: "4512ad14c7069c6f8f0bc1115de315b2"
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kc868-Am01 Fallback Hotspot"
    password: "liRZ0Eh243MY"
captive_portal:
dallas:
  - pin: 4
    id: hub4
  - pin: 3
    id: hub3
  - pin: 2
    id: hub2
# Individual sensors
sensor:
  - platform: dht
    pin: 1
    temperature:
      name: "Master Bedroom Temperature"
    humidity:
      name: "Master Bedroom Humidity"
    model: DHT22
    update_interval: 60s


The log file shows it is not detecting the sensors. The sensors are connected according to the pins described in the config
take a photo of your board, what have connected, which sensor want to use. question should have details, so that can help you.