Switching S1 of Fibaro FGS213 via HA

I had a Homey installation and in it there is a FGS213 switch installed behind a ceilingfan. Just controlling on and off states via S1 on the Fibaro.

Now I’ve switched over to Home Assistant. And the FGS213 is perfectly discovered in Z-Wave JS via MQTT. And I can see the switch inside HA MQTT.
There are 2 switches visible. And when I toggle those, they toggle back to off by themselves. The fan is not switching on.

But in the Z-Wave JS ui, there is an option to switch the S1 on too. And when I do it there, the fan is switching on and off.

In the ui it is called: [3-37-1-targetValue] Target value (the 3 in front is the node number)

But how can I controll (just switch it on or off) as a device in HA?
I want to controll it later via an automation.

The two switches represent the inputs to the device. (It can have two physical switches connected to it.) They are probably turning off because you have them set to toggle switches so they revert to whatever is electrically connected to the inputs (or off if nothing is).

I don’t have any FGS213s, but I have plenty of FGS223s, and there you might want to check the “Reaction to Key S1”, “Operating Mode”, and “Input Button/Switch Configuration” configurations. They might be configured to respect the input over the control you are setting.

I suspect if you change the switch type to toggle you might get it to work the way you want.

-David

(Make sure you have Parameter 20 set to “Switch (status changes when switch changes)” and not “status syncs with switch position”).

I think this is it.
When I switch it on via the Z-wave interface, than it works in HA as a switch too.
on an off switching is working.
When I turn it off in the Z-wave interface, in HA the switch is autmaticly revering to off when I switch it on there.

So it has to be somewhere there what you say. Thanks.