I am having a strange issue, the sensor seems to work fine with the configuration below
platform: serial_pm
serial_device: /dev/ttyUSB0
scan_interval: 30
name: Nova
brand: novafitness,sds011
The problem is that it works fine for some time but then it stops updating the sensor values, even if I remove the sensor from my device. It still keeps showing the older values no matter what happens.
If I restart my device pi only then the values are updated correctly.
is there any solution to this problem. I am using raspberry pi 3
I’ve changed my “configuration.yalm” file with the values it proposes. But still the readings, although they have decreased a lot, are still abnormally high.
Any suggestions for changes?
Thank you
hi mrk, thanks for updating the files.
However, I now face an issue:
Error while setting up platform sds011
Traceback (most recent call last):
File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/mnt/hass/custom_components/sds011/sensor.py", line 42, in setup_platform
config.get(CONF_NUMBER_OF_MEASUREMENTS, 5),
File "/mnt/hass/custom_components/sds011/sensor.py", line 74, in __init__
self._sensor = sds011.SDS011(device, use_query_mode=True)
AttributeError: module 'sds011' has no attribute 'SDS011'