jeatheak / Mitsubishi-WF-RAC-Integration

WF-RAC homeassistant integration
MIT License
137 stars 26 forks source link

Help using API in other projects #124

Open matt1309 opened 2 days ago

matt1309 commented 2 days ago

HI,

I'm looking to integrate this code in other projects ie outside of home assistant. However I'm having some difficulty getting responses from aircon unit on the port 51433. Do I need to enable anything in particular on the unit. The M-smart air app works fine but was setup in home only mode.

I've been trying this with no luck as a test:

curl -X POST "http://192.168.0.XX:51433/beaver/command" \ -H "Content-Type: application/json" \ -d '{"apiVer": "1.0", "command": "register", "deviceId": "", "operatorId": ""}'

jeatheak commented 2 days ago

You don't need to enable something on the Airco as long as it is connected to your wifi. The home only mode does not matter.

To register a device your id's are missing (these cannot be empty). You can get that information via discovery.

I will need to look it up again in the code. Will try to do it when I'm home.