Reasonably new to this so sorry for the simple question. So far I have mainly used the UI to create my automations.
I’m trying to setup a trigger for when my phones Bluetooth connects to the car.
This was simple for setting up if my phone connects to one device but I have a smart watch so I’m always often connected to that too. Outside of setting up multiple triggers for the every possible group of connections. How do I set up a trigger to fire if it contains a value not the default which seems to be equals a value?
Current setup that only triggers when the attribute “connected paired devices” equals the value.
Ideally I’d like to only use the normal editor, no node red or extra stuff. It’s too much for me to grasp right now.
this is almost the solution to my problem. Unfortunately my headset regularly changes MAC address and I can’t disable this. The “in” filter seems to be looking for an exact match. In your example i would also want to receive a true template when searching for “(SoundCore mini2)”.
Edit: I found a solution: {{ state_attr('sensor.sensor_name', 'connected_paired_devices') | regex_findall(find='whatever', ignorecase=False) | count > 0 }}