mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
switch:
|
||||
- platform: template
|
||||
switches:
|
||||
front_yard_station:
|
||||
friendly_name: Front Yard Station
|
||||
unique_id: template_switch.front_yard_station
|
||||
value_template: "{{ is_state('binary_sensor.front_yard_station_running', 'on') }}"
|
||||
icon_template: mdi:sprinkler
|
||||
turn_on:
|
||||
service: 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
|
||||
data:
|
||||
entity_id: binary_sensor.front_yard_station_running
|
||||
|
||||
east_side_station:
|
||||
friendly_name: East Side Station
|
||||
unique_id: template_switch.east_side_station
|
||||
value_template: "{{ is_state('binary_sensor.east_side_station_running', 'on') }}"
|
||||
icon_template: mdi:sprinkler
|
||||
turn_on:
|
||||
service: 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
|
||||
data:
|
||||
entity_id: binary_sensor.east_side_station_running
|
||||
|
||||
back_yard_station:
|
||||
friendly_name: Back Yard Station
|
||||
unique_id: template_switch.back_yard_station
|
||||
value_template: "{{ is_state('binary_sensor.back_yard_station_running', 'on') }}"
|
||||
icon_template: mdi:sprinkler
|
||||
turn_on:
|
||||
service: 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
|
||||
data:
|
||||
entity_id: binary_sensor.back_yard_station_running
|
||||
|
||||
west_side_station:
|
||||
friendly_name: West Side Station
|
||||
unique_id: template_switch.west_side_station
|
||||
value_template: "{{ is_state('binary_sensor.west_side_station_running', 'on') }}"
|
||||
icon_template: mdi:sprinkler
|
||||
turn_on:
|
||||
service: 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
|
||||
data:
|
||||
entity_id: binary_sensor.west_side_station_running
|
||||
|
||||
input_number:
|
||||
front_yard_station_minutes:
|
||||
name: Front Yard Station Minutes
|
||||
icon: mdi:sprinkler-variant
|
||||
min: 0
|
||||
max: 60
|
||||
step: 1
|
||||
|
||||
east_side_station_minutes:
|
||||
name: East Side Station Minutes
|
||||
icon: mdi:sprinkler-variant
|
||||
min: 0
|
||||
max: 60
|
||||
step: 1
|
||||
|
||||
back_yard_station_minutes:
|
||||
name: Back Yard Station Minutes
|
||||
icon: mdi:sprinkler-variant
|
||||
min: 0
|
||||
max: 60
|
||||
step: 1
|
||||
|
||||
west_side_station_minutes:
|
||||
name: West Side Station Minutes
|
||||
icon: mdi:sprinkler-variant
|
||||
min: 0
|
||||
max: 60
|
||||
step: 1
|
||||
|
||||
input_button:
|
||||
# PTZ Controls
|
||||
5_minute_test:
|
||||
name: Run 5 Minute Test
|
||||
icon: mdi:sprinkler
|
||||
|
||||
front_yard_fun:
|
||||
name: Run Front Yard Fun
|
||||
icon: mdi:sprinkler
|
||||
|
||||
back_yard_fun:
|
||||
name: Run Back Yard Fun
|
||||
icon: mdi:sprinkler
|
||||
|
||||
evening_program:
|
||||
name: Run Evening Program
|
||||
icon: mdi:sprinkler
|
||||
|
||||
morning_program:
|
||||
name: Run Morning Program
|
||||
icon: mdi:sprinkler
|
||||
|
||||
full_run_program:
|
||||
name: Run Full run Program
|
||||
icon: mdi:sprinkler
|
||||
|
||||
automatic_run_program:
|
||||
name: Run Automatic Run Program
|
||||
icon: mdi:sprinkler
|
||||
|
||||
stop_all_sprinklers:
|
||||
name: Stop All Sprinklers
|
||||
icon: mdi:sprinkler
|
||||
|
||||
|
||||
automation:
|
||||
- id: automation_opensprinkler_program_buttons
|
||||
alias: OpenSprinkler Program Buttons
|
||||
mode: queued
|
||||
trigger:
|
||||
- id: 5_minute_test_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.5_minute_test
|
||||
|
||||
- id: front_yard_fun_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.front_yard_fun
|
||||
|
||||
- id: back_yard_fun_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.back_yard_fun
|
||||
|
||||
- id: evening_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.evening_program
|
||||
|
||||
- id: morning_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.morning_program
|
||||
|
||||
- id: full_run_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.full_run
|
||||
|
||||
- id: automatic_run_program_enabled
|
||||
platform: state
|
||||
entity_id: input_button.automatic_run_program
|
||||
|
||||
condition: []
|
||||
action:
|
||||
- service: opensprinkler.run
|
||||
data:
|
||||
entity_id: "switch.{{ trigger.id }}"
|
||||
|
||||
- delay: '00:00:01'
|
||||
|
||||
|
||||
- id: automation_opensprinkler_stop_all_sprinklers
|
||||
alias: OpenSprinkler Stop All Sprinklers
|
||||
mode: queued
|
||||
trigger:
|
||||
- id: opensprinkler_enabled
|
||||
platform: state
|
||||
entity_id: input_button.stop_all_sprinklers
|
||||
|
||||
condition: []
|
||||
action:
|
||||
- service: opensprinkler.stop
|
||||
data:
|
||||
entity_id: "switch.{{ trigger.id }}"
|
||||
|
||||
- delay: '00:00:01'
|
||||
Reference in New Issue
Block a user