Open sisaacrussell opened 2 weeks ago
Use an automation that tracks the zone sensor. Something like the following (this has not been tested!).
automation:
- alias: 'Zone 1 bhyve'
description: Turn on bhyve valve
trigger:
- platform: state
entity_id:
- binary_sensor.irrigation_unlimited_c1_z1
from: "off"
to: "on"
condition: []
action:
- service: |-
action: bhyve.start_watering
data:
entity_id: switch.bhyve_c2_z1
minutes: "{{ as_timedelta(state_attr('binary_sensor.irrigation_unlimited_c1_z1', 'current_duration')).total_seconds / 60 }}"
mode: single
Version of the custom_component
2024.8.0
Configuration
Describe the bug
When running a sequence, Irrigation Unlimited will turn on the zone switch, but doesn't set a run time with the bhyve service. This then defaults to the switch's
manual_preset_runtime
which is 300s by default. This, in effect, limits Irrigation Unlimited from running any zone longer than 5 minutes. The correct way, to call the bhyve zones is using thestart_watering
services as below. This will start a manual run with the minutes specified instead of the default 300s. Any ideas on how to get Irrigation Unlimited to play nicely with this type of switch setup?Debug log
irrigation_unlimited Logs:
bhyve Logs: