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

Add pm25/air quality support to IKEA STARKVIND #3338

Merged
merged 3 commits into from
Nov 12, 2021
Merged

Conversation

sjorge
Copy link
Contributor

@sjorge sjorge commented Nov 12, 2021

image

Reporting for this cluster doesn't seem to work, it returns INVALID_DATA.

From what I gather from the various discussions over at the z2m repo is that the app will poll the value when viewing the device. The value also only updates when the fan is running, if the fan is off after a while the value will return 65535 indicating the current value is not known.

Edit: I assume we should update the notes for the device to indicate that the value needs to be manual refreshed and it's quirks?

Unfortunately it looks like we can't configure reporting for this attribute.
The value is not update when the device is not running. The user can manualy poll the value.
@Koenkk Koenkk merged commit 1ad7e28 into Koenkk:master Nov 12, 2021
@sjorge
Copy link
Contributor Author

sjorge commented Nov 12, 2021

@Koenkk question about the the precision option, can I set the default to 2 for the device? Or is that always 0 ? I'm OK with either but the device supports up to 2

@sjorge sjorge deleted the starkvind branch November 12, 2021 17:40
@Koenkk
Copy link
Owner

Koenkk commented Nov 12, 2021

If the default is 2, please set the default to 2.

@sjorge
Copy link
Contributor Author

sjorge commented Nov 12, 2021

If the default is 2, please set the default to 2.

Yes, but how? It's not obvious to me where to set the default.

@Koenkk
Copy link
Owner

Koenkk commented Nov 12, 2021

Does it work after adding pm25: 2 to

const defaultPrecision = {temperature: 2, humidity: 2, pressure: 1};
?

@sjorge
Copy link
Contributor Author

sjorge commented Nov 12, 2021

That seems to work, that will effect other pm25 sensors like the heiman ones too right?
Although those seem to get divided by 100.0, the ikea definitely needs that or otherwise I'd be living in a dusty saw mill.

sjorge added a commit to sjorge/zigbee-herdsman-converters that referenced this pull request Nov 12, 2021
Koenkk pushed a commit that referenced this pull request Nov 14, 2021
* Revert "Add pm25/air quality support to IKEA STARKVIND E2007 (#3338)"

This reverts commit 1ad7e28.

* Add fz.ikea_air_purifier

* Add tz.ikea_air_purifier_*

* Update STARKVIND expose data

* Update STARKVIND reporting

* Fix lint

* Rework STARKVIND to custom fan_mode/fan_state

* Rename filterOperationTime to filterRunTime

* Use value from filterLifeTime

* Report filterRunTime once an hour filterRunTime
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