Upgrade to Gladys v4: where is my FGD-212 to put it in a scene to turn the light on/off?

Hello, I’m not sure if this is the same topic, but just in case, I have an issue with my FGD-212s.
Gladys 4 found them without any issues, but I can’t turn any of them on :frowning:

So, I’m not at home to check in detail, but when you choose to control a Device via a scene, as far as I remember, your FGD212 offers two places with the same name to enter a value.

Only one of the two is useful (I think it’s the first one), and you shouldn’t enter the maximum number otherwise it won’t work.

If you want to turn it off, you need to set the value to 0.
If you want to turn it on, you need to set the value to 99 (to have maximum light).
And you can enter any value between 0 and 99 for the light intensity.

For example, on my side with a Xiaomi button:

  • 1 click = value 0 (light off)
  • long press = value 99 (maximum light)
  • double click = value 30 (dimmed light)

Note: and if it doesn’t work using the first line, it’s because I must have made a mistake and it’s the second one that needs to be used :sweat_smile:

Okay, I confirm it’s indeed the first one, thanks for the info. I went through an MQTT device to simulate a light bulb on/off, and when I want to dim, I go through the dimmer.

However, I wonder why we display more than 100 in the UI for this kind of usage in percentage ^^

Because it’s not pretty :stuck_out_tongue:


On the image, I’m at 99 for an intensity of 0 to 99 ^^ the right part is dead and does not make the device work

This Z-Wave device has been problematic for years; basically, it sends the wrong values (I don’t know if it’s the device itself or Open-ZWave that has a bug).

Basically, Gladys receives from open-zwave that the device manages from 0 to 1xx (xx being a digit I don’t remember which one), but it’s wrong, it should send from 0 to 100 (or 99).

The solution would be to add a « special case » in the Z-Wave integration (yes, that’s Z-Wave unfortunately :p) to replace 1xx with the correct value.

The code for the Z-Wave integration is in this folder: https://github.com/GladysAssistant/Gladys/tree/master/server/services/zwave/lib

In the short term, if someone wants me to guide them to show them how to make this change, I can help.

In the long term, I hope the new ZwaveJS integration will see the light of day to bring a bit of order to all this (after all, it’s not said that it will solve all the problems) :slight_smile: