Will try that in a moment. However I need some checks both in trigger and condition because there are many factors to be checked. This automation turns on vent when: door are closed, window is open, outside temp is lower then inside temp, room temp is above desired temp (set by helper). Each of this condition have to be met and also each of those action has to trigger automation
The point is, if you make one big trigger template, it only fires if the template is true. So it is both the trigger and the conditions in one. It will make one huge trigger template, but no duplication required. HA checks which entities affect the template trigger.
Have you checked the template in developer? I couldnāt myself as I do not have your sensors. Also check the indenting. Is this indeed condition nr 4? And is there something around it that could be wrong?
OK - now it became real wierd. Template in developer says itās OK! Even shown TRUE or FALSE depending if condition is met. However when putted into automation it says:
I know you missed it. I fixed it. Anyway donāt be confused by tasmota_office_stereo. Itās actually a vent just this switch was used for something else before.
I simply forgot to change entities names and now Iām too lazy to do it
Mayby try to copy the entire script in another editor, abort the editor, open it again and paste the code again. Iāve seen instances that the editor got,stuck in a broken editing session. or arentāt you editing in the GUI?
I still got these error after pasting whole script into new automation. Strange thing is however that it ALLOWS me to save this automation without any error. It throwns error only when I click test here: