Add additional 86sw model identifier of the LAN protocol V2 (#14799)
This commit is contained in:
parent
aec425d1f6
commit
39843a73de
3 changed files with 4 additions and 4 deletions
|
@ -43,10 +43,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
data_key = 'channel_0'
|
data_key = 'channel_0'
|
||||||
devices.append(XiaomiButton(device, 'Switch', data_key,
|
devices.append(XiaomiButton(device, 'Switch', data_key,
|
||||||
hass, gateway))
|
hass, gateway))
|
||||||
elif model in ['86sw1', 'sensor_86sw1.aq1']:
|
elif model in ['86sw1', 'sensor_86sw1', 'sensor_86sw1.aq1']:
|
||||||
devices.append(XiaomiButton(device, 'Wall Switch', 'channel_0',
|
devices.append(XiaomiButton(device, 'Wall Switch', 'channel_0',
|
||||||
hass, gateway))
|
hass, gateway))
|
||||||
elif model in ['86sw2', 'sensor_86sw2.aq1']:
|
elif model in ['86sw2', 'sensor_86sw2', 'sensor_86sw2.aq1']:
|
||||||
devices.append(XiaomiButton(device, 'Wall Switch (Left)',
|
devices.append(XiaomiButton(device, 'Wall Switch (Left)',
|
||||||
'channel_0', hass, gateway))
|
'channel_0', hass, gateway))
|
||||||
devices.append(XiaomiButton(device, 'Wall Switch (Right)',
|
devices.append(XiaomiButton(device, 'Wall Switch (Right)',
|
||||||
|
|
|
@ -23,7 +23,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
from homeassistant.util import slugify
|
from homeassistant.util import slugify
|
||||||
|
|
||||||
REQUIREMENTS = ['PyXiaomiGateway==0.9.4']
|
REQUIREMENTS = ['PyXiaomiGateway==0.9.5']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ PyMVGLive==1.1.4
|
||||||
PyMata==2.14
|
PyMata==2.14
|
||||||
|
|
||||||
# homeassistant.components.xiaomi_aqara
|
# homeassistant.components.xiaomi_aqara
|
||||||
PyXiaomiGateway==0.9.4
|
PyXiaomiGateway==0.9.5
|
||||||
|
|
||||||
# homeassistant.components.rpi_gpio
|
# homeassistant.components.rpi_gpio
|
||||||
# RPi.GPIO==0.6.1
|
# RPi.GPIO==0.6.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue