Will MSR have its own Http API? (Luup Requests)
-
If my longer term goal is to just use Vera as a Z-Wave radio only.
Or to maybe even replace Vera and Ezlo altogether with another Z-Wave hub like Hubitat or perhaps even a USB stick Z-Wave.me Z-Way or something (Assuming MSR supports that platform you plan to move to etc) .
Then all my "Scenes" might end up being rules in MSR.
These rules in MSR may have triggers that are automated as I'm setting up right now, or they may not have any triggers at all, other than being manual, like you can setup a manual scene in Vera.
I'd then want to be able to initiate some of those "scenes" by sending http requests to MSR from other devices and apps on my LAN.
Presumably for controlling Z-Wave devices directly on / off / dim etc, I'd been sending http requests to whatever the new Z-Wave hub might be? Hubitat or whatever.
Just thinking how you'd fully move away from Vera and any Vera scenes.
Or is this more the realm of OpenLuup? With using Vera still as the Z-Wave radio or a Z-Wave USB stick, which do they support?
In short I'd like to be able to send a simple one line HTTP request to MSR to have it run a particular "Set Reaction" action(s).
-
If my longer term goal is to just use Vera as a Z-Wave radio only.
Or to maybe even replace Vera and Ezlo altogether with another Z-Wave hub like Hubitat or perhaps even a USB stick Z-Wave.me Z-Way or something (Assuming MSR supports that platform you plan to move to etc) .
Then all my "Scenes" might end up being rules in MSR.
These rules in MSR may have triggers that are automated as I'm setting up right now, or they may not have any triggers at all, other than being manual, like you can setup a manual scene in Vera.
I'd then want to be able to initiate some of those "scenes" by sending http requests to MSR from other devices and apps on my LAN.
Presumably for controlling Z-Wave devices directly on / off / dim etc, I'd been sending http requests to whatever the new Z-Wave hub might be? Hubitat or whatever.
Just thinking how you'd fully move away from Vera and any Vera scenes.
Or is this more the realm of OpenLuup? With using Vera still as the Z-Wave radio or a Z-Wave USB stick, which do they support?
In short I'd like to be able to send a simple one line HTTP request to MSR to have it run a particular "Set Reaction" action(s).
@cw-kid said in Will MSR have its own Http API? (Luup Requests):
Then all my "Scenes" might end up being rules in MSR.
Scenes are actually closer to Reactions, not Rules.
You can make a global Reaction in the Reactions left navigation area. A global reaction can be run from any other reaction (e.g. a rule reaction or another global reaction). You can use this to make your reactions more modular.
You will run a global reaction by fetching (GET):
http://your-reactor-ip:8111/api/v1/reaction/reaction-id-here/run
You will perform any MSR action on an entity by requesting (GET or POST):
http://your-reaction-ip:8111/api/v1/entity/entity-id-here/perform/action-name-here?argument=value&argument=value...
Right now both of these are stubs (they don't work yet), but they're spec'd. The HTTP API hasn't been a priority, since the UI and Dashboard use WebSockets.
-
@toggledbits said in Will MSR have its own Http API? (Luup Requests):
Scenes are actually closer to Reactions, not Rules.
Yes sorry that's what I meant. The Reaction behaves more like a Vera Scene.
So from what you've said, it sounds like in the future we will be able to run a Global Reaction by sending a http request to MSR.
This is excellent news.
Thank you.
-
Starting tomorrow, in fact.
-
See here for now: https://smarthome.community/post/7572
-
T toggledbits locked this topic on