[Solved] Homematic and transition times of dimmer (ramp time)

I have the following automation in Home Assistant, that worked flawlessly until around October / November 2022:

alias: "WakeUp: Bedroom"
description: ""
trigger:
  - platform: time
    at: "05:25:00"
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: binary_sensor.workday
        state: "on"
      - condition: state
        entity_id: switch.sonos_alarm_163
        state: "on"
action:
  - service: light.turn_on
    data:
      transition: 900
      brightness_pct: 55
    alias: Ramp up lamp to 55% in 15 minutes
    target:
      device_id: **redacted device id**
mode: single

The problem is now, that this works only about 10% of the time. In other words, the lamp goes direct to level 55% (no ramping up).

On some mornings (maybe a combination of sun and moon positions :thinking:) it works, and the lamp ramps up over the period of 15 minutes from level 0% to 55%.

When the lamp was turned on by this automation, I can issue an Alexa command to turn it of, and the lamp ramps down over these 15 minutes !! To me, it looks like an issue with the Homematic(IP) Local integration …

Why ?
:flushed:

Hardware/Software versions:
RaspberryMatic 3.67.10.20230225 on ELV-Charly
Homematic HM-LC-Dim1TPBU-FM with firmware 2.9
Homematic(IP) Local 1.34.1

Home Assistant 2023.4.6
Supervisor 2023.04.0
Operating System 10.0
Frontend 20230411.1 - latest

Really no one knows ?

Finally, I found the solution to my question above :crazy_face:

The ramp time has to be separated from the brightness setting!
Thus there are two calls to be made in the action block.
First the ‘set_device_value’ function, and directly afterwards the command to turn on the light

alias: "WakeUp: Bedroom"
description: ""
trigger:
  - platform: time
    at: "05:25:00"
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: binary_sensor.workday
        state: "on"
      - condition: state
        entity_id: switch.sonos_alarm_163
        state: "on"
action:
  - service: homematicip_local.set_device_value
    data:
      device_id: **redacted device id**
      channel: 1
      parameter: RAMP_TIME
      value: "900"
      value_type: int
  - service: light.turn_on
    data:
      brightness_pct: 55
    target:
      device_id: **redacted device id**
mode: single

Here the same as a picture

1 Like