Light dimming for a Blebox Dimmer

Hi

I try to automate my Blebox dimmer. As far as I can tell it uses the standard lights integration.
So far I tried (inspired by: Service Calls - Home Assistant) the following in my /config/automations.yaml file:

- id: '1630341148432'
  alias: Sunset Andreas Bedroom
  description: ''
  trigger:
  - platform: time
    at: '12:41'
  condition: []
  action:
    service: light.turn_on
    entity_id:: light.dimmer_andreas_bedroom_dimmerbox_brightness
    brightness_pct: 50
  mode: single

I also looked at another automation generated by the gui:

- id: '1630183855496'
  alias: Shut of lights "Werkstatt Ost"
  description: ''
  trigger:
  - platform: time
    at: 01:00
  condition: []
  action:
  - type: turn_off
    device_id: 2f45e97c37e701d458e0e5e900d98590
    entity_id: switch.licht_werkstatt_ost
    domain: switch
  mode: single

And I tried:

- id: '1630341148432'
  alias: Sunset Andreas Bedroom
  description: ''
  trigger:
  - platform: time
    at: '12:53'
  condition: []
  action:
  - type: turn_on
    entity_id: light.dimmer_andreas_bedroom_dimmerbox_brightness
    domain: light
  mode: single

Which did not work either (missing device id? Where would I find it?).

It should be possible to dim the light from 0-100% since the lovelace slider allows this as well. But I cant figure out how to specify this in the yaml file.

Can you try this?

action:
  - service: light.turn_on
    data:
      brightness: 120
    target:
      entity_id: light.dimmer_andreas_bedroom_dimmerbox_brightness

OR

action:
  - service: light.turn_on
    data:
      brightness_pct: 26
    target:
      entity_id: light.dimmer_andreas_bedroom_dimmerbox_brightness

Wow, that was quick. Thank you!

I noticed that I had the time in quote marks. The ui generated automations had no quotemarks, so I tried that with your first example. No change. Then I went back to the automation ui and I had now the light.turn_on functionality to choose from, I saved it and it generated:

- id: '1630341148432'
  alias: Sunset Andreas Bedroom
  description: ''
  trigger:
  - platform: time
    at: '13:17'
  condition: []
  action:
  - service: light.turn_on
    data:
      brightness_pct: 17
    target:
      entity_id: light.dimmer_andreas_bedroom_dimmerbox_brightness
  mode: single

Which works. Yayyy!!!

(Note that the time now has single quotemarks. I found documentation which called for full quotemarks, some gui generated automations had no quotmarks at all. A bit of a mess?)

This is from UI Automation Editor-


The UI automatically generate the '.

I just generated via the ui. No quote marks…

- id: '1630495958372'
  alias: Turn off the Lights
  description: ''
  trigger:
  - platform: time
    at: 00:00
  condition: []
  action:
  - type: turn_off
    device_id: 2f...
    entity_id: switch.licht_werkstatt_ost
    domain: switch
  mode: single