Bond Home -cURL requests for group control

Bond accepts GET, curl example:

curl -H 'contentType: application/json' -H 'BOND-Token: 1234xxxxxxx4321' http://<bond_ip_address>/v2/devices/1/state

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".

I intend to rewrite the current Community Bond app and driver set and I'll keep grouping in mind.

1 Like