diff --git a/devices_schedules_controller_full_llm.yaml b/devices_schedules_controller_full_llm.yaml index 1ff2941..d94edfb 100644 --- a/devices_schedules_controller_full_llm.yaml +++ b/devices_schedules_controller_full_llm.yaml @@ -372,9 +372,11 @@ sequence: {{ ns.items }} _resolved_entities: >- {% set ns = namespace(items=[]) %} + {% set ignored_domains = ['binary_sensor', 'calendar', 'device_tracker', 'person', 'sensor', 'sun', 'todo', 'weather', 'zone'] %} {% for item in _resolved_details %} {% set eid = item.entity_id | default('', true) | string %} - {% if eid | length > 0 and eid not in ns.items %} + {% set domain = eid.split('.')[0] if '.' in eid else '' %} + {% if eid | length > 0 and eid not in ns.items and domain not in ignored_domains %} {% set ns.items = ns.items + [eid] %} {% endif %} {% endfor %}