11-20-2024, 12:16 PM
dear admin,
I am using KC868-A16 and I need to connect temperature and humidity sensors to 3 1-Wire inputs. I connected DS18B20 sensors to pins "GPIO32" and "GPIO33" and DHT22 sensor (/AM2302) to pin "GPIO14". When installing the module in HomeAssistant add-on ESPHome, DS18B20 sensors are loaded correctly, but DHT22 sensor is not found. I tried two DHT22 sensors with the same result.
This is the code in YAML
###
one_wire:
- platform: gpio
pin: GPIO32
id: one_wire1
- platform: gpio
pin: GPIO33
id: one_wire2
- platform: gpio
pin: GPIO14
id: one_wire3
.
.
.
sensor:
- platform: dallas_temp
address: 0x773ce1d458ac1a28
name: temperature1
update_interval: 120s
one_wire_id: one_wire1
- platform: dallas_temp
address: 0xfd3ce1d4432b6528
name: temperature2
update_interval: 120s
one_wire_id: one_wire2
###
The attached image is a screenshot from the installation.
Please could you help me? Where am I making a mistake?
Is this the correct code to get values from DHT22?
###
- platform: dht
model: DHT22
one_wire_id: one_wire3
temperature:
name: "Temperature3"
humidity:
name: "Humidity3"
update_interval: 30s
###
I am using KC868-A16 and I need to connect temperature and humidity sensors to 3 1-Wire inputs. I connected DS18B20 sensors to pins "GPIO32" and "GPIO33" and DHT22 sensor (/AM2302) to pin "GPIO14". When installing the module in HomeAssistant add-on ESPHome, DS18B20 sensors are loaded correctly, but DHT22 sensor is not found. I tried two DHT22 sensors with the same result.
This is the code in YAML
###
one_wire:
- platform: gpio
pin: GPIO32
id: one_wire1
- platform: gpio
pin: GPIO33
id: one_wire2
- platform: gpio
pin: GPIO14
id: one_wire3
.
.
.
sensor:
- platform: dallas_temp
address: 0x773ce1d458ac1a28
name: temperature1
update_interval: 120s
one_wire_id: one_wire1
- platform: dallas_temp
address: 0xfd3ce1d4432b6528
name: temperature2
update_interval: 120s
one_wire_id: one_wire2
###
The attached image is a screenshot from the installation.
Please could you help me? Where am I making a mistake?
Is this the correct code to get values from DHT22?
###
- platform: dht
model: DHT22
one_wire_id: one_wire3
temperature:
name: "Temperature3"
humidity:
name: "Humidity3"
update_interval: 30s
###