Several minor updates to the existing blueprints
This commit is contained in:
@@ -275,9 +275,14 @@ variables:
|
||||
# CONDITIONS
|
||||
# =============================================================================
|
||||
condition:
|
||||
# Only process events from the configured vacuum entity
|
||||
# Only process events from the configured vacuum entity.
|
||||
# The Dreame Vacuum integration uses generate_entity_id() for the entity_id
|
||||
# in event data, which may append a numeric suffix (e.g., _2) since the
|
||||
# actual vacuum entity already occupies the base entity_id.
|
||||
- condition: template
|
||||
value_template: "{{ event_entity_id == vacuum_entity }}"
|
||||
value_template: >
|
||||
{{ event_entity_id == vacuum_entity
|
||||
or event_entity_id.startswith(vacuum_entity ~ '_') }}
|
||||
|
||||
# =============================================================================
|
||||
# ACTIONS
|
||||
|
||||
Reference in New Issue
Block a user