gt06.alternative attribute in version 5.6

Juliano2 years ago

Hello, how is the gt06.alternative attribute that was placed on the device up to version 4.15 in this version 5.6, I still don't understand how it works for blocking Crx1

Anton Tananaev2 years ago

Are you asking where the attribute is configured? In the same place.

Juliano2 years ago

I tried to add the attribute manually but it doesn't enable saving, is there any modification to be done?

Anton Tananaev2 years ago

Have you clicked on it in the popup?

Juliano2 years ago

I'm gonna explain

                if ("G109".equals(device.getModel())) {
                    return encodeContent(command.getDeviceId(), "DYD#");
                } else if (alternative) {
                    return encodeContent(command.getDeviceId(), "DYD," + password + "#");
                } else {
                    return encodeContent(command.getDeviceId(), "Relay,1#");
                }

how to choose between these options

Anton Tananaev2 years ago

Ask your device vendor to see which one is right.

Juliano2 years ago

the right is

return encodeContent(command.getDeviceId(), "DYD," + password + "#");
Anton Tananaev2 years ago

Then the parameter is right.

Juliano2 years ago

the parameter is correct, should it work automatically or do you need to create some attribute?

Anton Tananaev2 years ago

I'm talking about the attribute you asked about originally. You have to set it in exactly the same way as before.