A PowerShell module for controlling your Mitsubishi Electric's MELCloud device(s).
Open a new PowerShell session, navigate to the folder containing the manifest (and the functions) and then import the module.
Example:
Import-Module .\Control-MELCloudDevice.psd1 -Force
You can then use the Get-Command
cmdlet to verify the available commands in this module:
Get-Command -Module Control-MELCloudDevice
CommandType Name Version Source
----------- ---- ------- ------
Function Get-MELCloudContextKey 1.0 Control-MELCloudDevice
Function Get-MELCloudDevice 1.0 Control-MELCloudDevice
Function Get-MELCloudDeviceInfo 1.0 Control-MELCloudDevice
Function Set-MELCloudDevice 1.0 Control-MELCloudDevice
Function Start-MELCloudDevice 1.0 Control-MELCloudDevice
Function Stop-MELCloudDevice 1.0 Control-MELCloudDevice
- Get-MELCloudContextKey
This first function is the place to begin. In order to communicate with the MELCloud API and your device, you must authenticate yourself. To successfully retrieve an API-key (Mitsubishi uses the term 'ContextKey', so I decided to use that name), you must provide a valid username
and password
.
- Get-MELCloudDeviceInfo
Will list all kind of technical information about your MELCloudDevice(s).
- Get-MELCloudDevice
Will list all of your registered MELCloud devices.
- Start-MELCloudDevice
Use this function to start your selected device.
- Set-MELCloudDevice
This is probably the most useful function in this module. This badboy allows you to set different settings on your device. You can adjust the temperature, set desired fan speed and change the mode (heating or cooling).
- Stop-MELCloudDevice
Allows you to shutdown your device.
Please refer to my blog post found here for more details and examples.
1.0 - Initial Build
Developed by: Freddie Christiansen | CloudPilot.no
The MIT License