i have an automation, named “ALPR Detection”, that has a automation_triggered trigger for another automation named test1. if i cause test1 to run the “ALPR Detection” automation does not run. the yaml for both are below. i’ve read the docs, etc. and this seems like it should work, but it doesn’t. any ideas what i’m doing wrong?
id: ‘1679161973275’
alias: test1
description: ‘’
trigger:
- platform: mqtt
topic: test/events
payload: front_gate
value_template: ‘{{ value_json[“after”][“camera”] }}’
condition: - condition: and
conditions:- condition: template
value_template: ‘{{trigger.payload_json[’‘after’’][’‘label’’] == ‘‘car’’ }}’ - condition: template
value_template: ‘{{’‘gate_road’’ in trigger.payload_json[’‘before’’][’‘entered_zones’’]}}’ - condition: template
value_template: >-
{{not ‘gate_house’ in
trigger.payload_json[‘before’][‘entered_zones’]}} - condition: template
value_template: ‘{{’‘gate_house’’ in trigger.payload_json[’‘after’’][’‘entered_zones’’]}}’
action: []
mode: single
- condition: template
alias: ALPR Detection
description: “”
trigger:
- platform: event
event_type: automation_triggered
event_data:
name: car_arrived
entity_id: automation.test1
condition: []
action: - service: image_processing.scan
data: {}
target:
entity_id: image_processing.platerecognizer_front_gate
mode: single