#Lock states

1 messages · Page 1 of 1 (latest)

half gull
#

Ooh

#

I think enum sensor? And I guess map that semi locked state to what it is at the moment in real life

willow field
#

Problem is I don’t know what it is

half gull
#

Tedee?

willow field
#

Could be you turned a bit from unlocked and it’s still unlocked or a bit from locked and it’s still locked, or a bit more from unlocked and it’s physically locked but not quite far enough

willow field
half gull
#

Like this sounds you dont know either

#

But what states are there then?

willow field
#

class TedeeLockState(IntEnum):
    """Tedee Lock State."""

    UNCALIBRATED = 0
    CALIBRATING = 1
    UNLOCKED = 2
    HALF_OPEN = 3
    UNLOCKING = 4
    LOCKING = 5
    LOCKED = 6
    PULLED = 7
    PULLING = 8
    UNKNOWN = 9
    UPDATING = 18
    UNPULLING = 255
half gull
#

Is it half open?

willow field
#

Yes

half gull
#

I dont know how to model that nicely either

#

Like I think the lock is correct in being an unknown state because we dont know if its locked or not

#

But you likely want to defferentiate between unknown and half open

willow field
#

Exactly

half gull
#

I'm not sure if you can describe it in a binary sensor or so

willow field