I have a DS18b20 on GPIO14 and working. Trying to use a Dht11 on GPIO05.
The code I use (try) is:
#
one_wire:
- platform: gpio
pin: GPIO14
id: one_wire1
- platform: gpio
pin: GPIO05
id: one_wire2
Sensor
- platform: dallas_temp
name: #AIO DS18B20 #1"
update_interval: 10s
one_wire_id: one_wire1
- platform: dht
model: DHT11
one_wire_id: one_wire2
temperature:
name: "Temperature2"
humidity:
name: "Humidity2"
update_interval: 10s
#
The error I get is:
INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/aio.yaml...
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-a...pping-pins
Failed config
sensor.dht: [source /config/esphome/aio.yaml:429]
'pin' is a required option for [sensor.dht].
platform: dht
model: DHT11
[one_wire_id] is an invalid option for [sensor.dht]. Please check the indentation.
one_wire_id: one_wire2
temperature:
name: Temperature2
humidity:
name: Humidity2
update_interval: 10s
What am I doing wrong? I am using 3.3v for Dht11. Tried 2 different sensors, both same error.
https://a.aliexpress.com/_EIdTg JK
https://a.aliexpress.com/_EQCKU9Q
The code I use (try) is:
#
one_wire:
- platform: gpio
pin: GPIO14
id: one_wire1
- platform: gpio
pin: GPIO05
id: one_wire2
Sensor
- platform: dallas_temp
name: #AIO DS18B20 #1"
update_interval: 10s
one_wire_id: one_wire1
- platform: dht
model: DHT11
one_wire_id: one_wire2
temperature:
name: "Temperature2"
humidity:
name: "Humidity2"
update_interval: 10s
#
The error I get is:
INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/aio.yaml...
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-a...pping-pins
Failed config
sensor.dht: [source /config/esphome/aio.yaml:429]
'pin' is a required option for [sensor.dht].
platform: dht
model: DHT11
[one_wire_id] is an invalid option for [sensor.dht]. Please check the indentation.
one_wire_id: one_wire2
temperature:
name: Temperature2
humidity:
name: Humidity2
update_interval: 10s
What am I doing wrong? I am using 3.3v for Dht11. Tried 2 different sensors, both same error.
https://a.aliexpress.com/_EIdTg JK
https://a.aliexpress.com/_EQCKU9Q
(04-14-2025, 07:39 PM)xarouli5 Wrote: I have a DS18b20 on GPIO14 and working. Trying to use a Dht11 on GPIO05.
The code I use (try) is:
Code:one_wire:
- platform: gpio
pin: GPIO14
id: one_wire1
- platform: gpio
pin: GPIO05
id: one_wire2
Sensor:
- platform: dht
model: DHT11
one_wire_id: one_wire2
temperature:
name: "Temperature2"
humidity:
name: "Humidity2"
update_interval: 10s
The error I get is:
INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/aio.yaml...
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-a...pping-pins
Failed config
sensor.dht: [source /config/esphome/aio.yaml:429]
'pin' is a required option for [sensor.dht].
platform: dht
model: DHT11
[one_wire_id] is an invalid option for [sensor.dht]. Please check the indentation.
one_wire_id: one_wire2
temperature:
name: Temperature2
humidity:
name: Humidity2
update_interval: 10s
What am I doing wrong? I am using 3.3v for Dht11. Tried 2 different sensors, both same error.
https://a.aliexpress.com/_EIdTg JK
https://a.aliexpress.com/_EQCKU9Q

