Question about scene creation

Hello everyone,

I am currently testing Gladys, I really like it, however, I am facing a small difficulty with the scenes.

Regarding the triggers on state change, it seems that only numerical values are allowed, for example, I have Xiaomi vibration sensors, but also the Magic Cube which allows performing actions based on the orientation of the Cube, but it does not seem to have a function planned in the scenes to interact with.

I have a large number of modules and equipment, if tests need to be done, I am willing to do so.

Good evening to everyone.

If the material is not natively compatible with Gladys, the easiest way is to create a program in node-red!

It’s really very simple, a 10-year-old child can start creating small programs.

What messages do you receive from your devices (via xiaomi box)? Under which protocol (MQTT, HTTP …)?

So, the cube is not managed in the scenes per se, but there must be a mapping between cube action and integer in the code, so you could use the integer code in the scenes :slight_smile:

@AlexTrovato @cicoub13 I’ve looked a bit in the Zigbee2mqtt code without much success, is there a mapping somewhere for the Zigbee cube?

(The ideal would of course be that the UI displays the actions, but well in the meantime the integers can be good)

Normally for the cube, the zigbee library sends an enum, so a string. The mapping is therefore not done, as it is not possible to link the string to the number, without claiming to keep the list of possible values in Gladys. These values are not fixed and can vary depending on the devices.

Hello everyone,
Thank you for your responses, so it seems unusable for now, it’s not very serious, I don’t use it very often at the moment.

Have a nice day everyone.

Indeed, you need to list it on the Gladys side and do the mapping, as we do for the Xiaomi button for example!

And on the UI side, you need to do a reverse mapping with the translations

@oufman I don’t know if you have development skills, if so, don’t hesitate to make a PR, we can help if needed!