Is there a way to use a button as a boolean for a device?
What I want to do is have a button for door locks that will show the status of the lock and if unlocked, pressing the button will lock it. If locked, presing the same button will unlock it.
What I want to do is have a button for door locks that will show the status of the lock and if unlocked, pressing the button will lock it. If locked, presing the same button will unlock it.
Comment