Running pump on a time schedule

Hi everybody, I like to run my aquaponic pump on a specific time for an hour. Switching on works but switching off does not work and I am stuck finding the problem. My config:

alias: Aquaponic Timer An
  description: ''
  trigger:
  - platform: time
    at: 05:00:00
  - platform: time
    at: '15:00:00'
  - platform: time
    at: '18:00:00'
  - platform: time
    at: '21:00:00'
  condition:
  - condition: state
    entity_id: input_boolean.automation_aquaponic_terrasse
    state: 'off'
  action:
  - service: switch.turn_on
    data: {}
    entity_id: switch.tasmota
  mode: single
- id: '1611102643259'
  alias: Aquaponic Timer Aus
  description: ''
  trigger:
  - platform: state
    entity_id: switch.tasmota
    for: '1:00:00'
    to: 'on'
  condition:
  - condition: state
    entity_id: input_boolean.automation_aquaponic_terrasse
    state: 'on'
  action:
  - service: switch.turn_off
    data: {}
    entity_id: switch.tasmota
  mode: single

Pump is running on Sonoff Pow R2 Module flashed with Tasmota 9.2.0. Any idea what could be wrong? Thanks for some help. Tom

Looks ok to me. Is input_boolean.automation_aquaponic_terrasse actually on?

This is how the switch looks like after switching on by automation

You have this input_boolean.automation_aquaponic_terrasse as condition in both automations, how is that set? Not the switch.

1 Like