hello, I have the problem with the device tracker in a snapshot automation with regard to a camera that it does not accept the status “not_home” as OK status. if I test the automation with the status “home” the condition runs on green, with “not_home” this is red.
my .yaml :
‘’’
alias: Snapshot
description: ‘’
trigger:
- platform: state
entity_id:- binary_sensor.hauseingang_person_detected
- binary_sensor.hauseingang_motion
to: ‘on’
condition:
- condition: state
entity_id: group.all_person
state: home
action: - service: camera.snapshot
data:
filename: /config/www/cameraHof.jpg
target:
entity_id: camera.hauseingang
‘’’
the test of the condition is performed under settings → automations → and then in the automation under “Test” to the right of the condition. Here a red X appears with “not_home” and not a green hook. does anyone have an idea where the error can lie? “home” and “not_home” is not so difficult to make a mistake there.