Skip to content

Add pm1 and pm10 fields to key map#1

Open
aijayadams wants to merge 1 commit into
thedjinn:masterfrom
aijayadams:master
Open

Add pm1 and pm10 fields to key map#1
aijayadams wants to merge 1 commit into
thedjinn:masterfrom
aijayadams:master

Conversation

@aijayadams
Copy link
Copy Markdown

@aijayadams aijayadams commented Feb 20, 2021

My BlueAir unit returns additional PM fields that arn't mapped in the transform and throw a key error when being processed. Units that don't have the additional fields should not be impacted by their inclusion in the transform map.

Blue Air:
'compatibility': 'classic_280i', 'timezone': 'America/Los_Angeles', 'model': '1.0.9', 'firmware': '1.1.38'

Example API Response:

{'uuid': 'XXXXXXXXXXXXXXXX',
 'start': 1613787478,
 'end': 1613787478,
 'sensors': ['time',
  'pm',
  'pm1',
  'pm10',
  'voc',
  'co2',
  'tmp',
  'hum',
  'allpollu'],
 'units': ['s', 'ugm3', 'ugm3', 'ugm3', 'ppb', 'ppm', 'C', 'pc', '%'],
 'datapoints': [[1613787478,
   0.0,
   0.0,
   0.0,
   296,
   772,
   19.656,
   55.324,
   24.428572]]}

@aijayadams aijayadams marked this pull request as ready for review February 20, 2021 02:30
@zacstewart
Copy link
Copy Markdown

I came here to make the same PR. @thedjinn I'd love to see this merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants