mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
find some happiness
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user