I am attempting to create an automation using a dictionary of entities but it keeps failing with error "Template returned invalid entity id"
alias: Blinds
description: Set Blind Position
triggers:
- trigger: conversation
command:
- (set|adjust) [the] blind [in the] {blind} [to] {percentage} percent
id: setblinds
conditions: []
actions:
- variables:
blinds_map:
livingroom: cover.living_room_blinds
masterbedroom: cover.master_bedroom_blinds
guest1: cover.guest_bedroom_1_blinds
guest2: cover.guest_bedroom_2_blinds
office: cover.office_blind
- variables:
blind_norm: "{{ trigger.slots.blind | lower | replace(' ', '') }}"
- action: cover.set_cover_tilt_position
data:
tilt_position: "{{ trigger.slots.percentage }}"
target:
entity_id: "{{ blinds_map[blind] }}"
mode: single ```
Is this supported??