Next generation of Xiaomi Aqara devices added (#12659)

* Next generation of Xiaomi Aqara devices added: ctrl_neutral1.aq1, ctrl_neutral2.aq1, ctrl_ln1.aq1, ctrl_ln2.aq1, ctrl_86plug.aq1

* The Aqara wireless button (3rd gen, sensor_switch.aq3) supports a click_type called "shake".

* Warning added to spot new features.
This commit is contained in:
Sebastian Muszynski authored and Daniel Høyer Iversen committed 2018-02-26 21:54:06 +01:00
1 parent f8a0a0ba59
commit 2c1083bda1
4 files changed
+10 -7

No files matched your search

@@ -319,7 +319,10 @@ class XiaomiButton(XiaomiBinarySensor):
click_type = 'double'
elif value == 'both_click':
click_type = 'both'
elif value == 'shake':
click_type = 'shake'
else:
_LOGGER.warning("Unsupported click_type detected: %s", value)
return False
self._hass.bus.fire('click', {