mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-02 18:08:34 +00:00
Update Switches.md
Action from "Allow confirming switch toggle" https://github.com/house-of-abbey/GarminHomeAssistant/issues/190, make documentation clearer. Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
This commit is contained in:
@ -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.
|
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
|
```yaml
|
||||||
|
Reference in New Issue
Block a user