It is working now! Thanks.
I was not aware that with declaring 1 item you can link a switch and a slider to that.
The reason that I am using a slider and a switch is because I am making 2 separate frames for that. Thanks for pointing out.
Now working on extending the sitemap with window and doors status.
Also actual temps and set temp will be made visible.