Hi everybody,
I am trying to create a script using variables; however, I get the following errors:
-
Template rendered invalid entity IDs:
when I try to run that part of the script from inside the script editor -
Fehler beim Aufrufen des Diensts script/rollerblinds_morgens_hoch. connection lost
: when I run the entire script from the scripts section (translates toerror calling script script/rollerblinds_morgens_hoch. connection lost
)
Can you please tell me what I need to change in order for this to work? I have tried both position: "{{ hoch }}"
and position: "{{ hoch | int}}"
(even though the input_number
is already int
).
Thank you for your help
(and cover.unten_arbeitszimmer_rollorblinds_vorne
is not a typo in my script; I named the entity incorrectly when I set it up in zigbee2mqtt
, so while it should be rollerblinds
, the misspelling should not be responsible for these errors here. The entity even got auto-completed when I typed it in the script editor)
alias: Rollerblinds/Morgens/Hoch
sequence:
- variables:
rollo: cover.unten_arbeitszimmer_rollorblinds_vorne
hoch: input_number.unten_arbeitszimmer_rollerblinds_alle_morgens_hoch
- service: cover.set_cover_position
data:
position: "{{ hoch | int }}"
target:
entity_id: "{{ rollo }}"
mode: single