How to return value using the switch in arduino iot dashboard

I started to get some idea now. I will try it out and update it here in the future. Thanks @guix :grin: :grin: