I have created the following template sensor, which shows me the number of open windows/doors from the DeviceClass “door”.
The calculation also works so far. However, I have the problem that the template sensor is not updated immediately as soon as I open/close the window. Instead, it takes about 1 minute.
How and where can I influence or change this? It would be great to have a solution where I don’t have to record/declare each window/door individually, but that this is recognized based on the DeviceClass?
Sometimes it is the sensor that is slow to report.
Check the state of a single sensor in the developer tools.
If you have multiple types/brands of sensors then check each type/brand also.
I have also just noticed. When I open a second window, this is no longer displayed. Only when the event changes, e.g. window is closed, is something entered in the logbook.