I have two automations that should fire when a door locks:
- id: front_door_unlocked
alias: Front Door Unlocked
trigger:
entity_id: lock.schlage_be469_touchscreen_deadbolt_locked_2
platform: state
to: unlocked
action:- service: automation.trigger
entity_id: automation.sync_foo - service: automation.trigger
entity_id: automation.front_door_custom_timer
- service: automation.trigger
The second automation is indeed working, as I can see my timer start. However, sync_foo doesn’t appear to fire. When I go to the developer services and select automation.trigger I see the following entity: automation.sync_front_door_input_boolean_to_foo which is an old ID that is no longer used in any of my scripts. When I fire that in devleoper services, it appears to work.
- id: sync_foo
alias: Sync front door input boolean to foo
trigger:
action:
service_template: >
{%- if is_state(‘lock.schlage_be469_touchscreen_deadbolt_locked_2’, ‘locked’) -%}
input_boolean.turn_on
{%- else -%}
input_boolean.turn_off
{%- endif -%}
entity_id: input_boolean.frontdoor
It seems sync_foo isn’t firing from my script, probably for the same reason I’m seeing the incorrect ID in developer services. What’s going on?