Support for Bond hub

I knew it was going to be something stupid! I figured it out, 99% sure I fixed it unless I have a typo. I just can't test easily since I don't have a fan. If it's not working we can get this fixed pretty quickly now!

Looks like it's fixed now

app:8982020-01-03 12:38:00.108 pm debug10775f39 -> Translating 3:5 to HE medium

app:8982020-01-03 12:37:30.078 pm debug10775f39 -> Translating 3:5 to HE medium

app:8982020-01-03 12:37:02.925 pm debugcalling action SetSpeed {"argument": 3}

app:8982020-01-03 12:37:02.920 pm debug10775f39 -> Translating medium:5 to BOND 3

app:8982020-01-03 12:37:02.906 pm debugHandling Fan Speed event for 10775f39

app:8982020-01-03 12:37:00.106 pm debug10775f39 -> Translating 1:5 to HE low

1 Like

Great, so I was stupid. I had a variable named state... HE has a built in variable called state that is where the app stores its settings like the max fan speeds. Since I was accidentally stomping on that variable it wasn't able to read how many fan speeds your fan had. I renamed the variable and all good. Thanks for the help tracking it down!

2 Likes

Excellent, I am surprised I didn't notice it sooner but I suppose my wife and I since moving in last month have only really used the low setting. Anyways glad it's sorted.

btw, I still had to throw in the shade code below to let me open and close. I haven't found a fix other than this as yet. It works perfectly fine and I don't use the remotes.

def on() {
sendEvent(name: "switch", value: "on")
parent.handleOpen(device, device.deviceNetworkId.split(":")[1])
}

def off() {
sendEvent(name: "switch", value: "off", displayed: true)
parent.handleClose(device, device.deviceNetworkId.split(":")[1])
}

def open() {
sendEvent(name: "switch", value: "on")
parent.handleOpen(device, device.deviceNetworkId.split(":")[1])
}

def close() {
sendEvent(name: "switch", value: "off", displayed: true)
parent.handleClose(device, device.deviceNetworkId.split(":")[1])

I think I see what the problem is there and I just pushed a fix. Could you try the new app without your change?

2 Likes

Excellent that's fixed too. Your on a roll today :stuck_out_tongue:

1 Like

Great! Sorry it took so long, the ~12 hour time difference between US and AU makes it a challenge!

2 Likes

No worries at all I really appreciate it. Especially my wife! :wink:

1 Like

Glad to hear it. Speaking of which I'm going to go spend some time with my wife before she kills me for doing this all night...

3 Likes

That would require Bond Bridge to listen for the factory remote control. We’re going to try to bring this feature out in 2020, but it’s still unclear if it is technically possible (due to RF signal quality and frequency hopping issues).

Lux/motion sensor up in fan's globe with rules that trigger on change, PROBLEM SOLVED!

:grinning::grinning::grinning:

I'm coming over from a couple years of Smartthings and have migrated almost everything over this past week. I have my Bond fans available in Hubitat, but I have a IR "device" in Bond that I'm not able to see. It's my kids fish tank light. It's the last thing I have left in Smartthings to move over. Can we get a device driver for "Bond Device's"

I'm sure I could but what commands would it have?

Added IR devices only have Power on/power off/power toggle commands.

Ok, so it's basically a switch... Got it. Grab the app and generic device code from this branch GitHub - dcmeglio/hubitat-bond at genericdevices and let me know how it goes. If it works I'll merge it in.

Sorry if I'm missing something, but I don't see any differences from that branch vs master, nor do I see a Generic Device driver. Thanks

Oops... I never pushed it online. Try now

Installed the updated code from the branch. It sees the Generic Device during setup of the app, however when finished, going over to the device tab, it doesn't pull the device name or DNI properly. My device is called "Fishtank Light" in Bond, comes over to Hubitat as "BOND Generic Device". Device Netork ID for generic devices comes over as "bond:null", however if i update the DNI to the correct bond device ID, the device works from Hubitat.
I don't have these issues with Fan Devices when they come over. Weird that in the logs it shows the correct device ID

Logs with Token, IP, DNI hidden:

app:982020-01-09 08:56:30.327 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:56:00.470 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:55:30.359 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:55:00.409 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:54:30.316 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:54:00.439 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:53:30.386 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:53:00.521 am errorjava.lang.NullPointerException: Cannot invoke method sendEvent() on null object on line 629 (updateDevices)
app:982020-01-09 08:52:55.450 am debuginitializing
app:982020-01-09 08:52:55.445 am debugInstalled with settings: [hubToken:hidden, debugOutput:true, hubIp:hidden, genericDevices:[hidden], fans:[hidden]]

Sorry I was out of town for a few days, I believe it's fixed now

Works great. Thanks!!!

1 Like