Clicking the lock will make it fade away for five seconds, and then the toggle can activated with a second click - just like how the custom-ui lock used to work.
As a bonus, you can select which users can remove the lock.
I love this custom element, I use it to prevent my main pc to be shut down by accident, it works flawlessly on Chrome and on mobile, but on the new edge it doesn’t work I get custom element doesn’t exist.
I don’t know why
It is a great idea. I tryed with my garage covers, but it was converted to a button instead of the up and down arrows. Is it possible to keep the arrows? Garage is something very suitable for your solution.
Thanks.
One issue: I’ve noticed that both on desktop and on mobile (Android, Opera) it’s still possible to accidentally toggle a locked switch without unlocking it, by clicking or tapping on the very left or right edge of the switch. The switch toggles and the lock is never triggered or removed. Seems like the lock’s clickable area needs to be slightly wider in both directions.
Amazing, Thomas.
It is very useful and make HA much better to fit multiple situations.
It would be great if you could fix what Martso mentioned about the sides bypassing the lock.
Thank you!!!