mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
just use homeassistant.toggle
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user