Welcome to HomeKitLab · a home lab that leans toward Apple Home · everyone is welcome, whatever you run at home · Ring cameras, go2rtc, and Home Assistant · best viewed in Netscape Navigator 4.0 at 800×600 ·

How to Add an Orbit B-hyve Sprinkler Timer to Apple Home (Home Assistant, Valves, and Alerts)

NEW!

Orbit B-hyve timers live in the B-hyve app and nowhere else. There is no HomeKit option. With Home Assistant in the middle, each watering zone becomes a valve, and a small HomeKit Bridge puts those valves in Apple Home, so "Hey Siri, turn on Sprinkler 1" works and the zones can join your Home scenes.

This setup has one Orbit B-hyve Smart Timer with two zones. Because the integration goes through the B-hyve cloud, it also gets four alerts that tell you when the link drops or a watering does not happen.

The page is dressed like a 1998 personal site. The steps are current. Copy the YAML from the Notepad boxes.

What you need
  • Home Assistant with HACS installed.
  • An Orbit B-hyve timer already working in the B-hyve app, and that account's sign-in.
  • An Apple home hub, a HomePod or an Apple TV, on a network that can reach the server.
  • The Home Assistant Companion app on your iPhone, if you want the alerts in step 6.

Where each piece sits

Orbit B-hyve integration (bhyve)
The sebr custom integration. Signs in to the B-hyve cloud and creates the entities.
Zone valves
One valve entity per zone. Open starts watering, close stops it.
HomeKit Bridge
A bridge named Sprinklers that publishes just the two valves.
Alerts
Four automations that watch the valves and the zone history.

1 Install Orbit B-hyve from HACS

Open HACS, search for Orbit BHyve (the sebr/bhyve-home-assistant repository), download it, and restart Home Assistant. The most common mistake, per the project's own help section, is stopping here. Installing from HACS does not set anything up.

A HACS window listing Orbit BHyve from sebr/bhyve-home-assistant as installed, with checks for downloaded and restarted.
Install, then restart. HACS alone does not set it up.

2 Connect your B-hyve account

Settings, Devices & services, Add Integration, search for Orbit B-hyve, and finish the guided setup. Sign in with the same account the B-hyve app uses, then pick the timer you want in Home Assistant.

The sign-in is stored in Home Assistant. Keep it out of screenshots and git.

An Orbit B-hyve setup window with a placeholder email, a masked password, and the Smart Timer ticked in the device list.
Sign in with the B-hyve app account, then tick the timer.

3 Find the zone valves and name them

The integration creates a valve entity for each zone. Opening a zone valve starts watering that zone for its default time, and closing it stops watering. You also get a next watering sensor, a history sensor per zone, rain delay and smart watering switches, a run mode select, and a fault sensor.

The zone entities come in as valve.smart_timer_zone_1_zone and valve.smart_timer_zone_2_zone. Short names read better in Apple Home and in Siri, so set them in customize.yaml.

customize.yaml
valve.smart_timer_zone_1_zone:
  friendly_name: Sprinkler 1
valve.smart_timer_zone_2_zone:
  friendly_name: Sprinkler 2

That file is loaded by homeassistant: customize: !include customize.yaml in configuration.yaml. Renaming the entities in the UI works just as well.

A device window for Smart Timer: valve.smart_timer_zone_1_zone named Sprinkler 1, valve.smart_timer_zone_2_zone named Sprinkler 2, and the next watering, zone history, rain delay, and fault entities.
Two zones, two valves. The rest stays in Home Assistant.
A real crop of the Home Assistant wall dashboard: a Backyard group with two tiles, Sprinkler 1 Closed and Sprinkler 2 Closed.
The real thing, on the wall dashboard: the two zones as Sprinkler 1 and Sprinkler 2.

4 Make a HomeKit Bridge just for the sprinklers

Give the zones a bridge of their own. Then a water timer that drops off the cloud does not leave a lights bridge full of "No Response" tiles, and you can reset it alone.

This one is made in the UI. Settings, Devices & services, Add Integration, HomeKit Bridge. Include only the valve domain, finish, then open Configure on the new entry:

  • Mode: bridge.
  • Inclusion: pick exactly the two zone valves.
  • Leave the rest at the defaults.

Home Assistant names a new entry HASS Bridge plus a suffix, and gives it the next free port. Here it became HASS Bridge 2L:21072, renamed to Sprinklers. If you want the same result in YAML, it looks like this:

configuration.yaml
homekit:
  - name: Sprinklers
    port: 21072
    advertise_ip: 192.168.1.50   # your server's LAN IP
    filter:
      include_entities:
        - valve.smart_timer_zone_1_zone
        - valve.smart_timer_zone_2_zone

Pick one way per bridge. A bridge made in the UI is edited in the UI. YAML for it makes a second bridge on another port.

A HomeKit Bridge window named Sprinklers: bridge mode, port 21072, advertise_ip 192.168.1.50, and the two zone valves included.
Its own bridge, its own port. The IP is a placeholder.

5 Pair it in the Apple Home app

Open the notification in Home Assistant for the new bridge, then in the Home app choose Add Accessory and scan the QR code. Accept the uncertified accessory with Add Anyway and put Sprinkler 1 and Sprinkler 2 in a room such as Backyard.

pairing.txt
Open the Apple Home app
Add Accessory
Scan the QR code from the Home Assistant notification
Add Anyway (uncertified accessory)
Room: Backyard
Done

Home Assistant exposes a valve entity as a HomeKit valve. Tap the tile to start the zone and tap again to stop it.

An Apple Home style window with a placeholder pairing code XXX-XX-XXX and two tiles, Sprinkler 1 and Sprinkler 2, both Off.
Illustration, not a screenshot. Each zone is its own tile.

