How to return value using the switch in arduino iot dashboard

@guix Something like this.