I am using Yolink sensors on door throughout my home and have integrated the status of these doors through alexa by creating a virtual switch within hubitat, reading it from alexa, and using a routine within alexa to turn the virtual switch on when the door is opened and turn it off when the door is closed. It works great through the dashboard but this is a read only switch through the dashboard. If i click on the switch on the dashboard, it will change the state of the display and it wont change back until the routine in alexa is triggered again when the door opens or closes.
How do I not allow the dashboard switch to be changed and only read the status?