In short words, I want to know if the door is opened or closed from the API.
If open then the only option available is to close it, not possible to open it again, as it is already, and vice-versa.
Today, the API just turns on or off the relay, simulation a button press. But when I'm outside home I don't know if I'm closing or opening the door, I'm blind. To solve this issue I put a reed switch (that works perfectly), but I don't have this status information through the API response.