|
| 1 | +Changes: |
| 2 | + |
| 3 | +- v1.2 - added the ability to customize the text for the buttons. defaults to "OFF, LOW, MED, HIGH" |
| 4 | + |
1 | 5 | This is an element to add a fan control row to Home Assistant for 3-speed fans. |
2 | 6 |
|
3 | 7 | It uses the code that can be found in my fan control package @ https://github.com/finity69x2/Home-Assistant/blob/master/packages/fan_package.yaml |
@@ -28,8 +32,12 @@ Then to use this in a card place the following in your entity card: |
28 | 32 | | customIsOffColor | String | No | '#f44c09' | Sets the color of the 'Off' button if fan is off | |
29 | 33 | | customIsOnLowColor | String | No | '#43A047' | Sets the color of the 'Low' button if fan is on low | |
30 | 34 | | customIsOnMedColor | String | No | '#43A047' | Sets the color of the 'Med' button if fan is on Medium | |
31 | | -| customIsOnHiColor | String | No | '#43A047' | Sets the color of the 'Hi' button if fan is on high | |
32 | | -| customIsOffSpdColor | String | No | '#759aaa' | Sets the color of the the buttons if that selection is off | |
| 35 | +| customIsOnHiColor | String | No | '#43A047' | Sets the color of the 'High' button if fan is on high | |
| 36 | +| customIsOffSpdColor | String | No | '#759aaa' | Sets the color of the buttons if that selection is off | |
| 37 | +| customOffText | String | No | 'OFF' | Sets the text of the "off" button | |
| 38 | +| customLowText | String | No | 'LOW' | Sets the text of the "low" speed button | |
| 39 | +| customMedText | String | No | 'MED' | Sets the text of the "medium" speed button | |
| 40 | +| customHiText | String | No | 'HIGH' | Sets the text of the "High" speed button | |
33 | 41 |
|
34 | 42 |
|
35 | 43 | The values for the colors can be any valid color string in "HEX", "RGB" or by color name. |
@@ -69,6 +77,14 @@ The optional "sendStateWithSpeed" config entry is only needed to be set to true |
69 | 77 | type: custom:fan-control-entity-row |
70 | 78 | name: MBR Fan Not Custom |
71 | 79 | sendStateWithSpeed: true |
| 80 | + ## USE THIS CONFIG TO SET CUSTOM BUTTON TEXT (NOT REQUIRED TO SET "customTheme: true" TO USE THESE ) |
| 81 | + - entity: fan.sunroom_fan |
| 82 | + type: custom:fan-control-entity-row |
| 83 | + name: Sunroom Fan Custom Custom |
| 84 | + customHiText: me |
| 85 | + customLowText: do |
| 86 | + customMedText: re |
| 87 | + customOffText: not |
72 | 88 | ``` |
73 | 89 |
|
74 | 90 | This is with the default Lovelace frontend theme set: |
|
0 commit comments