Skip to content

Instantly share code, notes, and snippets.

@infrat
infrat / automation.yaml
Created June 20, 2023 07:41
Turn off septic tank pump
description: "Turn off septic tank pump"
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.septic_tank_sensor01 # Jeżeli stan encji o id 'binary_sensor.septic_tank_sensor01' (tu użyj id Twojego presostatu)
from: "on" # zmieni się z on
to: "off" # na off
condition: []
action:
@infrat
infrat / automation.yaml
Last active June 20, 2023 07:41
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)