I was able to control the speed of the fan with Node-Red
replace with data value between <specified data place holder>
Here I get a list of devices on the Bond:
[
{"id":"ce2ef05c.858b2","type":"inject","z":"70822ef9.6e872","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":140,"y":120,"wires":[["b01e6159.0f5be"]]},
{"id":"d26f2234.0646","type":"http request","z":"70822ef9.6e872","name":"Get Device Information","method":"GET","ret":"txt","paytoqs":false,"url":"http://<bond bridge ip address goes here>/v2/devices","tls":"","persist":false,"proxy":"","authType":"","x":560,"y":120,"wires":[["6b900614.5758c8"]]},
{"id":"b01e6159.0f5be","type":"function","z":"70822ef9.6e872","name":"set payload and headers","func":"msg.payload = \"data to post\";\nmsg.headers = {};\nmsg.headers['BOND-Token'] = '<bond bridge token goes here>';\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":120,"wires":[["d26f2234.0646"]]},
{"id":"6b900614.5758c8","type":"debug","z":"70822ef9.6e872","name":"","active":true,"console":"false","complete":"false","x":770,"y":120,"wires":[]}
]
Here I get info on a specific devices on the Bond:
[
{"id":"37925abe.abe9a6","type":"inject","z":"70822ef9.6e872","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":140,"y":240,"wires":[["2588de47.e99372"]]},
{"id":"319d09d9.fff896","type":"http request","z":"70822ef9.6e872","name":"Get Family Room Fan Information","method":"GET","ret":"txt","paytoqs":false,"url":"http://<bond bridge ip address goes here>/v2/devices/<device id goes here>","tls":"","persist":false,"proxy":"","authType":"","x":600,"y":240,"wires":[["f78925c7.426788"]]},
{"id":"2588de47.e99372","type":"function","z":"70822ef9.6e872","name":"set payload and headers","func":"msg.payload = \"data to post\";\nmsg.headers = {};\nmsg.headers['BOND-Token'] = '<bond bridge token goes here>';\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":240,"wires":[["319d09d9.fff896"]]},
{"id":"f78925c7.426788","type":"debug","z":"70822ef9.6e872","name":"","active":true,"console":"false","complete":"false","x":850,"y":240,"wires":[]}
]
Here I am able to set the speed of the fan:
[
{"id":"1ffd56db.594db9","type":"inject","z":"70822ef9.6e872","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":100,"y":360,"wires":[["6f18900d.5faf4"]]},
{"id":"7682919a.a7572","type":"http request","z":"70822ef9.6e872","name":"PUT - Family Room Fan Speed","method":"PUT","ret":"txt","paytoqs":false,"url":"http://<bond bridge ip address goes here>/v2/devices/<device id goes here>/actions/SetSpeed","tls":"","persist":false,"proxy":"","authType":"","x":650,"y":360,"wires":[["20d0c073.74c9a"]]},
{"id":"6f18900d.5faf4","type":"function","z":"70822ef9.6e872","name":"Set Payload -speed 2- and Headers","func":"msg.payload = \"data to post\";\nmsg.payload = {\"argument\": <fan speed 1, 2 or 3 here>};\nmsg.headers = {};\nmsg.headers['BOND-Token'] = '<bond bridge token goes here>';\n\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":360,"wires":[["7682919a.a7572"]]},
{"id":"20d0c073.74c9a","type":"debug","z":"70822ef9.6e872","name":"","active":true,"tosidebar":true,"console":false,"complete":"false","x":870,"y":360,"wires":[]}
]
Here I am able to turn off the fan:
[
{"id":"4a666c57.9819b4","type":"inject","z":"70822ef9.6e872","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":100,"y":460,"wires":[["1a69f8f7.759807"]]},
{"id":"2b47a53d.b54bca","type":"http request","z":"70822ef9.6e872","name":"PUT - Family Room Fan Off","method":"PUT","ret":"txt","paytoqs":false,"url":"http://<bond bridge ip address goes here>/v2/devices/<device id goes here>/actions/TurnOff","tls":"","persist":false,"proxy":"","authType":"","x":640,"y":460,"wires":[["34e1a40c.6ae0fc"]]},
{"id":"1a69f8f7.759807","type":"function","z":"70822ef9.6e872","name":"Set Headers","func":"msg.payload = \"data to post\";\nmsg.payload = {};\nmsg.headers = {};\nmsg.headers['BOND-Token'] = '<bond bridge token goes here>';\n\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":460,"wires":[["2b47a53d.b54bca"]]},
{"id":"34e1a40c.6ae0fc","type":"debug","z":"70822ef9.6e872","name":"","active":true,"tosidebar":true,"console":false,"complete":"false","x":870,"y":460,"wires":[]}
]