Hello,
I don’t understand the entity management in automations for my use case.
So, I have two bluetooth badges that are detected and I would like for them to activate/deactivate the alarm in case they are detected or not.
For the deactivation it was pretty straightforward as I just had to use the default or condition that is the default in automation state triggers, it gives something like that:
platform: state
entity_id:
- device_tracker.nutale_2
- device_tracker.nutale
from: bluetooth_le
to: home
Now I would like to have a new automation for when the two badges are in the “away” state only. So I tried to create an automation doing the same thing but I can’t change the trigger condition and end up with an or condition.
The final result is a strange loop of automation to activate/deactivate the security in case there is one badge away and one badge home.
I think I can maybe do something about that by adding a condition forcing the “and” that I can’t have in the triggers but is there a cleaner way to do that?