Support for Bond hub

exactly...lol i will put this down for a while and try another time

Okay, I'll PM you for an advanced troubleshooting option. I'd really like to understand what's going on here.

Added the app and drivers. Works fine except I notice that I only have on/off ability on the fan lights. Doesn't look like I can go in and change the driver either to the dimmer driver.

@greg.cole sorry for the delayed response. The code looks for the SetBrightness command. Is this something you have available?

Coming cold to this thread; investigating if taking the plunge on Bond. Is the code on GitHub - dcmeglio/hubitat-bond: BOND Home Integration for Hubitat the latest and greatest? I see a lot of recent discussions here, but the code seems to have seen no changes for the last couple of months?
Thanks!

No when you look at the device, it only has off / on. No variables can be set. The Bond driver it loads is just the BOND Fan Light and not the BOND Light Dimmer. The driver also not be changed. On the IOS app the dimmer works just fine. I suspect the issue is the operation of the dimmer on the IOS app. When the dimmer is pressed the light will start cycling from bright to off and will stop when you push the dimmer button again. HE probably can't figure out how to emulate that.

I have been a BOND user since the first generation Hubs. I previously have used virtual switches and IFTTT to connect them together. Not a perfect solution because it was easy to get the fans out of sync.

I believe they have just released the first API link for Hubitat after several months of beta testing. I have loaded the App and the drivers and outside of the dimmer function not working, everything else seems to be working fine. You can turn the fan lights on/off just not dim them.

So it's not that HE doesn't know, it's that I haven't built that support. BOND has two methods of dimming depending on the device, one where you can just set a dimmer level and one where you hold the button. I didn't build anything to support the hold method. Let's confirm this is the problem, could you click the little gear next to the BOND Home integration app and paste the following:

I have a thought on how to "kinda" implement this. It gets tricky because I can't send a command to say "dim to 50%" what I need to do is know how long you have to hold the button to go from 100% to 0% and have you enter that as a property on the fan light. So if you said it takes 20 seconds to go from 0-100 and you want to set it to 25% I can do the math and hold the button for 5 seconds... Make sense?

If you can paste that screenshot I can take a look. I'd need some assistance testing since I don't have a fan that has this feature to play with!

Well there just hasn't been much that needed to be done! That being said I finally got flame height working for my fireplace with BOND so I'll be coding that tomorrow if I get some free time.

1 Like

Here you go. I can help you test. I have 3 fans with dimming capabilities.

Let me take some measurements on how long to go from 0 to 100%. I think is is dependent on the light because some are incandescent and the others are halogen.

Sounds good, and yes my theory is correct. You have the StartDimmer command listed there instead of the SetBrightness

Just did some rough stopwatches and all seem to go from dim to bright in 4 seconds +/- 250ms. Its a little subjective since none go to off and they all seem to hold fully dim and fully bright for about 4 seconds as well.

Ok, sounds good. I have a pretty good idea of how to make this work. The biggest limitation I see is if you change the brightness through the BOND app (or say alexa using the BOND skill) HE won't know. The StartDimmer command doesn't keep track of brightness state like the regular SetBrightness does. This means HE could possibly have the wrong dimmer levels if you change it using something other than HE. Nothing I can do about that though, it's the way the BOND seems to work.

I understand. I would think the most common use I see is for setting a brightness level as you turn the light on in a RM rule. If I want to adjust the dimmer with a dashboard, I would probably just use the BOND app or Alexa. I haven't had time to play yet, but I use Sharptools for my wall mounted tablets in a few rooms. I will try to add the fan control to them to see how Sharptools picks up the devices.

1 Like

I’ll have something together tomorrow

Glad to check it out!

Perfect timing, I decided to take a stab before bed. I put it in a separate branch for now GitHub - dcmeglio/hubitat-bond at timed-dimmers you need the new app as well as the new dimmable light. You'll probably need to mess with the setting for the timer in the light a bit. Let me know if you hit any issues but I probably won't be able to spend much time on it until tomorrow evening.

You will need to delete the fan from HE and readd it so that it correctly makes it use the dimmable driver.

Edit: If you could make sure the debug logging is turned on for the first few days too that'd be great. If something does go wrong the logs will be helpful.

Went ahead and did clean install of your branch on my second HE. Light doesn't seem to work at all. Not sure where to even turn it on in the device. See log file