Hi,
I am working on a multisensor that uses the Ikea Vindriktning IKEA Vindriktning Smart Home Multisensor Mod by Knuspel - Thingiverse which measures PM2.5 with a PM1006. I want to change the update interval so that it measures more frequently at daytime than at night (or similar).
My plan is to set its update interval to never, like so:
- platform: pm1006
id: multisensorPm1006
update_interval: never
pm_2_5:
name: "Multisensor PM2.5 PM1006"
id: multisensorPm25Pm1006
and then call an update at a specified interval, like so:
interval:
- interval: 20s
then:
- component.update: multisensorBmp180
- component.update: multisensorPm1006
While it works for the Bmp180, I get an error for the PM1006, saying it does not inherit from PollingComponent (so the update function is not implemented). The error message is
ID 'multisensorPm1006' of type pm1006::PM1006Component doesn't inherit from PollingComponent. Please double check your ID is pointing to the correct value.
Looking at the sources at EspHome confirms that PM1006Component IS a PollingComponent. Looking at the C++ code also confirms this, and the required update method is implemented.
What am I doing wrong? This issue bugs me for quite while now …
Kind regards,
Knuspel