Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-AM work with DS18B20 DHT11 sensor ESPHome yaml
#1
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)
Reply
#2
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.
Reply
#3
see this link: https://www.kincony.com/forum/showthread.php?tid=6944
it's the newest yaml i have tested.
Reply
#4
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
Reply
#5
ok, thanks share your code.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)