WebThingsIO / zwave-adapter

Z-Wave adapter add-on for WebThings Gateway
Mozilla Public License 2.0
15 stars 20 forks source link

Support alarm command-class door sensors #61

Closed cmatheson closed 5 years ago

cmatheson commented 5 years ago

Adds DoorSensor capability when the Alarm_Access_Control type is present on a node.

This works great in the UI, except I get this extraneous "On" proprerty from the BinarySensor generic type. Do the other device types have this issue or is there some other thing type I should be setting this as (Maybe DoorSensor or MultiSensor should be the root type?

cmatheson commented 5 years ago

I've been using this commit for about a week with an Ecolink (DWZWAVE2.5-ECO) door sensor, and today I got a couple Monoprice recessed door sensors. It's working well with both.

dhylands commented 5 years ago

I've added support for the ALARM class type devices in pr #62

I've tested with the Monoprice recessed door sensors and the Aeotec Water Leak sensor.

cmatheson commented 5 years ago

@dhylands I've tested pr #62 and it's working well for my devices. I'll go ahead and close this one.