ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
66 stars 27 forks source link

How to pass two arguments? #39

Closed oxystin closed 7 years ago

oxystin commented 7 years ago

Hi, ilcato! I use fibaro-homebridge plugin. He is amazing. I'm trying to edit their own code to support my thermostat (remotec zxt-120). But faced with difficulties. I need to send to fibaro command that includes two arguments (setThermostatMode "TargetTemp", "Mode"). You have only one argument passed to the code.

this.command("setThermostatMode", arg1 [+ arg2 ???] , service, IDs);

Is it possible to pass two arguments?

ilcato commented 7 years ago

You can modify it maintaining the retro compatibility. Please propose a pull request.