Add support for switchbot motion sensors (#76059)

This commit is contained in:
J. Nick Koston 2022-08-02 00:38:31 -10:00 committed by GitHub
parent 786780bc8c
commit fe6d6b81e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -8,13 +8,16 @@ ATTR_CURTAIN = "curtain"
ATTR_HYGROMETER = "hygrometer"
ATTR_CONTACT = "contact"
ATTR_PLUG = "plug"
ATTR_MOTION = "motion"
DEFAULT_NAME = "Switchbot"
SUPPORTED_MODEL_TYPES = {
"WoHand": ATTR_BOT,
"WoCurtain": ATTR_CURTAIN,
"WoSensorTH": ATTR_HYGROMETER,
"WoContact": ATTR_CONTACT,
"WoPlug": ATTR_PLUG,
"WoPresence": ATTR_MOTION,
}
# Config Defaults