From 4c2bc3997a515bd810ca0b8f6f82ce8b27f54f2d Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Fri, 1 May 2020 17:00:26 +0300 Subject: [PATCH] just use homeassistant.toggle --- .../button_card_templates/with_state_indicator_button.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lovelace/button_card_templates/with_state_indicator_button.yaml b/config/lovelace/button_card_templates/with_state_indicator_button.yaml index cc96fca..1ce9f17 100644 --- a/config/lovelace/button_card_templates/with_state_indicator_button.yaml +++ b/config/lovelace/button_card_templates/with_state_indicator_button.yaml @@ -11,7 +11,7 @@ with_state_indicator: triggers_update: all # unfortunately a template doesn't seem to work here :/ double_tap_action: action: call-service - service: "[[[ return variables.state_indicator_id.split('.')[0] + '.toggle' ]]]" + service: homeassistant.toggle service_data: entity_id: "[[[ return variables.state_indicator_id ]]]" styles: