Page 2 of 2

Re: BOND Smart Ceiling Fan Control

PostPosted: Tue Mar 12, 2019 9:19 am
by Different Computers
Apparently they've now released an SDK or API or both, but I don't know any details.

Re: BOND Smart Ceiling Fan Control

PostPosted: Tue Mar 12, 2019 10:12 am
by kw123
Where did you find that?


Sent from my iPhone using Tapatalk

Re: BOND Smart Ceiling Fan Control

PostPosted: Tue Mar 12, 2019 10:34 am
by kw123
Found it.

http://docs-local.appbond.com/#section/ ... -Fan-Speed


Sent from my iPhone using Tapatalk

Re: BOND Smart Ceiling Fan Control

PostPosted: Sun Sep 08, 2019 8:57 am
by katiaf
Thank you for the link to the API! I was able to set Action Groups for my Minka Aire fan using "Run Shell Script". I will detail the steps in case someone can use them.

1) Follow the instructions in the API link http://docs-local.appbond.com/#section/Getting-Started to find out the IP address, token, and device id of your Bond. Notice that to get the token you need to power cycle the fan (not only turn the fan off and on, but use the breaker to totally turn off power to your fan).
2) Test the commands from Terminal using the ip address, token and device from Step 1, e.g., curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/TurnLightOn -X PUT -d "{}"
3) Once you troubleshoot the command and it works from Terminal, put it in a a Shell script (just a file with "#! /bin/bash" in the first row and the command in the second row). Do this for all the different commands. I have TurnLightOn, TurnLightOff, TurnFanOff, SetFanSpeedLow (2), SetFanSpeedMed (4), SetFanSpeedHigh (6)
4) chmod +x to all your Shell Scripts to make them executable
5) Create your Action Groups in Indigo using Type "Run Shell Script" and point to the path of your specific Shell Script

These are the different commands I used:

Turn On Fan Light
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/TurnLightOn -X PUT -d "{}"

Turn Off Fan Light
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/TurnLightOff -X PUT -d "{}"

Turn Off Fan
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/TurnOff -X PUT -d "{}"

Set Fan to High
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/SetSpeed -X PUT -d "{\"argument\": 6}"

Set Fan to Medium
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/SetSpeed -X PUT -d "{\"argument\": 4}"

Set Fan to Low
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/SetSpeed -X PUT -d "{\"argument\": 2}"

Re: BOND Smart Ceiling Fan Control

PostPosted: Sat Dec 07, 2019 7:05 pm
by FlyingDiver
I"m working on a plugin for Bond Home devices. Discussion in this thread: viewtopic.php?f=216&t=23291

Re: BOND Smart Ceiling Fan Control

PostPosted: Sun Dec 08, 2019 12:16 pm
by FlyingDiver
Can you try something for me? My fans don't do the direct SetSpeed command, so I can't test this myself.

Try:

Code: Select all
curl -H "BOND-Token: <token number>" -i http://<ip address>/v2/devices/<device ID>/actions/SetSpeed -X PUT -d "{\"argument\": \"4\"}"


The difference is that the argument value is a string, not a number. I'm wondering if it'll work either way.