Support for Bond hub

Hoping to work on adding this and other proposed enhancements this weekend. If you’re familiar with GitHub feel Free to submit a pull request.

2 Likes

Sounds like you have some cloud devices. I think you need to have the newest bond app and delete/readd them.

If you’re using the remote neither bond nor hubitat will know about that. Currently bond cannot listen for the remote being used. If you use the bond app however it should synchronize.

Thanks mate. Sorry no idea about pull requests so probably easier for you to take it from here. I did some further "testing" on the above driver change and I can confirm it keeps sync still with the Bond app although I am not sure this is the most appropriate change to get this working as I am not a developer. If you do see a better way using app and driver definitely go that route instead but at least I have something working for now to keep wifey happy :stuck_out_tongue:

now lets say i set up an automation to turn on at 11pm, but it was turned off by the remote earlier so the hub still says the device is on. It wont run the automation?

Can you use the App “Device Watchdog” or similar ??

It should still run the automation it’s just the device state may be out of sync.

Sorry it turns out I never checked this in, but I added the switch capability. However, I did not add these sendEvents. We should wait for BOND to respond that it received our command and processed it before changing the device status, not just sending a command.

1 Like

I tried it out but without that extra bit I am unable to reopen the shades once I close them. As such I have gone back to the changes I made to the driver which works perfectly for me so long as I don't use the remotes (which we don't in our house as they are locked away in a drawer).

@jchurch Can you give this updated version a try? I just realized that the version I modified for you had a typo in the handleClose() method. :see_no_evil:

1 Like

Excellent that is now working. Thanks mate!

1 Like

@dman2306 I have noticed with my fans that they are not reporting all the speeds properly e.g. I select 1 in the bond app and it's low, 2 is medium but 3 then jumps straight to high (not medium-low) when that should be 4? This happens if I try and change it within HE too not just the bond app. Also if I try and select 4 e.g. High then i note the following:

image

Anyways let me know what you need to investigate.

EDIT: Scratch that I am having trouble getting into medium-low without is jumping straight to medium as well. Hmmm... I did install the motorised shade changes from @josh above but that's been the only change I have completed of late.

My name is Bond, Hub Bond...

sorry guys, end of the year/decade for me too.

1 Like

If I remember correctly, in the SmartThings world the official Bond integration has the following speeds

# Description
0 Off*
1 Low
2 Medium
3 High

*0 mapping to Off is a relatively recent update. In the Bond world, I understand that normally there's a separate on/off indication?

Officially speaking, the Hubitat FanControl capability expects a string for the speed (ENUM). That being said, there's some level of (unofficial?) backwards compatibility with integer speeds:

Description Hubitat ENUM Hubitat SmartThings
Off off 0 0
Low low 1 1
Medium-Low medium-low 2
Medium medium 3 2
Medium-High medium-high
High high 4 3
On on 5
Auto auto 6

For backwards compatibility purposes

1 Like

How many speeds does you fan support? There is probably a bug in the mappings.

My fans support 5 speeds (see pic of remote and in bond app). They just don't have a light that's redundant.

could you turn on debug logging? It should log the fan speed translations. This is what it's supposed to be doing for a 5 speed:

[5: "high", 4: "medium-high", 3: "medium", 2: "medium-low", 1: "low"],

Sure no worries. Here you go.

This is when I set fan speed to medium and it then shows in HE as high.

app:8982020-01-01 04:05:30.471 pm debugTranslating 1 to BOND
app:8982020-01-01 04:05:30.325 pm debugTranslating 1 to BOND
app:8982020-01-01 04:05:30.104 pm debugTranslating 3 to BOND
app:8982020-01-01 04:05:00.825 pm debugcalling action SetSpeed {"argument": 3}
app:8982020-01-01 04:05:00.814 pm debugHandling Fan Speed event for 10775f39
app:8982020-01-01 04:05:00.437 pm debugTranslating 1 to BOND
app:8982020-01-01 04:05:00.220 pm debugTranslating 1 to BOND

This is when I set fan speed to medium-low and it then shows in HE as medium.

app:8982020-01-01 04:07:00.335 pm debugTranslating 1 to BOND
app:8982020-01-01 04:07:00.214 pm debugTranslating 1 to BOND
app:8982020-01-01 04:07:00.073 pm debugTranslating 2 to BOND
app:8982020-01-01 04:06:30.418 pm debugTranslating 1 to BOND
app:8982020-01-01 04:06:30.283 pm debugTranslating 1 to BOND
app:8982020-01-01 04:06:30.109 pm debugTranslating 2 to BOND
app:8982020-01-01 04:06:10.889 pm debugcalling action SetSpeed {"argument": 2}
app:8982020-01-01 04:06:10.869 pm debugHandling Fan Speed event for 10775f39

This is when I set the fan speed to high and it then shows as off in HE.

app:8982020-01-01 04:07:30.405 pm debugTranslating 1 to BOND
app:8982020-01-01 04:07:30.273 pm debugTranslating 1 to BOND
app:8982020-01-01 04:07:30.102 pm debugTranslating 5 to BOND
app:8982020-01-01 04:07:27.706 pm debugcalling action SetSpeed {"argument": 5}
app:8982020-01-01 04:07:27.696 pm debugHandling Fan Speed event for 10775f39

Sorry to be a pain, I just updated the app with a bit better logging to help track this down. Could you update and rerun the tests? I might not be able to work on it more until the weekend (back to work tomorrow after the holidays!) but I'll figure out what's wrong here. Looking at the logs, can you just confirm that you have 3 fans configured? That's what it looks like... if not something much more serious is wrong :slight_smile:

No worries here you go.

This is when I set fan speed to medium and it then shows in HE as high.

app:8982020-01-02 10:41:31.291 am debugcalling action SetSpeed {"argument": 3}
app:8982020-01-02 10:41:31.267 am debugTranslating medium:5 to HE 3
app:8982020-01-02 10:41:31.234 am debugHandling Fan Speed event for 10775f39
app:8982020-01-02 10:41:30.147 am debugTranslating 1:3 to BOND low

This is when I set fan speed to medium-low and it then shows in HE as medium.

app:8982020-01-02 10:42:30.105 am debugTranslating 2:3 to BOND medium
app:8982020-01-02 10:42:27.604 am debugcalling action SetSpeed {"argument": 2}
app:8982020-01-02 10:42:27.603 am debugTranslating medium-low:5 to HE 2
app:8982020-01-02 10:42:27.592 am debugHandling Fan Speed event for 10775f39

This is when I set the fan speed to high and it then shows as switch off and speed 0 in HE.

app:8982020-01-02 10:42:57.877 am debugcalling action SetSpeed {"argument": 5}
app:8982020-01-02 10:42:57.875 am debugTranslating high:5 to HE 5
app:8982020-01-02 10:42:57.866 am debugHandling Fan Speed event for 10775f39

btw, i have 6 ceiling fans with 5 of them being all the same brand e.g. Fanco.