Home Assistant integration

I’m curious if there are any plans at integrating with Home Assistant. If not, does Bond have a library or SDK that could be used for writing that support?

Use IFTTT as the middle man.

On IFTTT create two applets:
Trigger = Webhooks (event name = “fan_start” or “fan_stop”)
Event = Bond (select the “Turn on device” or “Turn off device” corresponding to the webhooks trigger name for that applet)

Then connect home assistant to ifttt in configurations.yml.

Then you can make automations or actions based on the “ifttt.trigger” service with the event data containing the “fan_start” or “fan_stop” event name from above.

Feel free to respond or ask questions if you need more specifics or clarifications. I’m typing from my phone so I couldn’t go into full detail as I don’t have it off hand.

Perfect! Thank you. I forgot all about the IFTTT integration.

With the new BETA local api, you can create shell commands in HA and have automations execute those scripts:

configurations.yaml
shell_command:
ceiling_light_toggle: ‘curl -H “BOND-Token: {{ token }}” -i http://192.168.1.20/v2/devices/00000001/commands/00000054/tx -X PUT -d {}’

automations.yaml:

  • id: ceiling-light-off
    alias: Turn off ceiling fan lights
    initial_state: on
    trigger:
    • platform: state
      entity_id: input_boolean.ceiling_light
      to: ‘off’
      action:
      • service: shell_command.ceiling_light_toggle
        data:
        token: !secret bond_token
4 Likes

I’m actually starting to look at building a proper python library and interface to the local API for home assistant. As soon as I figure out how to get my second fan paired. I’ll update this thread with progress as I go.

1 Like

Let me know if you need a tester. I have 3 fans and use Home Assistant. I’ve been eagerly waiting for a proper HASS component/platform.

Thanks

Hello @sdague.

I started a python library myself for the local API, and I’m planning to push it to GitHub this week. :crossed_fingers:

Do you some code already?

If you have any question, please let me know.

4 Likes

I don’t have code yet, I was looking through the API mostly. I’ve written a number of home assistant integrations in the past so happy to contribute if you want to publish out your library for local api access.

3 Likes

Have you had any luck with the integration? Looking forward to seeing your work and if you need anybody to help test, let me know.

I was pretty far along with an integration by reverse engineering their app API, but was excited to find out about their local API. But then my hopes were dashed when I found out that my fans aren’t compatible with the local API and need to wait for their cloud API to be exposed.

I got it working with my fans a couple weeks ago. works like a champ. no real state management but that is more of an annoyance then an issue.

I used this as a base and swapped out rest_command for shell_command. It work out great!!

Hey Dan, perhaps you already noticed, that after re-recording your fans on recent firmware, you can get them to work with the Local API.

Otherwise, very excited to see a few people using Home Assistant with Bond. We saw Home Assistant’s impressive showing at CEDIA… a solid Bond integration would be epic!

1 Like