Open close sensor in a Safe change the state manually

Sorry, couldn’t find it for ages and made this post, but happened to stumble on it.

the fix is here - How to manually set state/value of sensor? - #3 by rodpayne