Switch does not show correct state

I have a switch for my lock and Habpanel does not show correct state.

Switch Door_Lock			"Dörrlås [MAP(lock_se.map):%s]"			<lock>		(security)	{ exec=">[ON:/home/openhab/vsurelock.sh] >[OFF:/home/openhab/vsureunlock.sh]" }

This is the switch in Classic UI:

and at the same time in Habpanel:


It has to do with the MAP file. It is looking for either ON or OFF.

1 Like

That solved my problem.