just use homeassistant.toggle

This commit is contained in:
2020-05-01 17:00:26 +03:00
parent 67e50971e4
commit 4c2bc3997a
@@ -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: