Shelly 1 + contact sensor reports wrong value

  • Hi,

    I'm building a garage door opener witth a Shelly 1. I connected a contact sensor to the device? From the shelly app, I can open/close the door, but I can't see the sensor status.

    I have integrated the shelly in homeassistant using the Shelly integration, and there, when the door is closed, the status reported for the 'input' is Open, while when I open the door, the status is Closed.

    Thus two questions:

    1. how can I see the sensor status in the Shelly app?
    2. how can I get the sensor reading correct in HA (Closed when door closed, Opened when door opened)?

    Thanks for your help

    Jean-Noël