Fibaro FGD212 use Button s1 to activate scenes

Hi guys
I’m trying to use the event of S1 being pressed to activate a certain set of scenes to start. I don’t seem to get it to work because in automations I cannot extract the event of S1 being pressed. Do I first need to activate scenes? In automations I found something about parameter 28 having to be on but that doesn’t seem to change anything either.

I have fibaro FGD212.
It’s used to work fine in openhab but changing to home assistant seem to be an issue.
Also I have no comprehensive log system.
Any help would be appreciated. I cannot see anywhere where it actually says that S1 is pressed in the log file as a matter of fact I even have trouble finding the log file.
Please note that I’m very new to home assistant of though I was quite confident in using openhab2

Sorry for the very much noob question

Any help is appreciated thank you.

Yes. You have to enable scenes using parameter 28. This gets the modules sending scene IDs. Then you need to capture the scene ID as a trigger in an automation. I use zwave js so for me this is Trigger on event type “zwave_js_value_notification”. The event data should be node_id: and value_raw:

Here is the yaml for my trigger. This is to trigger on a dimmer 2 sending scene id 22 which is S2 being held.

platform: event
event_type: zwave_js_value_notification
event_data:
node_id: 22
value_raw: 22
id: '722'

Hey Simon,
thank you very much for your reply.
I got it working as far as the turning on process is concerned. Now I have to make sure that it only triggers when the light is actually turned from off to on. So I reckon it’s something with conditions when only the lights off off and not on. Where would I find that?

Add that as a condition in your automation.

Alright. so the complete automation would be as follows in my case:

alias: Bad Licht abend 60%
description: ''
trigger:
  - platform: event
    event_type: zwave_js_value_notification
    event_data:
      node_id: 4
      value_raw: 10
      id: '722'
condition:
  - condition: device
    type: is_off
    device_id: 2f41a2d45196721fdd3eb28249ececd5
    entity_id: light.badezimmer
    domain: light
  - condition: state
    entity_id: binary_sensor.abend
    state: 'ON'
action:
  - service: light.turn_on
    data:
      brightness_pct: 70
    target:
      entity_id: light.badezimmer
mode: single

I want the Bathroom light to be at brightness 70% when the binary sensor evening is on (from Sunset+30 until 23:00"
but as of now I have no luck.

Thank you

Firstly, have you looked at the trace for the automation? I find it quite useful to see what’s going on.

I replicated your automation as best I could and noted that the state for the second condition was “on” rather than “ON”. I was using an input boolean rather than a binary sensor so yours maybe different but this is case sensitive. When I changed from “ON” to “on” the automation worked and set the light to 70%.

Just curious but is device id 4 light.bedezimmer? If so you might get some timing timing issues as S1 controls the light directly.

BTW, the trigger id is not needed. I use as as I have a number of triggers for my automation and do different things depending on which trigger was used. In your case its not needed.