Mitsubishi Electic AirCo and HeapPump control using Mongoose OS MEL-AC library
- Set your wifi credentials, debug config (if required) and
mel_ac.uart_no
in filemos.yml
- Build with
mos build
- Flash with
mos flash
Reading is performed by Mongoose OS RPC mel_ac.rpc_enable
. Currently enabled HTTP,WS and MQTT, but any other RPC channel could be added
$ mos call --port ws://192.168.1.216/rpc MEL-AC.GetParams
{
"connected": true,
"power": 0,
"mode": 3,
"setpoint": 21.0,
"fan": 3,
"vane_vert": 0,
"vane_horiz": 3,
"isee": true,
"operating": false,
"room": 25.0
}
http://192.168.1.216/rpc/MEL-AC.GetParams
{"connected": true, "power": 0, "mode": 1, "setpoint": 20.0, "fan": 2, "vane_vert": 0, "vane_horiz": 3, "isee": true, "operating": false, "room": 22.0}
$ mos call --port ws://192.168.1.216/rpc MEL-AC.SetParams '{"mode":1,"fan":2,"setpoint":20}'
{
"success": true,
"power": 0,
"mode": 1,
"setpoint": 20.0,
"fan": 2,
"vane_vert": 0,
"vane_horiz": 3
}
$ curl -d '{"mode":1,"fan":2,"setpoint":20}' 192.168.1.216/rpc/MEL-AC.SetParams
{"success": true, "power": 0, "mode": 1, "setpoint": 20.0, "fan": 2, "vane_vert": 0, "vane_horiz": 3}