Skip to content

Commit

Permalink
#232: Initial valve implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr committed Apr 23, 2024
1 parent af01bb7 commit cc6e9c4
Show file tree
Hide file tree
Showing 7 changed files with 564 additions and 423 deletions.
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

0 comments on commit cc6e9c4

Please sign in to comment.