From 88396d14dc80dde38fe6ca8204f9e387ac23c33d Mon Sep 17 00:00:00 2001 From: "G. Roggemans" Date: Mon, 5 Mar 2018 18:38:45 +0100 Subject: [PATCH] Add missing sensor types - weather.v1 - sensor_magnet.aq2 - sensor_motion.aq2 - sensor_switch.aq2 --- src/xiaomihub.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xiaomihub.py b/src/xiaomihub.py index deb5661..69ef87c 100644 --- a/src/xiaomihub.py +++ b/src/xiaomihub.py @@ -85,8 +85,10 @@ class XiaomiHub: _LOGGER.info('Found {0} devices'.format(len(sids))) - sensors = ['sensor_ht', 'sensor_wleak.aq1'] - binary_sensors = ['magnet', 'motion', 'switch', '86sw1', '86sw2', 'cube'] + sensors = ['sensor_ht', 'weather.v1', 'sensor_wleak.aq1'] + binary_sensors = ['magnet', 'sensor_magnet.aq2', 'motion', + 'sensor_motion.aq2', 'switch', 'sensor_switch.aq2', + '86sw1', '86sw2', 'cube'] switches = ['plug', 'ctrl_neutral1', 'ctrl_neutral2'] for sid in sids: