because currently there’s an issue with the integration creating the trigger sensors used in the automation I see these:
WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Marijn bijna thuis' trigger: In 'numeric_state' condition: unknown entity sensor.here_marijn_naar_huis
on this automation, for which the conditions on the trigger entity not to be None apparently dont suffice:
- alias: Marijn bijna thuis
id: marijn_bijna_thuis
trigger:
platform: numeric_state
entity_id: sensor.here_marijn_naar_huis
below: 15
above: 5
condition:
- >
{{is_number(trigger.to_state.state)}}
- >
{{trigger.to_state is not none and
trigger.from_state is not none and
trigger.to_state.state != trigger.from_state.state}}
- >
{{states('proximity.marijn_home') != 'not set'}}
- >
{{state_attr('proximity.marijn_home','dir_of_travel') == 'towards' and
states('person.marijn') != 'home'}}
- condition: state
entity_id: input_boolean.notify_presence
state: 'on'
action:
service: notify.m
data:
message: >-
Marijn is op {{states('proximity.marijn_home')}} km van huis,
en is over {{states('sensor.here_marijn_naar_huis')}} minuten thuis!
how can we prevent an error like this?