There is a cheat way with sitemaps, it might provide inspiration for a habpanel method.
Create a dummy String type Item.
Be sure to set autoupdate=“false” to separate command from state.
postUpdate your sensor reading to that - as a string, though.
Put it in your sitemap with mappings
which will produce on/off buttons.
What they won’t do is light up to show the switch state.
When you poke a button, a string “ON”/“OFF” is sent that you listen for with a rule and sendCommand real ON/OFF to your real switch.