Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esp8266:
- board: esp12e # d1_mini, esp01_1m, d1_mini_pro, esp12e/esp07s (8 relays)
- restore_from_flash: true
- # Enable logging
- logger:
- mqtt:
- broker: !secret mqtt_broker
- port: !secret mqtt_port
- username: !secret mqtt_username
- password: !secret mqtt_password
- discovery_unique_id_generator: mac
- # relays: (H - high at boot: 1+6 at reset, 1+3+4+6 at boot)
- # 1 H - main OFF
- # 2 - - main ON
- # 3 H - terrace
- # 4 H - greenhouse
- # 5 - - ?
- # 6 H - ?
- # 7 - - ? heating for pipe under terrace
- # 8 - - ? heating for water dispenser for cats
- switch:
- - platform: gpio
- pin: GPIO16 # high at boot ----> use for OFF
- name: "R1 - Zawór główny OFF" # pump / main OFF
- id: relay1_main_off
- inverted: false
- icon: mdi:pipe-valve
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO14
- name: "R2 - Zawór główny ON" # pump / main ON
- id: relay2_main_on
- inverted: false
- icon: mdi:pipe-valve
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO12 # high at boot
- name: "R3 - Zawór taras" # Valve 1 - terrace
- id: relay3_valve_terrace
- inverted: false
- icon: mdi:sprinkler
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO13 # high at boot
- name: "R4 - Zawór szklarnia" # Valve 2 - greenhouse
- id: relay4_valve_greenhouse
- inverted: false
- icon: mdi:sprinkler
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO15 # ?
- name: "R5 - ?"
- id: relay5
- icon: mdi:deactivated
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO00 # high at boot
- name: "R6 - ?" # ?
- id: relay6
- icon: mdi:deactivated
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO04
- name: "R7 - ?" # ? heating for pipe under terrace
- id: relay7
- icon: mdi:heating
- restore_mode: ALWAYS_OFF
- - platform: gpio
- pin: GPIO05
- name: "R8 - ?" # ? heating for water dispenser for cats
- id: relay8
- icon: mdi:radiator
- restore_mode: ALWAYS_OFF
- # wirtualny, razem: Relay3 i Relay4
- - platform: template
- name: "TEMP Wszystkie zawory do podlewania"
- id: drain_the_system
- icon: mdi:pipe-leak
- restore_mode: ALWAYS_OFF
- lambda: |-
- return id(relay3_valve_terrace).state && id(relay4_valve_greenhouse).state;
- turn_on_action:
- - switch.turn_on: relay3_valve_terrace
- - switch.turn_on: relay4_valve_greenhouse
- turn_off_action:
- - switch.turn_off: relay3_valve_terrace
- - switch.turn_off: relay4_valve_greenhouse
- sprinkler:
- - id: sprinkler_ctrlr
- main_switch: "Uruchom podlewanie - taras i szklarnia"
- auto_advance_switch: "Auto podlewaj kolejne sekcje"
- pump_start_pump_delay: 1sec # The delay in seconds from when a distribution valve is opened to when the associated pump is activated.
- pump_stop_valve_delay: 5sec # The delay in seconds from when a pump is deactivated to when the respective distribution valve is closed.
- pump_pulse_duration: 12sec # (singal to open/close the valve) The minimum length of the pulse generated to operate a pump in milliseconds.
- valve_overlap: 5sec
- # queue_enable_switch: "Lawn Sprinklers Queue Enable"
- # reverse_switch: "Lawn Sprinklers Reverse"
- standby_switch: "Nie uruchamiaj podlewania"
- repeat_number:
- name: "Liczba powtórzeń"
- initial_value: 0
- min_value: 0
- max_value: 10
- valves:
- - valve_switch: "Podlej taras"
- enable_switch: "Włącz podlewanie tarasu"
- pump_on_switch_id: relay2_main_on
- pump_off_switch_id: relay1_main_off
- valve_switch_id: relay3_valve_terrace
- run_duration_number:
- id: taras_run_duration
- name: "Czas podlewania tarasu"
- unit_of_measurement: min
- initial_value: 10
- min_value: 1
- step: 1
- max_value: 15
- restore_value: true # to/from flash
- retain: true # to/from MQTT
- - valve_switch: "Podlej szklarnię"
- enable_switch: "Włącz podlewanie szklarni"
- pump_on_switch_id: relay2_main_on
- pump_off_switch_id: relay1_main_off
- valve_switch_id: relay4_valve_greenhouse
- run_duration_number:
- id: szklarnia_run_duration
- name: "Czas podlewania szklarni"
- unit_of_measurement: min
- initial_value: 10
- min_value: 1
- step: 1
- max_value: 15
- restore_value: true # to/from flash
- retain: true # to/from MQTT
- # - valve_switch: "Zakończ podlewanie"
- # enable_switch: "Auto zakończ podlewanie"
- # # pump_on_switch_id: relay1_main_off # off, not opening anythin
- # # pump_off_switch_id: relay1_main_off # off, not opening anythin
- # valve_switch_id: drain_the_system
- # run_duration: 15sec
- - id: draining_ctrlr
- # main_switch: "Uruchom spuszczanie wody"
- standby_switch: "Nie spuszczaj wody"
- valves:
- - valve_switch: "Spuść wodę"
- valve_switch_id: drain_the_system
- run_duration: 15sec
- # end of file
Advertisement
Add Comment
Please, Sign In to add comment