09.01.2026, 09:18
Hi there
Has anyone experience controlling (starting and stopping) a MELCloud-Device (AC)?
I successfully get the context key to authenticate myself and am able to get a list with devices, also with the Device-IDs, but I fail to start or stop a device.
Also, because my customer has multiple devices the returned json-string for all device-data is too long to display and decode for LogicMachine. Is there a way to split the returned json-string?
I found this thread to start and stop the device via powershell and adapted it to LUA:
Control-MELCloudDevice/Start-MELCloudDevice.psm1 at master · freddiecode/Control-MELCloudDevice · GitHub
Control-MELCloudDevice/Stop-MELCloudDevice.psm1 at master · freddiecode/Control-MELCloudDevice · GitHub
According to the MELCloud website and app, I'm successfully able to start and stop the device. Because when I send the commands, it shows the appropriate state immediately. So the command is sent successfully to the cloud. Unfortunately the device itself doesn't change the state. Also on the MELCloud website and app, the state changes a few seconds after to the original state (probably because MELCloud syncs the state with the device and refreshes it on the MELCloud). So the command isn't sent successfully from MELCloud to the device.
Also I'd like to get the current state of the device. But as the returned json-string from the devices is too long, i can't decode it.
Thank you in advance!
Has anyone experience controlling (starting and stopping) a MELCloud-Device (AC)?
I successfully get the context key to authenticate myself and am able to get a list with devices, also with the Device-IDs, but I fail to start or stop a device.
Also, because my customer has multiple devices the returned json-string for all device-data is too long to display and decode for LogicMachine. Is there a way to split the returned json-string?
I found this thread to start and stop the device via powershell and adapted it to LUA:
Control-MELCloudDevice/Start-MELCloudDevice.psm1 at master · freddiecode/Control-MELCloudDevice · GitHub
Control-MELCloudDevice/Stop-MELCloudDevice.psm1 at master · freddiecode/Control-MELCloudDevice · GitHub
According to the MELCloud website and app, I'm successfully able to start and stop the device. Because when I send the commands, it shows the appropriate state immediately. So the command is sent successfully to the cloud. Unfortunately the device itself doesn't change the state. Also on the MELCloud website and app, the state changes a few seconds after to the original state (probably because MELCloud syncs the state with the device and refreshes it on the MELCloud). So the command isn't sent successfully from MELCloud to the device.
Also I'd like to get the current state of the device. But as the returned json-string from the devices is too long, i can't decode it.
Thank you in advance!