Ezlo HTTP API Set RGB Color How?

Thanks Bill I will take a look.

Another option might be Multi System Reactor. The first version that supports Ezlo hubs has just been released.

If I can control the colours of the RGB bulb paired to the Ezlo Plus hub via MSR, then I will be able to use MSR’s own much simpler HTTP API and create some different colour “scenes” in MSR and just send GET commands from Home Remote dashboard app to MSR to run those “scenes” etc to in turn control the bulb, effectively cutting out Ezlo’s own HTTP API that requires POST for controlling RGB lights.

I believe the MSR integration uses the wss web socket for interacting with the Ezlo hubs.

I have had it confirmed by an Ezlo developer that it does require POST to set colours on an RGB light, which makes it more difficult for end users to use.

The whole point of the HTTP Server API is for end users to be able to use, not just for developers or more technical types.

So it should be made more simple like the current Vera Luup Requests HTTP API.

Every time they make something POST it ups the difficulty. Also I have some other apps I use that don’t support sending POST commands, so it should all be GET like Vera is now in my opinion.

I know it’s not always possibile, but my own Virtual Plug-in is supporting curl commands, so you should be able to map an Elzo command this way. I’m using it for my own endpoints accepting POSTs and it’s rock solid (and it’s using RGB virtual devices as well). Give it a try.

1 Like

I have MSR up and running controlling devices on my Ezlo Plus hub now !!!

I have created a set of “Global Reactions” that simply turn on my RGB bulb and set it to a particular colour:

“Global Reaction” summary card for RED:

Now using MSR’s simple HTTP API → I can send simple one line GET HTTP commands from my dashboard page in Home Remote.

This is an example of an MSR HTTP command to run a particular “Global Reaction”, in this example it runs my reaction or “scene” for Red colour:

http://MSR-IP:8111/api/v1/reaction/re-kr6dwist/run

I now thanks to the MSR developer, have a dashboard page like this, that works and changes the colours of my RGB bulb paired to the Ezlo Plus hub.

As I said it’s a shame the official Ezlo HTTP Server API can’t control colours on a light with GET instead of the more complicated POST.

image

It can be laggy sometimes however changing colours, when clicking on these buttons too quickly. Likely the Ezlo HTTP web socket API being slow to respond ?

1 Like

That same request you sent with Postman would look something like this in a Home Remote plugin.

var data = {"method": "hub.item.value.set" , "id" : "_ID_" , "params" : {"_id" : "60e47f4e120bab11f9d77f5e" , "value" : {"red":255,"green":0,"blue":0,"cwhite":0,"wwhite":0}}};
http.post("https://192.168.0.11:17000/v1/method", data);
1 Like