Hello guys
im trying to get the dht22 sensor to work with sonoff tx switch using Esphome but i cant get it to work im getting error
Requesting data from DHT failed!
Invalid readings! Please check your wiring (pull-up resistor, pin number)
here is my configuration
esphome:
name: living_room_light_switch2
platform: ESP8266
board: esp01_1m
wifi:
ssid: "Zain-B715-44D3"
password: "RYR2BF3HY3B"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Light Switch1 Living Room"
password: !secret ap_password
captive_portal:
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
id: button_1
on_press:
then:
- light.toggle: light_1
- platform: gpio
pin:
number: GPIO9
mode: INPUT_PULLUP
inverted: True
id: button_2
on_press:
then:
- light.toggle: light_2
- platform: gpio
pin:
number: GPIO10
mode: INPUT_PULLUP
inverted: True
id: button_3
on_press:
then:
- light.toggle: light_3
- platform: status
name: "T3 Status"
output:
- platform: gpio
pin: GPIO12
id: relay_1
- platform: gpio
pin: GPIO5
id: relay_2
- platform: gpio
pin: GPIO4
id: relay_3
light:
- platform: binary
name: "T3 L1"
id: light_1
output: relay_1
- platform: binary
name: "T3 L2"
id: light_2
output: relay_2
- platform: binary
name: "T3 L3"
id: light_3
output: relay_3
status_led:
pin:
number: GPIO13
inverted: no
sensor:
- platform: dht
model: DHT22
pin: GPIO1
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
web_server:
port: 80
i use RX
pin and already disabled logger still not working.
1 post - 1 participant