A typed Node.js client for the MELCloud and MELCloud Home APIs, providing access to Mitsubishi Electric air-to-air (Ata), air-to-water (Atw) and energy recovery ventilation (Erv) devices.
npm install @olivierzal/melcloud-apiimport { FacadeManager, MELCloudAPI } from '@olivierzal/melcloud-api'
const api = await MELCloudAPI.create({
username: 'user@example.com',
password: 'password',
})
const manager = new FacadeManager(api, api.registry)
// Browse the device hierarchy
for (const zone of manager.getZones()) {
console.log(zone.name)
}
// Interact with a device through its facade
const facade = manager.get(device)
await facade.setValues({ Power: true })import { HomeFacadeManager, MELCloudHomeAPI } from '@olivierzal/melcloud-api'
const api = await MELCloudHomeAPI.create({
username: 'user@example.com',
password: 'password',
})
await api.list()
const manager = new HomeFacadeManager(api)
// Interact with a device through its facade
const [device] = api.registry.getAll()
const facade = manager.get(device)
console.log(facade.name, facade.operationMode, facade.setTemperature)
await facade.setValues({ setTemperature: 21 })Full API reference at https://olivierzal.github.io/melcloud-api/.
This API is not endorsed, verified or approved by Mitsubishi Electric Corporation. Mitsubishi cannot be held liable for any claims or damages that may occur when using this app to control MELCloud devices.
ISC