You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can add the first (s01) station switch using the following code with-out issues, I can also change all the s01's in the code to s02's and it will turn on s02 on my system. I just can't seem to replicate the code to create all 8 station inputs. Any help in what the consecutive code would look like? Quite new at this.
I can add the first (s01) station switch using the following code with-out issues, I can also change all the s01's in the code to s02's and it will turn on s02 on my system. I just can't seem to replicate the code to create all 8 station inputs. Any help in what the consecutive code would look like? Quite new at this.
switch:
switches:
harris_irrigation_zone_1:
value_template: "{{ is_state('binary_sensor.s01_station_running', 'on') }}"
turn_on:
service: opensprinkler.run
data_template:
entity_id: binary_sensor.s01_station_running
# Run seconds uses the input_number below.
run_seconds: "{{ ((states('input_number.s01_station_minutes') | float) * 60) | int }}"
turn_off:
service: opensprinkler.stop
data:
entity_id: binary_sensor.s01_station_running
input_number:
s01_station_minutes:
initial: 1
min: 1
max: 10
step: 1
The text was updated successfully, but these errors were encountered: