mangoose002 / Meross2Domoticz

NodeJS bridge between Meross IOT and Domoticz
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Can You Add MSS420F to suppoorted list #4

Closed big-ted closed 5 years ago

big-ted commented 5 years ago

It acts the same as a MSS425

I can add it as a recognised device

if(device.dev.deviceType == "mss310" || device.dev.deviceType == "mss210" || device.dev.deviceType == "mss420f" || device.dev.deviceType.indexOf("mss425") != -1){

but I am unable to to add it to the section that creates the devices

if(device.dev.deviceType.indexOf("mss425") != -1){

mangoose002 commented 5 years ago

Hi,

Did you try to replace mss425 by just mss42 in both lines, it shoud work for any deviceType from mss420 to mss429.

It this works for you, I will change the code to handle MSS420 as well.

Regards.

big-ted commented 5 years ago

Just tested it with MSS42 and both the MSS420 and MS425 are picked up and work.

Didn't think it would be that simple

mangoose002 commented 5 years ago

OK, I will change the code to implement this. That is a great news.

Regards

mangoose002 commented 5 years ago

The code change has been implemented. I close the issue.