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

Action(s) by condition in automations

$
0
0

@anthosz wrote:

Hello all,

Could you tell me if this is possible to do action based on specific actions? I mean, do an action based on specific conditions and not all conditions without need t create a new automation scenario?

Example with my current scenario:

- id: '1572631476783'
  alias: Fermeture volets automatique
  description: Fermer les volets durant la nuit
  trigger:
  - below: '100'
    entity_id: sensor.illumination_xxxxxxxxxx
    for: '1200'
    platform: numeric_state
  condition:
  - after: '16:00:00'
    condition: time
  - condition: and
    conditions:
    - condition: or
      conditions:
      - condition: state
        entity_id: cover.volets_rdc
        state: open
      - condition: state
        entity_id: cover.volets_etage
        state: open
  action:
  - data:
      entity_id:
      - cover.volets_rdc
      - cover.volets_etage
    service: cover.close_cover

My goal is to close volets_rdc only if this group is open and close volets_etage only this one is open (without close the other group if this one is already closed)

I see that we can use condition in action but according to the documentation, if one condition is not true, all followed actions are stopped so we cannot use parallel conditions :frowning:

Thank you very much for your answers

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95576

Trending Articles



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