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 a DysonFilterLifePercentage class for the Pure Cool link #219

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rclarkmorrow
Copy link

You might not like this as it's a calculated sensor value and not a raw value, and you can make calculated sensor values with the templating integration -- this is fair, cause it makes me a little squishy myself.

But I didn't like either option provided by the integration. Defining the sensor in configuration.yaml means it can't be added to the air purifier device, and defining the sensor using the integration's UI tool lets you add the sensor to the air purifier device but it's in the Sensors section not the Diagnostic section. I didn't like having a sensor that should be a diagnostic out of place, so I did this for myself, and thought I'd at least give you the opportunity to decide if you think it'd be useful for anyone else.

I have 3 of these that seem to confirm that the math here matches the math being used in how the % is displayed in the official Dyson app.

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.

1 participant