How would I perform an if on an entities attribute? I have an automation to turn off my thermostat triggered on doors/windows being open for more than 30s. I want to ignore the automation if the thermostat is in “eco” mode under attribute preset_mode.
I found a few leads in other posts but cannot seem to get this working. Where am I going wrong?
Thank you