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] air purifier sensor states missing #402

Open
SeveranExp opened this issue Oct 20, 2022 · 4 comments
Open

[Feature Request] air purifier sensor states missing #402

SeveranExp opened this issue Oct 20, 2022 · 4 comments

Comments

@SeveranExp
Copy link
Contributor

Hi! Hope I’m doing this right!
I’m currently looking to build an air purifier management system, and while reading the google docs I found this:
https://developers.google.com/assistant/smarthome/guides/airpurifier

But the documentation over on openHAB seems to indicate that Air Purifiers are basically treated as fans. I’d like to ask if the “read sensor state” is something that is possible to add, because most current air purifiers carry some form or another of sensors (air quality, air particles, filter cleanliness…) and if possible this would be very google to expose to google.

Thank you!

@michikrug
Copy link
Collaborator

Yes. In theory this is possible.
BUT... querying sensor data does mostly not work as expected. At least I did not find a proper way to do so.
The thing I got working is the automatic notification when a certain value is observed. BUT this will not work with the current public openHAB integration and was only implemented in a personal proof of concept.

My recent work will soon add support for sensor data, but again it's likely that this functionality is not well supported by Google home and assistant.

@SeveranExp
Copy link
Contributor Author

Yes. In theory this is possible. BUT... querying sensor data does mostly not work as expected. At least I did not find a proper way to do so. The thing I got working is the automatic notification when a certain value is observed. BUT this will not work with the current public openHAB integration and was only implemented in a personal proof of concept.

My recent work will soon add support for sensor data, but again it's likely that this functionality is not well supported by Google home and assistant.

Humm is it an issue in googles side? I’m open to reaching out to them through their own forum an ask for assistance. or in other terms, I can annoy them for a statement and maybe a fix :D can you provide some additional information regarding the issues or would you prefer i link the post I create and you’ll add context later?

@michikrug
Copy link
Collaborator

michikrug commented Oct 31, 2022

Well if you look at https://developers.google.com/assistant/smarthome/traits/sensorstate there is no example stated on how to query such values.
Google seems to for now only provide options to notify on state changes. And as already said, this functionality is unfortunately not possible with the current setup of openHAB and this integration.

So feel free to reach out to them and ask for assistance on how to query sensor state values.


Even my Air Purifier that also integrates temperature, humidity, filter lifetime and pm25 does only provide an on/off switch in Google Home 😢 and I did not find any way to ask for a value using the assistant either. Except for temperature and humidity - there it works like for thermostats, but without any user interface display.

@SeveranExp
Copy link
Contributor Author

Well if you look at https://developers.google.com/assistant/smarthome/traits/sensorstate there is no example stated on how to query such values. Google seems to for now only provide options to notify on state changes. And as already said, this functionality is unfortunately not possible with the current setup of openHAB and this integration.

So feel free to reach out to them and ask for assistance on how to query sensor state values.

Even my Air Purifier that also integrates temperature, humidity, filter lifetime and pm25 does only provide an on/off switch in Google Home 😢 and I did not find any way to ask for a value using the assistant either. Except for temperature and humidity - there it works like for thermostats, but without any user interface display.

Sorry for the late reply, too much has happened since my last post :)
Could I bother you to check the link you shared above and check if the examples listed there are new? (I honestly don’t remember)
Because we have there AQI sensor examples now, for sensors that report in parts per million, text or even both.

Hoping that maybe this is something new and usable… cheers :)

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

2 participants