Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95468

Condition for minium of time

$
0
0

@Griesi wrote:

Hello HA world,
I’m looking for a condition function to have a state for a minimum of time. I hope someone of you could help me. :grinning:
My Idea is something like this:

  - alias: "test"
    trigger:
      - platform: time_pattern
        minutes: '/7'
    condition:
      - condition: and
        conditions:
        - condition: template
          value_template: '{{ states.cover.room1.attributes.current_position > 70 }}'
          for:
            minutes: >10  # that my issue!  > time of state
    action:
      - service_template: input_boolean.on
        entity_id: input_boolean.test2

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>