getting a new startup error
Error initializing 'Marte bijna thuis' trigger: In 'numeric_state' condition: entity proximity.marte_home state 'not set' cannot be processed as a number
on this automation:
- alias: Marte bijna thuis
id: Marte bijna thuis
trigger:
platform: numeric_state
entity_id: proximity.marte_home
below: 1000
condition:
- >
{{trigger.to_state is not none and
trigger.from_state is not none and
trigger.to_state.state != trigger.from_state.state}}
- >
{{states('proximity.marte_home') != 'not set'}}
- >
{{state_attr('proximity.marte_home','dir_of_travel') == 'towards' and
states('device_tracker.life360_marte') != 'home'}}
- condition: state
entity_id: input_boolean.notify_presence
state: 'on'
action:
service: notify.w_m
data:
message: >-
Marte is op {{states('proximity.marte_home')}} meter van huis,
en is over {{states('sensor.waze_marte_home')}} minuten thuis!
Maybe this is a new error, I havent touched these automations since forever… maybe an issue with Proximity? or with the treatment of numeric state?
maybe simply add:
condition:
- >
{{is_number(trigger.to_state.state)}}
?
Please have a look if you can help me out here?
thanks!