sherazlodhi
(Muhammad Sheraz Lodhi)
July 15, 2018, 12:39pm
1
Hello,
I am using PM sensor and I can see the values from the senor are being continuously updated on my dashboard. I want to know how often they are being updated and how can I configure the update interval for this sensor?
I can see the code here https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/sensor/serial_pm.py but I don’t understand how is the senor being updated?
I believe the default update interval is 30 sec. You should be able to change that by using the scan_interval
parameter in the platform configuration.
sherazlodhi
(Muhammad Sheraz Lodhi)
July 15, 2018, 1:02pm
3
thanks, but is it not true that this scan_interval global and will impact all other sensors too?
The way I understand it, it’s per platform config. So if you do:
sensor:
- platform: serial_pm
...
scan_interval:
seconds: 10
that should only impact that one sensor. FWIW, I do this for one of my sensors.
sherazlodhi
(Muhammad Sheraz Lodhi)
July 15, 2018, 1:36pm
5
yes, you are right. thanks