hillaliy / homebridge-midea-air

Homebridge plugin for Midea units
MIT License
71 stars 22 forks source link

Multiple devices #101

Closed Draexl closed 1 year ago

Draexl commented 1 year ago

Hi, What should the code look like if I have multiple devices?

{
  "registeredApp": "NetHomePlus",
  "user": "username",
  "password": "password",
  "interval": 5,
  "devices": [
    {
            "deviceId": "firstDeviceID",
            "supportedSwingMode": "Both",
            "temperatureSteps": 1,
            "minTemp": 17,
            "maxTemp": 30,
            "fanOnlyMode": false,
            "OutdoorTemperature": false,
            "useFahrenheit": false,
            "audibleFeedback": false
    }
    {
            "deviceId": "secondDeviceID",
            "supportedSwingMode": "Both",
            "temperatureSteps": 1,
            "minTemp": 17,
            "maxTemp": 30,
            "fanOnlyMode": false,
            "OutdoorTemperature": false,
            "useFahrenheit": false,
            "audibleFeedback": false
    }
  ],
  "platform": "midea-air"
},

Is that correct?

hillaliy commented 1 year ago

Yes, but don't use the interval so low. I recommended to change it to 30