Add missing sensor types

- weather.v1
- sensor_magnet.aq2
- sensor_motion.aq2
- sensor_switch.aq2
This commit is contained in:
G. Roggemans
2018-03-05 18:38:45 +01:00
parent 74b7cee069
commit 88396d14dc
+4 -2
View File
@@ -85,8 +85,10 @@ class XiaomiHub:
_LOGGER.info('Found {0} devices'.format(len(sids))) _LOGGER.info('Found {0} devices'.format(len(sids)))
sensors = ['sensor_ht', 'sensor_wleak.aq1'] sensors = ['sensor_ht', 'weather.v1', 'sensor_wleak.aq1']
binary_sensors = ['magnet', 'motion', 'switch', '86sw1', '86sw2', 'cube'] binary_sensors = ['magnet', 'sensor_magnet.aq2', 'motion',
'sensor_motion.aq2', 'switch', 'sensor_switch.aq2',
'86sw1', '86sw2', 'cube']
switches = ['plug', 'ctrl_neutral1', 'ctrl_neutral2'] switches = ['plug', 'ctrl_neutral1', 'ctrl_neutral2']
for sid in sids: for sid in sids: