Smart Home Automation Forum
KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - 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-AM (https://www.kincony.com/forum/forumdisplay.php?fid=45)
+--- Thread: KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml (/showthread.php?tid=5857)



KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - admin - 06-06-2024

Code:
esphome:
  name: am

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Example configuration entry
api:

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
 
  manual_ip:
    static_ip: 192.168.1.211
    gateway: 192.168.1.1
    subnet: 255.255.255.0

switch:
  - platform: gpio
    name: "am-light1"
    pin: 15
    inverted: False

sensor:
  - platform: dht
    pin: 33
    temperature:
      name: "Living Room Temperature"
    humidity:
      name: "Living Room Humidity"
    update_interval: 10s


  - platform: dallas
    dallas_id: hub_1
    address: 0xde0b23585c42fb28
    name: "Temperature #1"
  - platform: dallas
    dallas_id: hub_1
    address: 0xd20b2210b8edbd28
    name: "Temperature #2"
  - platform: dallas
    dallas_id: hub_3
    address: 0x690b2210c2ff4a28
    name: "Temperature #3"
  - platform: dallas
    dallas_id: hub_2
    address: 0x3f0b2210c07d1b28
    name: "Temperature #4"


dallas:
  - pin: 5
    id: hub_1
    update_interval: 10s
  - pin: 13
    id: hub_2
    update_interval: 20s
  - pin: 14
    id: hub_3
    update_interval: 30s

yaml file download: 
.txt   esphome_AM.txt (Size: 1.13 KB / Downloads: 91)


RE: KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - jrtaylor - 11-20-2024

This example is no longer valid. Please see https://esphome.io/components/sensor/dallas_temp

Can you provide an updated example for DS18B20 temp sensor.


RE: KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - admin - 11-20-2024

see this link: https://www.kincony.com/forum/showthread.php?tid=6944
it's the newest yaml i have tested.


RE: KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - jrtaylor - 11-21-2024

I git it working. This is the code I am using and currently have only 1 sensor per input so no address.

Code:
switch:
  - platform: gpio
    name: "OVER-TEMP"
    pin: 15
    inverted: False

sensor:
  - platform: dallas_temp
    one_wire_id: hub_1
    name: "Barn Loop"
    update_interval: 10s
  - platform: dallas_temp
    one_wire_id: hub_2
    name: "Studio Loop"
    update_interval: 10s
  - platform: dallas_temp
    one_wire_id: hub_3
    name: "Return Loops"
    update_interval: 10s
  - platform: dallas_temp
    one_wire_id: hub_4
    name: "Main Boiler Temp"
    update_interval: 10s

one_wire:
  - platform: gpio
    pin: GPIO05
    id: hub_1
  - platform: gpio
    pin: GPIO13
    id: hub_2
  - platform: gpio
    pin: GPIO14
    id: hub_3
  - platform: gpio
    pin: GPIO33
    id: hub_4



RE: KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml - admin - 11-21-2024

ok, thanks share your code.