Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#232: Initial valve implementation #240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion custom_components/bhyve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
extra=vol.ALLOW_EXTRA,
)

PLATFORMS: list[Platform] = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH]
PLATFORMS: list[Platform] = [
Platform.BINARY_SENSOR,
Platform.SENSOR,
Platform.SWITCH,
Platform.VALVE,
]


async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
Expand Down
12 changes: 6 additions & 6 deletions custom_components/bhyve/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ enable_rain_delay:
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"
hours:
description: Number of hours of rain delay
example: 24
Expand All @@ -13,14 +13,14 @@ disable_rain_delay:
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"

start_watering:
description: Start watering a zone
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"
minutes:
description: Number of minutes to water the zone
example: 15
Expand All @@ -30,14 +30,14 @@ stop_watering:
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"

set_manual_preset_runtime:
description: Set the manual preset runtime for a device entity
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"
minutes:
description: Number of minutes to set the preset runtime
example: 15
Expand All @@ -47,7 +47,7 @@ set_smart_watering_soil_moisture:
fields:
entity_id:
description: Zone
example: "switch.backyard_zone"
example: "valve.backyard_zone"
percentage:
description: Moisture level between 0 - 100 (percent)
example: 50
Expand Down
Loading
Loading