find some happiness

This commit is contained in:
CeeWeasel
2025-07-27 00:05:44 -04:00
parent 2de52ba298
commit 029babc976
21 changed files with 197 additions and 1012 deletions
+18 -18
View File
@@ -7,13 +7,13 @@ switch:
value_template: "{{ is_state('binary_sensor.front_yard_station_running', 'on') }}"
icon_template: mdi:sprinkler
turn_on:
service: opensprinkler.run
action: opensprinkler.run
data_template:
entity_id: binary_sensor.front_yard_station_running
# Run seconds uses the input_number below.
run_seconds: "{{ ((states('input_number.front_yard_station_minutes') | float) * 60) | int }}"
turn_off:
service: opensprinkler.stop
action: opensprinkler.stop
data:
entity_id: binary_sensor.front_yard_station_running
@@ -23,13 +23,13 @@ switch:
value_template: "{{ is_state('binary_sensor.east_side_station_running', 'on') }}"
icon_template: mdi:sprinkler
turn_on:
service: opensprinkler.run
action: opensprinkler.run
data_template:
entity_id: binary_sensor.east_side_station_running
# Run seconds uses the input_number below.
run_seconds: "{{ ((states('input_number.east_side_station_minutes') | float) * 60) | int }}"
turn_off:
service: opensprinkler.stop
action: opensprinkler.stop
data:
entity_id: binary_sensor.east_side_station_running
@@ -39,13 +39,13 @@ switch:
value_template: "{{ is_state('binary_sensor.back_yard_station_running', 'on') }}"
icon_template: mdi:sprinkler
turn_on:
service: opensprinkler.run
action: opensprinkler.run
data_template:
entity_id: binary_sensor.back_yard_station_running
# Run seconds uses the input_number below.
run_seconds: "{{ ((states('input_number.back_yard_station_minutes') | float) * 60) | int }}"
turn_off:
service: opensprinkler.stop
action: opensprinkler.stop
data:
entity_id: binary_sensor.back_yard_station_running
@@ -55,13 +55,13 @@ switch:
value_template: "{{ is_state('binary_sensor.west_side_station_running', 'on') }}"
icon_template: mdi:sprinkler
turn_on:
service: opensprinkler.run
action: opensprinkler.run
data_template:
entity_id: binary_sensor.west_side_station_running
# Run seconds uses the input_number below.
run_seconds: "{{ ((states('input_number.west_side_station_minutes') | float) * 60) | int }}"
turn_off:
service: opensprinkler.stop
action: opensprinkler.stop
data:
entity_id: binary_sensor.west_side_station_running
@@ -135,36 +135,36 @@ automation:
mode: queued
trigger:
- id: 5_minute_test_program_enabled
platform: state
trigger: state
entity_id: input_button.5_minute_test
- id: front_yard_fun_program_enabled
platform: state
trigger: state
entity_id: input_button.front_yard_fun
- id: back_yard_fun_program_enabled
platform: state
trigger: state
entity_id: input_button.back_yard_fun
- id: evening_program_enabled
platform: state
trigger: state
entity_id: input_button.evening_program
- id: morning_program_enabled
platform: state
trigger: state
entity_id: input_button.morning_program
- id: full_run_program_enabled
platform: state
trigger: state
entity_id: input_button.full_run_program
- id: automatic_run_program_enabled
platform: state
trigger: state
entity_id: input_button.automatic_run_program
condition: []
action:
- service: opensprinkler.run
- action: opensprinkler.run
data:
entity_id: "switch.{{ trigger.id }}"
@@ -176,12 +176,12 @@ automation:
mode: queued
trigger:
- id: opensprinkler_enabled
platform: state
trigger: state
entity_id: input_button.stop_all_sprinklers
condition: []
action:
- service: opensprinkler.stop
- action: opensprinkler.stop
data:
entity_id: "switch.{{ trigger.id }}"