Αssociate a binary sensor state with a switchbot for a cover template

I just added switchbot motion and contact sensor to my esp32 implementation

https://community.home-assistant.io/t/switchbot-bot-curtain-meter-contact-motion-mqtt-esp32-bridge-local-control

note: normally a contact sensor would be a binary open/closed, but switchbot returns “open”, "closed’, and “timeout”. so it is just a sensor with 3 possible values