Skip to content

Commit

Permalink
Update Switches.md
Browse files Browse the repository at this point in the history
Action from "Allow confirming switch toggle" house-of-abbey#190, make documentation clearer.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
  • Loading branch information
philipabbey authored Oct 6, 2024
1 parent bae5d37 commit 62847b5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/Switches.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ This is the simplest form:
},
```

And with an optional confirmation:

```json
{
"entity": "light.exterior",
"name": "Exterior Lights",
"type": "toggle",
"tap_action": {
"confirm": true
}
},
```

To support a non-standard light, switch, or automation as a toggle menu item you may like to define a custom switch. In order to facilitate custom switches at this time, you must create a template switch in HomeAssistant.

```yaml
Expand Down

0 comments on commit 62847b5

Please sign in to comment.