Homematic Aktor "on-for-timer"

HI! Genau vor dem selben “Prpblem” stand ich auch…

Bei HA funkiotniert es andersherum als bei FHEM.

Mit HA, sagst du dem Aktor zuerst wie lange der Timer laufen soll und dann schaltest du ihn ein…

Schau mal hier. :wink:

Homematic OnForTimer

Hier als GUI Automation:

Und hier als Code:

if:
  - condition: trigger
    id:
      - Tor geöffnet
  - condition: state
    entity_id: binary_sensor.8ksensorbueroip_sensor_2_torip_ch2
    state: "on"
  - condition: numeric_state
    entity_id: sensor.hmip_slo_000d5be9a4defd_durchschnittliche_beleuchtungsstarke
    below: 20
  - condition: device
    type: is_off
    device_id: 2f0c60d0b95a95b0d6e886c629360375
    entity_id: db9e77a3cc6fe3044356dcd881e201ac
    domain: switch
then:
  - action: homematicip_local.switch_set_on_time
    metadata: {}
    data:
      on_time: 120
    target:
      entity_id: switch.hmip_mod_oc8_000d20c9af563e_ch14
  - type: turn_on
    device_id: 2f0c60d0b95a95b0d6e886c629360375
    entity_id: db9e77a3cc6fe3044356dcd881e201ac
    domain: switch
alias: Gartenfluter EIN/AUS