Closed TRusselo closed 3 years ago
Actually adding Air Quality Level might be another good add.
I'm better with microsoft paint than code. this picture is a forgery. including the Auto button
Unfortunately, I don't have any fans that have the auto functionality so I don't have any way to know how the code works for those.
And TBH, it's not really a feature I would want to include anyway.
I've had many feature requests for very specific functions that wouldn't be useful to the vast majority of people and adding those to the code would make this pretty overwhelming.
And the air quality display is definitely out. I think you can already do that using built-in functions on a second row by creating a sensor from the attribute or I think you can use custom lovelace cards to add the info to the secondary-info field.
the logic is not hard, it can be understood from the 2 screen shots.
When attribute mode is set to auto, fan speed becomes null. (unit sets its own speed dependent on air quality attribute) When fan speed attribute is set to anything, the machine sets mode attribute back to manual (nothing to do).
Really it only comes down to adding a single Auto button, when pressed it sets mode attribute to auto, button lights up, if speed is null, low, med, high, should not be highlighted, only auto. Also if mode state changes to auto by other means, light up button.
If i knew python it would be done already, and you'd have a pull request.
But i understand if you don't want to include this. Im sure you have other things to do.
My Air purifier has fan speed attributes, but also has a mode attribute.
If you manually select a speed, mode sets to 'manual'. the purifier has an auto button. sets mode to Auto. Speed becomes null
If you could add option:
auto_button : true (default false) Enables an Auto button, the Auto button sets mode attribute to auto,