Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Orbit BHyve custom component for Home Assistant

License

NotificationsYou must be signed in to change notification settings

sebr/bhyve-home-assistant

Repository files navigation

Orbit B-hyve component forHome Assistant.

If this integration has been useful to you, please consider chipping in and buying me a coffee!

Buy Me A Coffee

Supported Devices

This integration works with:

Faucet / Tap / Sprinkler controllers

The following controllers have been verified as compatible with this integration, either by the author or members of the community. By virtue that this is an unofficial project which is not supported by the company, there is no guarantee of continued compatibility for current or future devices.

Note: The Wifi hub is required to provide the faucet controllers with internet connectivity.

Flood sensors

Note: The Wifi hub is required to provide the flood sensors with internet connectivity.

Supported Entities

  • sensor for measuring battery levels and watering history ofsprinkler_timer devices as well as the device on/off state (not to be confused with zone on/off switches).
  • temperature sensor for measuring the temperature at the device.
  • switch for turning a zone on/off, enabling/disabling rain delays and toggling pre-configured programs.
  • binary_sensor forflood_sensor devices which provide liquid detection and temperature alerts when out of threshold.

Installation

Recommended installation is via theHome Assistant Community Store (HACS).hacs_badge

1. Install via HACS

If you do not wish to use HACS, then please download the latest version from thereleases page and proceed to Step 2.

  1. Navigate to the HACS add-on
  2. Search for theOrbit B-hyve integration and install it
  3. Restart Home Assistant

Install B-hyve from HACS

2. Configure via Home Assistant

  1. Navigate to Home Assistant Settings > Devices & Services
  2. Click+ Add Integration
  3. Search forOrbit B-hyve
  4. Complete the guided configuration

Configure B-hyve from Home Assistant

Help

Some common errors in set up include:

  • Assuming that installing the integration via HACS is all that is required - it still needs to be configured!
  • Not restarting Home Assistant after installing the integraion via HACS

Sensor Entities

Device Battery Sensor

Abatterysensor entity is created for any device which has a battery level to report.

Device State sensor

Adevice statesensor entity is created for each device. This reports the state of the device, for exampleauto oroff. A device may be switched tooff either manually through the B-hyve app, or may be automatically set when battery levels are too low to operate the device correctly.

Zone Watering History sensor

Azone historysensor entity is created for each zone. This reports the history of zone watering.

The following attributes are set on zone history sensor entities:

AttributeTypeNotes
budgetnumberThe watering budget used.
programstringThe program letter which triggered the watering event.
program_namestringThe name of the program which triggered the watering event.
run_timenumberThe number of minutes the watering was active.
statusstringThe watering status.
consumption_gallonsnumberThe amount of water consumed, in gallons.
consumption_litresnumberThe amount of water consumed, in litres.
start_timestringThe start time of the watering.

Binary Sensor Entities

The BHyve flood sensor provides the followingbinary_sensor entities:

Water/Flood

Abinary_sensor that turns on if water is detected.

Temperature Alert

Abinary_sensor that turns on if the detected temperature is over or under the set threshold. The threshold values should be set using the BHyve app.

Switch Entities

Zone Switch

Azoneswitch entity is created for each zone of asprinkler_timer device. This switch enables starting/stopping irrigation of a zone. Turning on the switch will enable watering of the zone for a "default" amount of time.

This default is often indicated by themanual_preset_runtime attribute, and this can be set using theset_manual_preset_runtime service or configured in the B-hyve app.

Note

Some BHyve devices do not have the ability to set the default watering time, and it is recommended that you use thebhyve.start_watering service to start the watering zone with the desired number of minutes.

The following attributes are set on zone switch entities:

AttributeTypeNotes
zone_namestringThe name of the zone
device_idstringThe id of the device which this zone belongs to
device_namestringThe name of the device which this zone belongs to
manual_preset_runtimenumberThe number of seconds to run zone watering when switch is turned on.
smart_watering_enabledbooleanTrue if the zone has a smart water schedule enabled.
sprinkler_typestringThe configured type of sprinker.
image_urlstringThe url to zone image.
started_watering_station_atstringThe timestamp the zone started watering.
program_xobjectProvides details on any configured watering programs for the given switch.
program_e[watering_program]list[string]List of timestamps for future/scheduled watering times.

Only applicable if a Smart Watering program is enabled. Any rain delays or other custom programs must be considered separately.

program_x attribute

Any watering programs which are configured for a zone switch are made available as an attribute. TheX denotes the letter of the program slot. ValuesA,B andC are well known custom slots. ProgramE is reserved for the Smart Watering plan. SlotD does not have a known use at this stage.

Please seeprogram switches below for more details.

Rain Delay Switch

Arain delayswitch entity is created for each discoveredsprinkler_timer device. This entity will beon whenever B-hyve reports that a device's watering schedule will be delayed due to weather conditions.

Enabling the switch will set a 24 hour rain delay on the device — for a custom rain delay, please use theenable_rain_delay service.

The following attributes are set onswitch.*_rain_delay entities, if the sensor is on:

AttributeTypeNotes
causestringWhy a delay was put in place. Values seen:auto. May be empty.
delaynumberThe number of hours the delay is in place. NB: This is hours fromstarted_at attribute.
weather_typestringThe reported cause of the weather delay. Values seen:wind,rain. May be empty.
started_atstringThe timestamp the delay was put in place.

Program Switch

Aprogramswitch entity is created for each program attached to each zone. These switches can be switched on or off. They can be configured using the official B-hyve app.

AttributeTypeNotes
device_idstringThe id of the device which this zone belongs to.
is_smart_programbooleanTrue if this is aSmart Watering program.
start_timesstringConfigured start time for the program.
frequencyobjectWatering schedule configuration.
frequency.typestringType of configuration.days is the only known value.
frequency.dayslist[int]Configured days for watering.0 is Sunday,1 is Monday etc...
run_timeslist[object]Configured watering run times.
run_times[].run_timeintMinutes of watering.
run_times[].stationintZone id to water.

Not available onSmart Watering programs

Services

This integration provides the following services:

ServiceParametersDescription
bhyve.start_wateringentity_id - zone(s) entity to start watering. This should be a reference to a zone switch entity
minutes - number of minutes to water for
Start watering a zone for a specific number of minutes
bhyve.stop_wateringentity_id - zone(s) entity to stop watering. This should be a reference to a zone switch entityStop watering a zone
bhyve.enable_rain_delayentity_id - device to enable a rain delay. This can reference either a zone or rain delay switch
hours - number of hours to enable a rain delay
Enable a rain delay for a device for a specified number of hours
bhyve.disable_rain_delayentity_id - device to enable a rain delay. This can reference either a zone or rain delay switchCancel a rain delay on a given device
bhyve.set_manual_preset_runtimeentity_id - zone(s) entity to set the preset runtime. This should be a reference to a zone switch entity
minutes - number of minutes to water for
Set the default time a switch is activated for when enabled. Support for this service appears to be patchy, and it has been difficult to identify the devices or under which conditions it works
bhyve.set_smart_watering_soil_moistureentity_id - zone(s) entity to set the moisture level for. This should be a reference to a zone switch entity
percentage - soil moisture level between 0 - 100
Set Smart Watering soil moisture level for a zone
bhyve.start_programentity_id - program entity to start. This should be a reference to a program switch entityStarts a pre-configured watering program. Watering programs cannot be created nor configured via this integration, and require the B-Hyve app to create or modify

Python Script

Caution

These scripts are expermintal and not supported. YMMV and any support issues will be closed as won't fix.

Bundled in this repository is apython_script which calculates a device's next watering time and when a rain delay is scheduled to finish.

Note: HACS does not install the script automatically and they must be added manually to your HA instance.

Scripts

Calculates:

  1. When the next scheduled watering is for a zone by considering all enabled watering programs
  2. When a device's active rain delay will finish, orNone if there is no active delay

This script creates or updates entities namedsensor.{zone_name}_next_watering andsensor.{device_name}_rain_delay_finishing.

Usage:

service:python_script.bhyve_next_wateringdata:entity_id:switch.backyard_zone
ArgumentTypeRequiredNotes
entity_idstringTrueThe entity id for a zone switch.

Automation

Hook these scripts up to automations to update as required:

automation:  -alias:B-hyve next watering & rain delay finishing updatertrigger:      -platform:stateentity_id:switch.backyard_zone, switch.rain_delay_lawn      -platform:homeassistantevent:startaction:      -service:python_script.bhyve_next_wateringdata:entity_id:switch.backyard_zone

Debugging

To debug this integration and provide device integration for future improvements, please enable debugging in Home Assistant'sconfiguration.yaml

logger:logs:custom_components.bhyve:debugpybhyve:debug

About

Orbit BHyve custom component for Home Assistant

Topics

Resources

License

Stars

Watchers

Forks

Contributors18


[8]ページ先頭

©2009-2025 Movatter.jp