Bond Home Component - Light + Fan

@nguyer, I am really interested in this project going forward. Currently I am controlling my Bond attached Fans leveraging RESTful commands and a script, which works very well but is very complicated to configure. Adding additional devices is a little challenging. Your project could greatly simplify the configuration and discovery process going forward.

I am especially excited that you are considering making it available through HACS. Thanks for taking this on!

So I have added the bond folder to my custom components folder and then have added the following to my configuration.yaml file:

light:

  • platform: bond
    host: local_ip
    token: local_token_from_ios_app

but every time I go to restart the server I get the following errors:

Invalid config for [light.bond]: [host] is an invalid option for [light.bond]. Check: light.bond->host. (See ?, line ?). Please check the docs at Bond - Home Assistant

1:23 PM components/hassio/init.py (ERROR)

You are using a custom integration for bond which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

1:23 PM loader.py (WARNING)

I’m sure I am just being dumb and doing something incorrectly, but I cannot figure out what. Do you have any suggestions?

Ah try taking the light part off. Sorry I forgot to update the readme after making the change to support multiple platforms. I’ll do that.

So your config should just look like this, in the root level of your configuration.yaml:

bond:
  host: <your_hub_ip>
  token: <your_bond_token>

Thank you! I look forward to trying this out and following development.

This is great work, I was able to get this working in about 15 minutes. Really slick!

For anybody else trying to get this setup, the only tricky thing for me was getting the beta firmware on my old Bond device. I guess if your Bond device has a serial number starting with ZZ this won’t matter, but mine was older. After some digging I found a “Bond Home (Early Access)” app on the Play Store, and after installing it I was prompted to update my firmware again - this is the beta firmware that provides the local API. Without this, trying to get the token simply returned “empty reply from server”. After I got the beta firmware installed, everything else was very straight forward.

1 Like

Just popped in to say keep up the good work! I’m still using Hacky Bond Integration (Bond Fan Controller) as it can control the speed, and it is working well, however getting a cleaner configuration.yaml is a never ending goal of mine so this integration would be ideal. Let me know if you need any bug testing as I love breaking stuff!

Thanks! I’m working on fan speed now. It’s almost done but not quite working yet. Life is a little busier for me right now but I might have some cycles to work on it this weekend. I’ll post back here when there’s an update.

4 Likes

I just wanted to thank you for this. Up until this point I was using webhooks. This is pretty slick!

@nguyer Thank you for this custom module. I too will be eagerly awaiting functionality for greater integration of Bond with Home Assistant (e.g. fan speed control and light dimming level). Let me know if you need tester.

Hi. I’ve been waiting for someone to add Bond for a long time! I’m so happy to see this. I just added the bond files as instructed and updated my config file. Performed a reboot of the server and I see the following warning:

WARNING (MainThread) [homeassistant.loader] You are using a custom integration for bond which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

I believe this is a standard warning regarding custom components and doesn’t necessarily mean anything is actually wrong. I don’t see any other mention of bond in the logs, so I don’t see any mention of an actual problem. But, I don’t see anything else. There’s no Bond device on the overview page or anything. Am I missing something? How do I access the device and control it?

I also tried to install it using HACS, but it could not find it. Just not sure how to control my fan or lights now.

Me too. I just added it and got the same warning (and I think that’s normal). However, I don’t see how to configure anything. I was assuming I’d see my Bond with some new Entities in the Registry, but I don’t see anything.

I’m definitely using the new api and firmware, I’m currently controlling things with REST commands so I know my IP and token are correct.

@Jestered and @majorsl
The fan and light from the Bond integration isn’t listed in the Configuration:Entity Registry page nor do I see anything indicating the integration of Bond on the Configuration:Integration page.

However they are listed in the Developer Tools:States page. It will be in a format something like this:
fan.<name of fan> e.g. fan.family_room_ceiling_fan
light.<name of fan>_light e.g. light.family_room_ceiling_fan_light

I was then able to add them (entity) to the Overview page and also control the on/off functionality of those entities.

Hope that helps.

Thanks @laichiufamily, but unfortunately that doesn’t help me. I checked the Developer Tools -> States page again and there are no entities related to the Bond device or either of my fans/lights that are controlled by Bond. After spending the majority of the day trying to get this to work, I’m still stuck unfortunately.

1 Like

@laichiufamily That did the trick for me. Thanks!

@Jestered are you sure you’re running the latest firmware for your Bond that supports the api?

Yep.

Installed it, works great so far. Much quicker than my IFTT webhooks.

Just wanted to pop out to this thread and say…

STELLAR JOB!

From reading the thread I was skeptical about the actual fan controls. However, I installed the custom_component from the GitHub repo, and the fan works (on/off, no speeds yet, but that’s fine by me!)

I also wanted to let everyone know, in case they do not, that I just got the Bond Home Bridge, upgraded it via their app to 2.9.5, and right on the “Settings” screen it shows the “Local Token”, I put that in the configuration.yaml along with the IP address (found under “Network Info” on the Settings screen) and everything worked as advertised. Even set it up with my configured display name.

I saw that your GitHub commit comment was “added support for HACS” but I didn’t see the component out in the store yet, please post here when you have it operational if you don’t mind.

-Rob

I think you can just add the repo in HACS under Settings > Add Custom Repository. Just paste the repo github link there and will show up.

I like that you guys are popping in here?

Any word on how you plan to support this integration now that the Open API is available?

I’m a HA user my self. So what I can say is that I really want an official integration, but it’s not on our roadmap for now.

2 Likes