6 Add alerts for the cloud link

This integration talks to the B-hyve cloud, and the timer talks to it too. When either side drops, the zones go unavailable, and Apple Home just shows No Response. Four automations catch that, and also catch the quieter failures.

  • Offline 60 min. Either zone unavailable or unknown for an hour.
  • Back online. Fires after a long outage ends and clears the offline notice.
  • Missed scheduled watering. Two hours past a zone's next_start_time and the zone history shows no run.
  • Ran too short. A zone went from open to closed in under three minutes. That points at a valve or water supply problem.

Put them in a package so they travel together. Change notify.mobile_app_your_iphone to your own phone's notify action.

packages/sprinkler_alerts.yaml
automation:
  - id: sprinkler_alert_offline
    alias: "Sprinkler alert - offline 60 min"
    mode: single
    triggers:
      - trigger: state
        entity_id: [valve.smart_timer_zone_1_zone, valve.smart_timer_zone_2_zone]
        to: ["unavailable", "unknown"]
        for: "01:00:00"
    actions:
      - action: notify.mobile_app_your_iphone
        data:
          title: "Sprinklers offline"
          message: "{{ trigger.to_state.name }} has been unavailable for over an hour. B-hyve may need a reload."
      - action: persistent_notification.create
        data:
          notification_id: sprinkler_offline
          title: "Sprinklers offline"
          message: "{{ trigger.to_state.name }} unavailable for over an hour."

  - id: sprinkler_alert_recovered
    alias: "Sprinkler alert - back online"
    mode: single
    triggers:
      - trigger: state
        entity_id: [valve.smart_timer_zone_1_zone, valve.smart_timer_zone_2_zone]
        from: ["unavailable", "unknown"]
    conditions:
      - "{{ trigger.to_state.state not in ['unavailable', 'unknown'] }}"
      - "{{ (now() - trigger.from_state.last_changed).total_seconds() >= 3600 }}"
    actions:
      - action: notify.mobile_app_your_iphone
        data:
          title: "Sprinklers back online"
          message: "{{ trigger.to_state.name }} is available again."
      - action: persistent_notification.dismiss
        data:
          notification_id: sprinkler_offline

  - id: sprinkler_alert_missed
    alias: "Sprinkler alert - missed scheduled watering"
    mode: queued
    triggers:
      - trigger: template
        id: "1"
        value_template: >
          {% set ns = state_attr('valve.smart_timer_zone_1_zone', 'next_start_time') %}
          {% set h = states('sensor.smart_timer_zone_1_zone_history') %}
          {{ ns is not none and now() > as_datetime(ns) + timedelta(hours=2)
             and (as_datetime(h) is none or as_datetime(h) < as_datetime(ns) - timedelta(minutes=10)) }}
      - trigger: template
        id: "2"
        value_template: >
          {% set ns = state_attr('valve.smart_timer_zone_2_zone', 'next_start_time') %}
          {% set h = states('sensor.smart_timer_zone_2_zone_history') %}
          {{ ns is not none and now() > as_datetime(ns) + timedelta(hours=2)
             and (as_datetime(h) is none or as_datetime(h) < as_datetime(ns) - timedelta(minutes=10)) }}
    actions:
      - variables:
          v: "valve.smart_timer_zone_{{ trigger.id }}_zone"
      - action: notify.mobile_app_your_iphone
        data:
          title: "Sprinkler missed watering"
          message: "{{ state_attr(v, 'friendly_name') }} missed its scheduled start."

  - id: sprinkler_alert_short_run
    alias: "Sprinkler alert - ran too short"
    mode: queued
    triggers:
      - trigger: state
        entity_id: [valve.smart_timer_zone_1_zone, valve.smart_timer_zone_2_zone]
        from: "open"
        to: "closed"
    conditions:
      - "{{ (trigger.to_state.last_changed - trigger.from_state.last_changed).total_seconds() < 180 }}"
    actions:
      - action: notify.mobile_app_your_iphone
        data:
          title: "Sprinkler ran too short"
          message: >
            {{ trigger.to_state.name }} turned off after only
            {{ (trigger.to_state.last_changed - trigger.from_state.last_changed).total_seconds() | int }} seconds.

The missed watering check reads next_start_time, an attribute the integration still sets on each zone valve, and compares it with that zone's history sensor.

An automations window listing Sprinkler alert offline 60 min, back online, missed scheduled watering, and ran too short, each with its trigger.
Four alerts, so a quiet cloud link does not mean a dry lawn.

7 Troubleshooting

Both zones show No Response

Check the zones in Home Assistant first. If they are unavailable there too, the B-hyve cloud link dropped. Reload the Orbit B-hyve integration from its entry in Devices & services. If the B-hyve app cannot reach the timer either, the problem is the timer's own connection, not Home Assistant.

A zone only runs for a fixed time

Opening a zone valve runs that zone for its default time. Set the time in the B-hyve app. Close the valve from Apple Home to stop early.

You want the tile to say sprinkler

The HomeKit Bridge can present a valve as faucet, shower, sprinkler, or valve. That is set with entity_config on a YAML bridge. After you change it, reset the accessory so the Home app picks up the new type.

configuration.yaml
homekit:
  - name: Sprinklers
    port: 21072
    filter:
      include_entities:
        - valve.smart_timer_zone_1_zone
        - valve.smart_timer_zone_2_zone
    entity_config:
      valve.smart_timer_zone_1_zone:
        type: sprinkler
      valve.smart_timer_zone_2_zone:
        type: sprinkler
A troubleshooting window with three rows: zones unavailable, reload B-hyve; runs a default time, set it in the B-hyve app; tile type, type sprinkler in YAML.
The three things that come up most.

Back to the guides Home

Comments

Loading comments…