Skip to content

Create global variants for hardware

This MR provides a way to create variant widget which can be used with any hardware types.

It introduce:

  • property variant, which is a lazy way to display something from a hardware object (if you design the server side object, you don't need to spend much time on the web side
  • state variant, which displays a basic state from any hardware object

Screenshot_from_2021-12-02_13-39-27)

This was useful to merge MotorState and ShutterState together. It would be good to rework other hardware objects to provide such state, but it is not mandatory now, a basic state is also displayed for them.

Merge request reports