Hi @bravenel I was wondering if something along these lines was possible. I would like to be able to pass in information from an outside call and either set a GV with the value or pass the attribute directly to a device driver.
Curious what your thoughts are. Thanks in advance.
I think this can be added to set a GV from an endpoint call. The value passed would be a string, and only a GV of type string would make sense. The string would be URL encoded, and then URL decoded into the GV. The GV could be passed as a string parameter to a driver using a custom action.
I am having some difficulty figuring this out. I am not sure If I have the url correct. I do seem to get a 200 response though the global variable never changes.
Not directly, no. Rules can throw events, but there is no subscription mechanism for those (haven't thought about this much -- perhaps it should be possible to subscribe to such events). This could be done indirectly of course using a virtual device set by the rule and whose events are subscribed to. The limitation at the moment are the available subscribe() methods, limited to device and location events.
Makes me also wonder whether these app events might not possibly be done as location events instead, thus allowing subscription to them.
So, the ability to subscribe to app events would be an addition to the hub core, while the latter would be a change to apps. Will look into this...
Lots of hair on this one: You'd want a way to subscribe to a specific rule (or app). As you know, internally apps have an appId that is used to reference them. So there would be the hurdle of getting an appId from a rule name or app name. RM has this very issue in offering things like Run Actions or Set Private Boolean of another rule, and so it handles this stuff in the parent.
As it stands right now, Rules do not in general tell the parent they have run.
I re-read the first post at least 3 times and miserably failed to see clear instructions as to how to get the access point to use with HTTP requests. Please help.
Set up a trigger event, either Cloud End Point or Local End Point, as appropriate to your use case. That will give you the link that you can right-click-copy.