How to automatically set scene without applying it

Hi all,

I have the following automation (working fine, setting the brightness of some lights to 30 % and turn them on, using a qubino z-wave din dimmer)

- id: '1573565345132'
  alias: Licht Flur OG morgens
  description: ''
  trigger:
  - at: '5:40'
    platform: time
  condition:
  - condition: time
    weekday:
    - mon
    - tue
    - wed
    - thu
    - fri
  action:
  - data:
      entity: scene.flur_og_morgen
    service: scene.turn_on

Now I would like to set the brightness back to 100% the next time the dimmer is triggered by a monostable switch.

What I have here is

- id: '1573574013038'
  alias: Dimmer Flur OG
  description: ''
  trigger:
  - device_id: 6c470383fba24bc49da94f28fc6dd5c2
    domain: switch
    entity_id: switch.qubino_goap_zmnhsdx_din_dimmer_switch
    platform: device
    type: turned_off
  condition: []
  action:
  - data:
      entity: flur_og_normal
    service: scene.turn_on

Unfortunately it does not work as expected, the brightness is not reset.

Help highly appreciated. If more data required I can deliver but not within the next 7 hours :slight_smile:

Thanks upfront
Ralf

The entity is incorrect, you forgot the “scene.” before “flur_og_normal”. Should be:

  action:
  - data:
      entity: scene.flur_og_normal
    service: scene.turn_on

Ouch :face_with_raised_eyebrow: :upside_down_face::slightly_smiling_face:

Dumb me!

Thanks Burningstone

You’re welcome :slight_smile:
Was there no error in the log, something like “flur_og_normal is not a valid entity id”?

To be honest, I’m not really familiar with the HA logs. Sometimes I find a message, sometimes I don’t. Will double check just for the sake of future users.

But at least I can say, I could save the automation in the gui.

Here you go:

2019-11-13 08:10:08 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.dimmer_flur_og. Invalid data for call_service at pos 1: extra keys not allowed @ data['entity']

I’m not sure if that would have helped me like your easy explanation but hey, at least there was an error message :slight_smile:

Okay, maybe this would have helped. For the next time you have an issue, I suggest you post any errors you get in the log related to your issue.

Will do, as this will help me to better understand the log and possible error situations before posting such easy questions.

I will double check the physical effect tonight when back home. (It’s easy to use a gui remote, but pressing monostable switches is not…)