A combo of 2 automation

There are many different ways to accomplish this…


Since the action sequences are exactly the same except for the position values, I would probably go a slightly different route and use trigger-attached variables. These are variables that are defined at each individual trigger and only apply when that trigger is what starts the automation.

alias: Lamellen 46
description: Lamellen 46
triggers:
  - at: "06:00:00"
    trigger: time
    variables:
      f6: 28
      db: 53
  - event: sunset
    trigger: sun
    variables:
      f6: 4
      db: 2
conditions: []
actions:
  - metadata: {}
    data:
      position: "{{f6}}"
    target:
      device_id: f61a85f8547c400d148e5da0a720a512
    action: cover.set_cover_position
  - metadata: {}
    data:
      position: "{{db}}"
    target:
      device_id: db31dc91cd29ddb3943331b60c208bf0
    action: cover.set_cover_position
mode: single
2 Likes