twocolors / node-red-contrib-midea-hvac

Nodes for controlling Midea HVAC in Node-RED
MIT License
5 stars 2 forks source link

Not able to set any value or send any command #4

Closed gtorino closed 3 years ago

gtorino commented 3 years ago

Hello, i'm able to get all device values when I inject a timestamp. But if I inject a json payload, like this: { "powerState": true, "targetTemperature": 25, "operationalMode": 4, "fanSpeed": 80, "swingMode": 0, "ecoMode": false, "turboMode": false } I always got the error: "Midea: 3176:The asyn reply does not exist " What am I doing wrong? On picture, "Accendi" stands for turn on, "Spegni" stands for turn off. Many thanks in advance. Giuseppe image

twocolors commented 3 years ago

oh, can try send one diff elm in payload?

gtorino commented 3 years ago

Thanks, I tried several combinations, even just powerState and targetTemperature only, with no success. I initially get the error "wrong command or device unreachable" and after a few tries, the 3176 error. Note that, to me, the swingMode field isn't a boolean but a number (0,1, etc). I tried both. When I send a empty payload I get: {loginId: "xxxxxxxxxxxxxxxxxxxxxx" sessionId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" accessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" userId: "xxxxxxxxxx" dataKey: "xxxxxxxxxxxxxxxxxxx" powerState: false imodeResume: false timerMode: false applianceError: false targetTemperature: 22 operationalMode: 4 fanSpeed: 102 onTimer: object offTimer: object swingMode: 0 cozySleep: 0 save: false lowFrequencyFan: false superFan: false feelOwn: false childSleepMode: false exchangeAir: false dryClean: false auxHeat: false ecoMode: false cleanUp: false tempUnit: false sleepFunction: false turboMode: false catchCold: false nightLight: false peakElec: false naturalFan: false indoorTemperature: 22.5 outdoorTemperature: 14.5 humidity: 10 }

twocolors commented 3 years ago

can you try the new version?

gtorino commented 3 years ago

🥇 Wow, I'm very glad to tell you that now it is working! Thanks a lot! If you like to be perfect, I would let you note that the international temperature scale is named "Celsius" and not "Celcius". Thanks again!