aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.86k stars 354 forks source link

Aqara wireless wall switch not recognized #140

Open mkazlauskas opened 6 years ago

mkazlauskas commented 6 years ago

The device has model of "lumi.sensor_86sw1.v1" and miio initializes model as "lumi.generic.14".

thunderace commented 6 years ago

Same with the Aquara wireless wall double switch : miio initializes model with "lumi.generic.12".

Fix : Add 12 : require('./86sw2'), 14 : require('./86sw1'), to lib/devices/gateway/subdevices.js after line 22

ssserebrov commented 6 years ago

thunderace, I guess you mean lib\devices\gateway\subdevices.js

thunderace commented 6 years ago

@ssserebrov : You're right, thank you (edited).