DHT22 sensor not working HASSOS

Hey i recently updated my software to HASSOS

Common DHT settings does not working anymore…

any idea?

  • platform: dht
    sensor: DHT22
    name: DHT22_Sensor1
    scan_interval: 300
    pin: 26
    temperature_offset: 0
    humidity_offset: 0
    monitored_conditions:
    • temperature
    • humidity

image

You have been a member of these forums for three years. I should not have to tell you to format your configuration.

1 Like

well the thing is this is exactly the format which is fully working in the older HA…
and the question’s purpose is to get help…

platform: dht
 sensor: DHT22
 pin: 23
 monitored_conditions:
   - temperature
   - humidity

We can’t help you if you don’t use code blocks, since the indentation etc. might get lost, and it’s important for YAML.
Also the code in the first post and your latest answer is different, please paste the entire config of the sensor into a code block.


  - platform: dht
    sensor: DHT22
    name: DHT22_Sensor1
    scan_interval: 300
    pin: 26
    temperature_offset: 0
    humidity_offset: 0
    monitored_conditions:
      - temperature
      - humidity
  # - platform: dht
    # pin: 26
    # model: DHT22
    # temperature:
      # name: "old_bath_temp"
    # humidity:
      # name: "old_bath_hum"
    # update_interval: 6s     
  # - platform: filter
    # name: "Filtered humidity 1"
    # unique_id: sensor.dht22_sensor1_humidity
    # filters:
      # - filter: outlier
        # window_size: 4
        # radius: 2.0
      # - filter: lowpass
        # time_constant: 2
        # precision: 1
  # - platform: filter
    # name: "Filtered temperature 1"
    # unique_id: sensor.dht22_sensor1_temperature
    # filters:
      # - filter: outlier
        # window_size: 4
        # radius: 1.5
      # - filter: lowpass
        # time_constant: 2
        # precision: 1

  - platform: modbus
    scan_interval: 1
    registers:
      - name: DIO
        slave: 1
        register: 10
        register_type: input
        count: 1
        data_type: int

BTW both modbus DIO and DHT are not working…

Platform error: sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 887, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 530, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 535, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/dht/sensor.py", line 7, in <module>
    import adafruit_dht
  File "/usr/local/lib/python3.9/site-packages/adafruit_dht.py", line 17, in <module>
    from digitalio import DigitalInOut, Pull, Direction
  File "/usr/local/lib/python3.9/site-packages/digitalio.py", line 35, in <module>
    from adafruit_blinka.microcontroller.amlogic.s905x3.pin import Pin
  File "/usr/local/lib/python3.9/site-packages/adafruit_blinka/microcontroller/amlogic/s905x3/pin.py", line 3, in <module>
    from adafruit_blinka.microcontroller.amlogic.meson_g12_common.pin import *
  File "/usr/local/lib/python3.9/site-packages/adafruit_blinka/microcontroller/amlogic/meson_g12_common/pin.py", line 12, in <module>
    import gpiod
ModuleNotFoundError: No module named 'gpiod'

How did you install Home Assistant? A missing gpiod usually indicates that you’re not running Home Assistant OS, are you?

yep…
used the git link
https://github.com/home-assistant/operating-system/releases/download/6.6/haos_odroid-c4-6.6.img.xz

using Odroid c4…

also tried reinstalling on new SD card same issue perhaps lib is not installed?

anyone?
still installed new version but ODRIOD does not have all libs…