config files on 28-11-2023 12:46:43

This commit is contained in:
2023-11-28 12:46:43 +01:00
parent 9cc6076da0
commit 423d32fada
101 changed files with 167879 additions and 3008 deletions

View File

@@ -27,6 +27,7 @@ switch:
pin: ${pin_motor}
name: "Valve"
icon: mdi:pipe-valve
internal: true
binary_sensor:
- platform: gpio
@@ -36,4 +37,31 @@ binary_sensor:
min_length: 50ms
max_length: 1000ms
then:
- switch.toggle: valveMotor
- sprinkler.start_full_cycle: tuin_sprinkler_ctrlr
on_double_click:
then:
- sprinkler.shutdown: tuin_sprinkler_ctrlr
sprinkler:
- id: tuin_sprinkler_ctrlr
multiplier_number: "Herhaling"
valves:
- valve_switch: "hoofd klep"
run_duration_number: "hoofd klep timer"
valve_switch_id: valveMotor
sensor:
- platform: template
name: "Resterende tijd"
lambda: |-
if (id(tuin_sprinkler_ctrlr).time_remaining_active_valve().has_value()) {
// the controller is running, print the number of seconds remaining
return id(tuin_sprinkler_ctrlr).time_remaining_active_valve().value();
} else {
// the controller is NOT running
return 0;
}
unit_of_measurement: s
accuracy_decimals: 0
device_class: "duration"
update_interval: 1s