-
Notifications
You must be signed in to change notification settings - Fork 428
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
Saxel Fan Updates #1116
Saxel Fan Updates #1116
Conversation
Quick and dirty Horizontal Mode added. |
@benbur98: I have Xiaomi Mi Air Purifier 2S and 3, so I can do the tests. From my point of view the only reasonable servise to be assigned to the button would be the looping between presets, this is what the button/touch screen does too. One press, Auto, press again, Silent, press again Manual/Favorite and so on (or if there are levels, those ones). In my case the attributes are the following: |
Thanks for the info. Implementing auto mode toggle should be doable. The trouble really is keeping it consistent between different fans - unfortunately there is no ‘get available presets’ option so without restricting it by variables it’s a very specific option. |
@benbur98 I replaced the yaml with yours, but I got an error for label (I defined the variables for temp and hum attributes and the one to remove the button. After hardcoded a value for label, I got this: |
@shift-del1 Thanks for checking this out. How did you define the variables, can you share your YAML? Also what do you mean by 'hardcoded a value for label'. |
Note: This check is only spelling due to the spelling of 'Collapsable' in the Doc - I Have spelt it this way as changing the variable spelling to be correct 'Collapsible' is not worth the breaking change. |
@benbur98: I reverted back my config to the original fan card, so I can not show my YAML (sorry). "Hardcoded" means I replaced the label section with a string (so skipped the whole function which defines the string to show as a label). Technically it should simplyfy the card while loosing its flexibility, but for my test it should have been enough (but it wasn't :-D). I'm sure it is hard to help without data, just wanted to ask if you faced the same previously. |
I have worked on a few updates to @saxel fan card.
Have incorporated some of @sildehoop work with the percentage/humidity labels (these can be optioned out if not desired), from his PR #134
I have added the option to remove the Oscillation button as requested in #107 . With changing the Service of this button it is more complicated, could someone with an air purifier comment on what service (and it's data) they would specifically like - I have started to add this option but currently only oscillation will work (as previous) as i haven't added anything to change the Service data.
Planning on implementing the Horizontal card layout also.