rule "ug_windfang_rule"
when
Item Motion_UG1_OutValue received update
then
Motion_UG1_Out.postUpdate(if(Motion_UG1_OutValue.state == "on") ON else OFF)
end
is it possible to deactive the left shown icon (green / red on off icon).
or any better ideas ?
Just use a Text element instead of a Switch to put it on your sitemap. That will git rid of the toggle icon which you don’t want because you don’t want users turning the Switch OFF manually.
I beg to differ. I am actually using icon=“none” in some of my sitemaps, and this makes the icon disappear.
I am not sure where I got this idea from… It may be something I invented, or it could be I saw it in some post.
Doing a couple of tests, using various random icon names (that I know are not available to openHAB) gives the same result, i.e. the icon on the web page disappears. Base on these tests, I am pretty confident that icon=“none” carries no special meaning, and that I have simply stumbled upon a (fortunate?) side effect of referencing an icon name that does not exist,