Skip to content

Instantly share code, notes, and snippets.

@infrat
Last active June 20, 2023 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infrat/6d46cb5cbffa51e80ca27f3ae04e86e7 to your computer and use it in GitHub Desktop.
Save infrat/6d46cb5cbffa51e80ca27f3ae04e86e7 to your computer and use it in GitHub Desktop.
Turn on septic tank pump
description: Turn on septic tank pump
mode: single
trigger:
- platform: time_pattern
minutes: /5 # Co 5 minut
hours: 22-23,0-5 # codziennie między 22 a 5:59
condition:
- condition: state
entity_id: binary_sensor.septic_tank_sensor01 # Sprawdź czy encja o id 'binary_sensor.septic_tank_sensor01' (tu użyj id Twojego presostatu)
state: "on" # Ma stan "on" (czyli presostat wskazuje wysoki stan w zbiorniku)
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.septic_tank_pump01 # Załącz encję o id 'switch.septic_tank_pump01' (tu użyj id Twojej pompki)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment