Skip to content

Commit

Permalink
Add bhyve.start_program docs to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr committed Jan 11, 2023
1 parent f0e40a1 commit 36d87b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ This integration provides the following services:
| `bhyve.disable_rain_delay` | `entity_id` - device to enable a rain delay. This can reference either a zone or rain delay switch | Cancel a rain delay on a given device |
| `bhyve.set_manual_preset_runtime` | `entity_id` - zone(s) entity to set the preset runtime. This should be a reference to a zone switch entity <br/> `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 under which conditions it works |
| `bhyve.set_smart_watering_soil_moisture` | `entity_id` - zone(s) entity to set the moisture level for. This should be a reference to a zone switch entity <br/> `percentage` - soil moisture level between 0 - 100 | Set Smart Watering soil moisture level for a zone |
| `bhyve.start_program` | `entity_id` - program entity to start. This should be a reference to a program switch entity | Starts 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

Expand Down
1 change: 1 addition & 0 deletions custom_components/bhyve/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ async def start_watering(self, minutes):
station_payload = [{"station": self._zone_id, "run_time": minutes}]
self._is_on = True
await self._send_station_message(station_payload)

async def stop_watering(self):
"""Turns off the switch and stops watering."""
station_payload = []
Expand Down

0 comments on commit 36d87b5

Please sign in to comment.