Clearly they’re identical, so it’s gotta be some formatting I’m doing wrong. I only did the {{connect}} and {{car}} lines to show you they’re returning the exact same thing.
Please tell me I’m an idiot and this is simple lol
I’ve got a car driving binary sensor helper. The template code is :
{{(state_attr('sensor.sm_s911b_bluetooth_connection','connected_not_paired_devices')!=None) and ('1C:50:1E:50:AA:29 (DMX5020DABS)' in state_attr('sensor.sm_s911b_bluetooth_connection','connected_paired_devices'))}}
If I see it correctly both values are not a string, but an array containing an identical string. I think it is concluding the array is a different array, even though the contents are the same. Try to compare car[0] and connect[0].
This is probably it. I’m not going to mark a solution because I did a temporary workaround including double sensors (I think now they’re returning both as strings, and not arrays, so it’s showing as True), but I’m guessing this is the answer. Thanks! Once I get back to working on it this weekend, I’ll try this and mark as solution if it worked!