[ANNOUNCE] node-red-contrib-ui-multistate-switch: 1.2.0

Hi folks,

After a delay of some months (due to circumstances), @hotNipi and I proudly present the first 1.2.0 beta of the node-red-contrib-ui-multistate-switch node :partying_face: :champagne: :clinking_glasses:

Since there were lots of feature requests from the community, we had to spend quite some time together to implement all of those. After a while, my wife (alias "The colonel") was getting quite suspicious. Because me staying up lately every evening, to chat with somebody named 'hotnipi' :rofl:

The list of new features (which you can also find in our release notes page):

  1. The options in the editable list can now be reordered.

  2. The height of the widget can be increased (a.o. to visualize long labels).

  3. Improved options configuration validation.

  4. Support for multi-line labels.

  5. Allow Mustache syntax inside labels.

  6. Show ripple effect when the switch is clicked.

  7. Align path color to text colors (for svg icons).

  8. Multiple options to configure the passthrough of input messages.

  9. Multiple options to configure if user input is allowed.

  10. Multiple options to configure if input messages should be accepted.

  11. Allow the options (from 7, 8, 9) to be configured dynamically via an input message.µ

  12. Wiki pages have been added. For example how to show icons in the label and switch options.

We would appreciate if people contribute to our node by testing this beta version. You can install it by executing following command (from within your .node-red folder):

npm install node-red-contrib-ui-multistate-switch@1.2.0-beta.1

As always, all "constructive" feedback is very welcome!

Have fun with it!!!

@hotnipi and Bart

12 Likes

Oh dear :rofl: :rofl: :rofl:

3 Likes

Hi folks,

My partner @hotNipi and I finally managed to process all the above feedback on our first beta.
Here is the resulting list of changes between the first beta and the final npm version:
1.
2.
3.

Hopefully we didn't forget anything :thinking:

Version 1.2.0 is now available in the Node-RED palette:

image

Have fun with it!

5 Likes

Hi B & N,

Awesome!!

Thank you sooooo much!!

Any chance of adding Boolean output(T/F) as an option? (I know it doesn't apply to generic non-binary, more than 2 option scenarios, but would be pretty handy nevertheless!!)

Cheerz
Ed

Hi @eddee54455,
Indeed that would only be relevant for switches with 2 options. But for me it is fine to add such a boolean option, when we add that limitation as a comment in the readme. @hotNipi : ok for you?

The limitation will come naturally cos the configuration has validation at every step with the rule "options must be unique". The rule must then also check the type of the option. Options true and "true" are different things. I cant see any problems with this improvement.

1 Like

Absolutely Great!

Thanx Heaps!

Ed

@eddee54455,
This feature is now implemented on our Github repository:

image

You can install this version by executing following command (from within your .node-red folder):

npm install bartbutenaers/node-red-contrib-ui-multistate-switch

Would be nice if you could do some tests (before we publish it on npm), to make sure I haven't introduced bugs ...

Hi Bart!

Tested and working, only one small issue - on insertion of a new instance of the node, the size defaults to 0 x 1, I presume it should possibly rather be auto? (Not serious!!)

All output formats tested A-Ok, Bool, Alpha and Numeric....

Regds
Ed

Hello @eddee54455,
Thanks for testing all the combinations!
Yes the height 0 has been discussed some time ago. Can't find the link to that post anymore...
@hotNipi Do we publish an 1.2.1 version for this little feature, or do we wait until we have some a few extra features?

It is small bug and does not break anything, feel free to do as you like :slight_smile: