Hi
I am having a problem setting up DHT22 for MQTT IO, the log says there is no module configured with the name DHT22. I am not sure how to fix the problem. Please let me know if you have any advice.
Log from MQTT IO
[15:39:16] INFO: Starting MQTT IO...
Config did not validate due to errors in the following sections:
sensor_inputs:
Out_humidity:
- sensor_modules section has no module configured with the name 'dht22'
Out_tempertuare:
- sensor_modules section has no module configured with the name 'dht22'
[15:39:21] INFO: Service MQTT IO exited with code 1 (by signal 0)
mqtt:
host: localhost
port: 1883
user: “”
password: “”
ha_discovery:
enabled: yes
topic_prefix: Office
#GPIO
gpio_modules:
- name: rpi
module: raspberrypi
digital_inputs:
- name: Out_tempertuare
module: rpi
pin: 5
type: temperature
Sensors
sensor_modules:
- name: Out
module: dht22
type: AM2302
pin: 5
sensor_inputs:
- name: Out_tempertuare
type: temperature
module: dht22
pin: 5
ha_discovery:
name: Workshop Temperature
device_class: temperature
#interval: 3
#temperature_offset: 0.1
#humidity_offset: -3.2
- name: Out_humidity
type: humidity
module: dht22
pin: 5
#interval: 3
ha_discovery:
name: Workshop Humidity
device_class: humidity