Manual overide of state

i have a binary sensor for a lock. currently the dead bolt is locked. the door cannot be opened but this is what i see
image

and in Dev tab, i see “on”

how can i manually overide the value of “on” to “off” so that i can see the status is locked, instead of unlocked?

Are you sure those are the same entities? The bottom screenshot looks like it’s for a Zooz ZSE43 tilt sensor, not a lock.

Lock state is communicated via lock entities, not binary sensors.

yes. they are same the entity. by default, it was open or closed. in Dev tab, it was on or off.
i changed it to a Lock and now i see it as unlocked or locked. but in Dev tab, it is still on or off

I don’t think the dev tools reflects the customization of the binary sensor. The underlying sensor reports on or off.