Hi Marius
Thank you so much for trying to help out a HA dumb ass. To prove the description of myself is accurate, I am afraid I still need some help.
My automation is now:
- id: 'XXXXXXXXXXXXX'
alias: Abc Comes Home
description: ''
trigger:
- entity_id: device_tracker.abc
platform: state
to: home
condition:
- condition: template
value_template: >
{{trigger.to_state is not none and
trigger.from_state is not none and
trigger.to_state.state != trigger.from_state.state}}
- condition: template
value_template: >
{{(now() - trigger.from_state.last_changed).total_seconds() >
states('input_number.presence_timer')|int}}
- condition: template
- condition: template
value_template: >
{{trigger.to_state.state == 'home'}}
action:
- data:
message: Arrived Home
title: Abc
service: persistent_notification.create
In configuration.yaml I added:
input_number:
presence_timer:
name: Family Coming Home Presence Timer
initial: 300
min: 300
max: 3600
step: 120
I then get a config error:
Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 13). Invalid config for [input_number]: invalid slug input_number.presence_timer (try input_number_presence_timer) for dictionary value @ data['input_number']. Got OrderedDict([('input_number.presence_timer', OrderedDict([('name', 'Slider'), ('initial', 300), ('min', 300), ('max', 3600), ('step', 120)]))]). (See /config/configuration.yaml, line 42).
Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 13).
Component error: input_number.presence_timer - Integration 'input_number.presence_timer' not found. Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 13).
Component error: input_number_presence_timer - Integration 'input_number_presence_timer' not found. Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 13).
Quite honestly the error message has no meaning for me, although the new config part does start at line 42. The configuration.yaml file at line 13 does not seem to be anything to do with this - it is simply:
group: !include groups.yaml
Can you please help a little more with the (presumably) multiple mistakes.
And by the way, I fully intend to try to track my 17 year old daughter against her wishes - at least until she has reached her mid 40s.
Thank you
Mike