Hi all,
„Services“ can not executive the following lines. „Syntax Error“ it sais….
service: scene.create
data:
scene_id: vorherige_werte
snapshot_entities: "{{ expand(states.light) |select("search", 'light.dg_dg_bad') |map(attribute='entity_id') |list }}"
The Template Editor showes the following as result:
service: scene.create
data:
scene_id: vorherige_werte
snapshot_entities: "['light.dg_dg_bad_wandlicht', 'light.dg_dg_bad', 'light.dg_dg_bad_wand2', 'light.dg_dg_bad_wand1']"
Other try:
service: scene.create
data:
scene_id: vorherige_werte
snapshot_entities: "{{ area_entities('dg_bad') }}"
has the same syntax(???) an works fine…
Template Editor result:
snapshot_entities: "['sensor.dg_dg_bad_turkontakt_id112_battery', 'binary_sensor.dg_dg_bad_turkontakt_id112_contact', 'sensor.dg_dg_bad_turkontakt_id112_device_temperature', 'sensor.dg_dg_bad_turkontakt_id112_power_outage_count', 'sensor.dg_dg_bad_taster_battery_level', 'event.dg_dg_bad_taster_button_1', 'event.dg_dg_bad_taster_button_2', 'event.dg_dg_bad_taster_button_3', 'event.dg_dg_bad_taster_button_4', 'light.dg_dg_bad_wand1', 'light.dg_dg_bad_wand2', 'light.dg_dg_bad']"