Add support for fan and input_select (#27)

Fix #18, fix #28 

* Add support for fan domain

* Fix fan status string when speeds are not numeric

* Add support for input_select domain

* Fan and input_select domains will change the max, min, and scale if all of their options (or speeds) are numeric

* Perform numeric check less often

* Remove numeric mode in favor of cleaner logic

* Change some one-liners to arrow functions

* Fix bug on getter for string based option lists

* Update README.md
This commit is contained in:
Gabe Cook
2019-03-01 02:12:25 -06:00
committed by Thomas Lovén
parent be80ffd6bc
commit 96ed393e5c
2 changed files with 83 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
slider-entity-row
=================
Add a slider to adjust brightness of lights, volume of media players or position of covers in lovelace entity cards
Add a slider to adjust brightness of lights, volume of media players, position of covers and speed of fans in lovelace entity cards
![slider-entity-row](https://user-images.githubusercontent.com/1299821/48869222-b6303200-eddc-11e8-8b8c-7b4a9601df7a.png)
@@ -86,3 +86,6 @@ Add a slider to adjust brightness of lights, volume of media players or position
`step` - (default: 5) Step size of slider
Note that slider values are in percent and will be rescaled e.g. for lights which require a brightness setting between 0 and 255.
---
Thanks to Gabe Cook (@gabe565) for help with fan support.