Skip to content

Add support for current CO2 from Alpstuga Air Quality Sensor - #182

Merged
sanjoyg merged 3 commits into
sanjoyg:mainfrom
stirante:main
Feb 16, 2026
Merged

Add support for current CO2 from Alpstuga Air Quality Sensor#182
sanjoyg merged 3 commits into
sanjoyg:mainfrom
stirante:main

Conversation

@stirante

Copy link
Copy Markdown
Contributor

Describe your changes

This PR adds Current CO2 sensor from ALPSTUGA.

Currently it's waiting for this PR to be merged and released: Leggin/dirigera#124

In the meantime, you can change requirements.txt and manifest.json base lib to dirigera @ git+https://github.com/stirante/dirigera@main

Checklist before submitting a pull request

  • Updated base lib and added the required version in the requirements.txt and manifest.json

Checklist for reviewer

  • Select "Squash and merge" to keep commit timeline clean

@noahwilliamsson

Copy link
Copy Markdown
Contributor

Nice work!

In the meantime, you can change requirements.txt and manifest.json base lib to dirigera @ git+https://github.com/stirante/dirigera@main

I applied the changes from your PR and edited those files, and can confirm it works as expected. Nice work and thank you!

name="CO2",
device_class=SensorDeviceClass.CO2,
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To enable long-term statistics for this sensor, and allow the use of the Statistics or Statistics graph cards, can you add this property?

state_class=SensorStateClass.MEASUREMENT

(Just realized this problem is present for a bunch of other IKEA environment sensors as well -- currently the statistics card only shows the temperature sensor but not humidity etc).

nrbrt added a commit to nrbrt/dirigera_platform that referenced this pull request Jan 25, 2026
@sanjoyg
sanjoyg marked this pull request as ready for review February 16, 2026 16:51
@sanjoyg
sanjoyg merged commit 4975230 into sanjoyg:main Feb 16, 2026
@sanjoyg

sanjoyg commented Feb 16, 2026

Copy link
Copy Markdown
Owner

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.

3 participants