I wanted to create a virtual lock to remind myself to check the door is locked after it has been closed. Closure is detected by a sensor.
In the GUI the Template Lock has an option for state, and locking/unlocking actions. Great - I created a boolean and used that as my state and configured the locking and unlocking actions. However, the lock state does not persist.
The documentation says to add it to your YAML configuration instead. I have done this, and it works - but it has left me wondering if I did it right or whether I simply set up the GUI Template Lock helper wrong. Why is the GUI option available if it does not work? Or is it for some other purpose?
Both use the same boolean as a state. The helper Kitchen Door Test will turn the boolean On when I click Lock. But it does not maintain its state. If I set the Boolean to Off and click Lock on Kitchen Door Test, then Kitchen Door Lock switches to Locked (as expected), but Kitchen Door Test does not.
Iām not super concerned as the documentation does say it should be done by configuration yaml not in the GUI. It just seems odd and it would be nice if it worked (I prefer my helpers in the GUI).