From 043292d7536f0d5453762bb01e9ef27bbad685f1 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Tue, 23 Dec 2025 12:29:41 +0000 Subject: [PATCH] Add EV charger mode select example to Actions docs Expanded the Selects section with an example showing how to use a tap action to cycle through EV charger modes using the select service. Also credited the community member who contributed the example. --- examples/Actions.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/examples/Actions.md b/examples/Actions.md index 9f55ada..e22aef1 100644 --- a/examples/Actions.md +++ b/examples/Actions.md @@ -119,7 +119,26 @@ If you would like to temporarily disable an item in your menu, e.g. for seasonal # Selects -Here is an example of how to make a light effect selector: +An example of using a `select` service. In this example, the `tap` item allows you to pick the mode of your EV charger. The code snippet asks Home Assistant to cycle to the next mode every time the menu item is pressed. + +```json +{ + "name": "SmartEVSE Mode", + "content": "{{ states('select.smartevse_mqtt_mode') }}", + "type": "tap", + "tap_action": { + "service": "select.select_next", + "data": { + "entity_id": "select.smartevse_mqtt_mode", + "cycle": true + } + } +} +``` + +Try the same pattern for any selector `input_select.*`, `select.*`, `climate.*` mode? With thanks to @[arobaZ](https://community.home-assistant.io/u/arobaZ) for the above example. + +Here's another example of how to make a light effect selector using a `group` menu item with explicitly defined menu items below it: ```json { @@ -176,8 +195,6 @@ Here is an example of how to make a light effect selector: } ``` -The same pattern works for any selector (`input_select.*`, `select.*`, `climate.*` mode). - ## Credits With thanks to Matthias Oesterheld, [moesterheld](https://github.com/moesterheld) for contributing the PIN feature.