Hide switch "widget" in sitemap

  • Platform information:
    • Hardware: _allwinner h5 1Gb ram
    • OS: armbian
    • Java Runtime Environment: 11 or 16
    • openHAB version: 3.4 or 4.0

Is possible in sitemap hide the switch icon (the one in the attached picture that is in the right)
I added a very nice icon for push button the one on the left, that has 2 images one for the off and one for the on. Will be nice to have only this one withou the “widget” on the right.

my sitemap entry:

Switch item=SpostaPoveriFind

and here my item

Switch					SpostaPoveriFind		"Aggiorna"		<dn_button>			{channel="exec:command:CarFind:run", autoupdate="true"}

Yes, use a Text element instead.

A Text element won’t send ON/OFF when pressed though. I don’t think it’s possible to both hide the switch and make the widget behave like a toggle.

1 Like

True.

For my garage door opener I used a mapping to get a button instead of the toggle since it’s a momentary button, not a toggle in practice. That might split the difference.

1 Like

Nice suggestion!
For example in my case the switch label was “Update”
with a sitemap like:

Switch item=SpostaPoveriFind	label="" mappings=[ON="Update"]

Looks very similar to that i want!
Thanks!