Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Add more sensors #16

Open
MimbaMonkeyHouse opened this issue Feb 13, 2020 · 5 comments
Open

FEATURE REQUEST: Add more sensors #16

MimbaMonkeyHouse opened this issue Feb 13, 2020 · 5 comments

Comments

@MimbaMonkeyHouse
Copy link

Love this. Just had to hack a little the main pollutant sensor for PM2.5:

sensor:
  - platform: template
    sensors:
      main_pollutant:
        unit_of_measurement: 'µg/m3'
        value_template: "{{ states('sensor.pm_2_5um') | round(1) }}"
        attribute_templates:
          pollutant_symbol: p2
          pollutant_unit: µg/m3
          lati: -10.5647
          long: 135.98975

This allows to get around the free plan limitation. A better value template could be created to change the value based on the sensor.us_main_pollutant...
Anyways, it would be great to use this same card to display more sensons. PM<10 and PM<1 are no brainers, but others may want SO2 or CO as well. Additional sensors could be displayed below the main pollutant...

@dnguyen800
Copy link
Owner

interesting, but what does your template sensor do in this example? Provide additional static attributes?

@MimbaMonkeyHouse
Copy link
Author

It makes it consumable by your Air Visual Card... My original sensor sensor.pm2_5um could not be used by the Card as it does not have the correct attributes.

@MimbaMonkeyHouse
Copy link
Author

Is there a possibility to add more sensors for this card in an easy way?

@dnguyen800
Copy link
Owner

could you draw a mockup of how you would like the card to display the additional sensors? I think it's possible to add another row and include the sensor data, but I'd rather start with an example so I at least get your use case up and running...

@Ndrinta
Copy link

Ndrinta commented Nov 9, 2020

Hi @MimbaMonkeyHouse, check Issue #35 (comment with some code), you might find it interesting.

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

No branches or pull requests

3 participants