The built-in Bond integration being used to control individual devices linked to my Bond Home is working well with several Rollease shades, but a use case has arisen to control a number of groups of shades.
The Bond integration does not currently support groups, but I have managed to control these using the following CLI command:
curl -i http://XX.XX.XX.XX/v2/groups/e1950c36be072188/actions/Close -X PUT -d "{\"_token\": \"abcdefghijklmn\"}"
where "XX.XX.XX.XX" is the IP address of the Bond Home, "abcdefghijklmn" is the token and "e1950c36be072188" is the (disguised) Bond group ID.
Is there a way of sending cURL requests from Hubitat, or alternatively can the working request be transformed into an HTTP request that can be sent using an app such as HTTP Momentary Switch?
It appears that the (required) inclusion of the token may be an issue.
A search of this forum (and others) have located similar issues, but no resolution.
Better still, is there any chance of revising the built-in app to include groups?
You can do a HTTP GET/POST from rule machine, and build up the appropiate URL as a string.
Doing a PUT is a bit trickier - Not sure if a POST would work for your or not..
I don't know for rules, but in driver and application code you would use httpGet( params_map )
If you want to see full examples, look at some of my community Bond code here. Start at line 211.
From a Hubitat implementation perspective the challenge is that a group of devices doesn't fit well in the driver model. Grouping is something that natively goes into apps. I'd add "and rules" but rules is just another app. =)
A well designed Habitat Bond app might make device groups a feature and and/or maybe create virtual devices that represent the grouping. I lean toward simply being an app feature to minimize complexity but then the group is potentially isolated from other Hubitat capabilities that come along with being a "device".
With the information provided, and with some assistance in interpreting curl requests from ChatGPT (yes, really!!), I have established effective control of my Bond groups using the Http Momentary Switch driver.
Note that the groups are formed in the Bond Home app, and can then be created as a device in Hubitat. If grouping can be included in the community driver set at some time in the futire it would be appreciated.