Closed eramdam closed 1 year ago
Hi @eramdam -- I noticed too Purple Air's API now puts "pm2.5_cf_1" at the top level and not in stats. I'll upvote your PR.
Hi @eramdam -- I noticed too Purple Air's API now puts "pm2.5_cf_1" at the top level and not in stats. I'll upvote your PR.
I'll close this PR because yours is probably the better way to do it 😁
When trying to set up the widget for myself, I noticed that the
pm2.5_cf_1
field wasn't defined, resulting in the widget not displaying any value.I don't know if
json.sensor.stats["pm2.5_cf_1"]
is a typo and should bejson.sensor["pm2.5_cf_1"]
instead or ifpm2.5_cf_1
used to be available on thestats
object but in any case, this PR fixed the issue for me so feel free to merge it if that's The Right Way™️ to do it 😁