diff --git a/examples/Switches.md b/examples/Switches.md index 2488316..0474499 100644 --- a/examples/Switches.md +++ b/examples/Switches.md @@ -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