I’ve got this “putoifon” custom sensor that reads the room location of my iPhone. It’s state might be “espresense_1” (based on a ESPresense station) or “not_home”.
I’m trying to read the state inside the condition of an automation, but it doesn’t work and I don’t know where’s my fault. It doesn’t matter the state and the condition always reads as positive. Here’s my code:
In this specific case, the automation gets triggered 10 minutes after my home door’s closed and I want to use it to check that me and my wife are indeed out of home. But even it I write state: “whatever_123456789” in the condition it reads as positive anyway. What am I doing wrong?
Thanks a lot in advance.