#automation #melcloud #mitsubishi #heatpump

melcloud-api

Provides a rust interface to the undocumented melcloud API

2 releases

0.1.1 Oct 12, 2021
0.1.0 Oct 28, 2019

#169 in #automation

MIT license

70KB
1.5K SLoC

melcloud-api

A rust crate for communicating with the melcloud API (DO NOT USE YET - NOT WORKING)

This library aims to make communication with the melcloud system easy from a rust application.

Endpoints Discovered

https://app.melcloud.com/Mitsubishi.Wifi.Client/Device/SetPower

Example Payload

{"Power":false,"DeviceIds":[147672]}

Returns

true

https://app.melcloud.com/Mitsubishi.Wifi.Client/Device/SetAtw

https://app.melcloud.com/Mitsubishi.Wifi.Client/Device/Get?id=147672&buildingID=88314

Returns

Returns a single Device object

https://app.melcloud.com/Mitsubishi.Wifi.Client/Tile/Get2 Seems to get the data for the tiles in the UI - basic info only

https://app.melcloud.com/Mitsubishi.Wifi.Client/HolidayMode/Update

Example payload

https://app.melcloud.com/Mitsubishi.Wifi.Client/HolidayMode/Update

Response

{"Data":null,"GlobalErrors":null,"AttributeErrors":null,"Success":true}

Example Commands

Setting the flow temperature

POST https://app.melcloud.com/Mitsubishi.Wifi.Client/Device/SetAtw

The body should be the latest device data with the following changed

SetHeatFlowTemperatureZone1

Dependencies

~20–31MB
~539K SLoC