Skip to content

Add support for DoorSensor #8

@stefanreimers

Description

@stefanreimers

I use multiple ZHAOpenClose sensors. They cannot be added to my Mozilla IoT UI, the log shows the following messages:

2019-04-04 18:03:31.458 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 ep 1
2019-04-04 18:03:31.460 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 etag d172b41e1be64b6c572aed017727cb9f
2019-04-04 18:03:31.468 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 manufacturername ADUROLIGHT
2019-04-04 18:03:31.470 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 uniqueid 00:15:8d:00:01:cd:17:fb-01-0500
2019-04-04 18:03:31.472 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 type ZHAOpenClose
2019-04-04 18:03:31.474 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 name Fenster- / Türkontaksensor (2)
2019-04-04 18:03:31.475 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 modelid CSW_ADUROLIGHT
2019-04-04 18:03:31.477 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 swversion v0.1.4
2019-04-04 18:03:31.479 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 config {'on': True, 'battery': 100, 'reachable': True}
2019-04-04 18:03:31.480 INFO   : zigbee-conbee: conbee_adapter.py:57 INFO Sensors: 4 state {'tampered': False, 'lowbattery': False, 'open': False, 'lastupdated': '2019-03-31T11:30:40'}
2019-04-04 18:03:31.482 INFO : zigbee-conbee: conbee_adapter.py:64 INFO Unknow sensor. Not added

To my understanding, https://iot.mozilla.org/schemas/ refers to that as DoorSensor with OpenProperty. Please add support to conbee_adapter.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions