Skip to content

Commit 6b7a547

Browse files
authored
add instructions for custom button text
1 parent c97dcf4 commit 6b7a547

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

info.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Changes:
2+
3+
- v1.2 - added the ability to customize the text for the buttons. defaults to "OFF, LOW, MED, HIGH"
4+
15
This is an element to add a fan control row to Home Assistant for 3-speed fans.
26

37
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:
2832
| customIsOffColor | String | No | '#f44c09' | Sets the color of the 'Off' button if fan is off |
2933
| customIsOnLowColor | String | No | '#43A047' | Sets the color of the 'Low' button if fan is on low |
3034
| 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 |
3341

3442

3543
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
6977
type: custom:fan-control-entity-row
7078
name: MBR Fan Not Custom
7179
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
7288
```
7389

7490
This is with the default Lovelace frontend theme set:

0 commit comments

Comments
 (0)