Skip to content

Commit cd3c59b

Browse files
authored
add instructions for custom button text
1 parent 1e97cfe commit cd3c59b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

info.md

Lines changed: 12 additions & 0 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, ON"
4+
15
Provides a means to program a Lovelace button row to control any binary entity (lights, switches, input booleans, etc) that have the state as either on or off. This will also work for fans and dimmable lights that you would only ever like to switch on & off with a single speed or brightness setting (set outside the configuration for this plugin)
26

37
This plug-in was inspired by user @jazzyisj on the Home Assistant forum (community.home-assistant.io) as a thematically complementary plug-in for my fan control row & light brightness preset row.
@@ -27,6 +31,8 @@ Then to use this in a card place the following in your entity card:
2731
| IsOffColor | String | No | '#f44c09' | Sets the color of the 'Off' button if entity is off |
2832
| IsOnColor | String | No | '#43A047' | Sets the color of the 'Low' button if entity is on low |
2933
| ButtonInactiveColor | String | No | '#759aaa' | Sets the color of the the buttons if that selection is not "active" |
34+
| customOffText | String | No | 'OFF' | Sets the text of the "off" button |
35+
| customLowText | String | No | 'ON' | Sets the text of the "on" button |
3036

3137
The values for the colors can be any valid color string in "HEX", "RGB" or by color name.
3238

@@ -56,6 +62,12 @@ The values for the colors can be any valid color string in "HEX", "RGB" or by co
5662
IsOnColor: 'rgb(255, 0, 0)'
5763
IsOffColor: 'purple'
5864
ButtonInactiveColor: '#aaaaaa'
65+
## USE THIS CONFIG TO SET CUSTOM BUTTON TEXT (NOT REQUIRED TO SET "customTheme: true" TO USE THESE )
66+
- type: custom:binary-control-button-row
67+
name: Basement Bath Customized Button Row
68+
entity: light.sengled_e11g13_03070a4c_1
69+
customOnText: yay
70+
customOffText: nay
5971
6072
```
6173

0 commit comments

Comments
 (0)