Skip to content

Commit

Permalink
add instructions for custom button text
Browse files Browse the repository at this point in the history
  • Loading branch information
finity69x2 authored Jun 7, 2020
1 parent 1e97cfe commit cd3c59b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes:

- v1.2 - added the ability to customize the text for the buttons. defaults to "OFF, ON"

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)

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.
Expand Down Expand Up @@ -27,6 +31,8 @@ Then to use this in a card place the following in your entity card:
| IsOffColor | String | No | '#f44c09' | Sets the color of the 'Off' button if entity is off |
| IsOnColor | String | No | '#43A047' | Sets the color of the 'Low' button if entity is on low |
| ButtonInactiveColor | String | No | '#759aaa' | Sets the color of the the buttons if that selection is not "active" |
| customOffText | String | No | 'OFF' | Sets the text of the "off" button |
| customLowText | String | No | 'ON' | Sets the text of the "on" button |

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

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

Expand Down

0 comments on commit cd3c59b

Please sign in to comment.