I am using the following custom HACS component: https://github.com/glance-/dhl. This adds 2 services you can call: dhl.register
and dhl.unregister
.
I have made the following card on my dashboard where I can copy the tracking code into the input text after which it will call the service dhl.register
and appear in the list using auto-entities:
type: custom:stack-in-card
cards:
- type: picture-entity
entity: weather.home
image: /local/headers/HeaderDHL.png
show_state: false
show_name: false
tap_action:
action: none
hold_action:
action: none
- type: entities
entities:
- entity: input_text.input_dhl_tracking
type: custom:text-input-row
- type: custom:auto-entities
card:
type: entities
filter:
include:
- domain: dhl
options:
type: custom:multiple-entity-row
primary:
attribute: status
name: Status
Now I’d like to create an automation that checks all entities with the dhl
domain and if the status of an entity is set to delivered
for 7 days, then call the service dhl.unregister
with the tracking code of that entity.
I cannot create a group or create a group dynamically (as far as I know) and I’ve not seen a way to check entities on a domain level either. Is there any way to accomplish what I want here? Thanks!