veeceeoh / xiaomi-hubitat

veeceeoh's Xiaomi device drivers for the Hubitat Elevation Hub
Apache License 2.0
74 stars 47 forks source link

Update to all DDs to match new Aqara Button DD #10

Closed veeceeoh closed 6 years ago

veeceeoh commented 6 years ago

Changes • (dual button Aqara Smart Switch only) refactored code that parses type of button press • (Aqara Leak Sensor only) added lastDry event for webCoRE use • (both Motion Sensors only) added lastInactive event for webCoRE use • (both Motion Sensors only) changed default of motionreset to 61 seconds (1 second longer than normal hardware reset of 60 seconds) • (both Motion Sensors only) changed motionreset preference setting description text • (Temp/Humidity Sensors only) added attribute "pressure", "Decimal" to be used for custom pressure value events • added (informational) info log message toggle preference setting, for displaying helpful "plain English" / non-debug log messages • changed Battery Replaced Date to use system-formatted new Date() date/time stamp • removed Date Format and 24 hour clock preference settings because they are no longer used • removed formatDate() function because it is no longer used • removed lastPressedDate because it doesn't serve any real purpose on Hubitat • changed lastPressed to buttonPressed event, for webCoRE use