# \[ANNOUNCE\] node-red-contrib-ui-multistate-switch: version 1.1.0

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034>\
**Category:** Share Your Nodes\
**Created:** [4 March 2021 16:52 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034 "2021-03-04T16:52:25Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 March 2021 21:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/21 "2021-03-26T21:04:32Z")

</div>

Why do you want a JSON output? JSON is always a string.

---

<div class="post-metadata">

**Author:** ![remdelag](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@remdelag](https://discourse.nodered.org/u/remdelag)\
**Post date:** [26 March 2021 22:39 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/22 "2021-03-26T22:39:40Z")

</div>

Hello,

s it usable with on touch screens ?

thank you Remi

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [26 March 2021 23:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/23 "2021-03-26T23:55:12Z")

</div>

Hi Rémi, welcome to the forum.

It's easy to test this for yourself by installing the node and using the example flow which is provided by the node, and see if it works.  
If it does not work, then either raise an issue with the node author, or posting a request here in the forum.

---

<div class="post-metadata">

**Author:** ![remdelag](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@remdelag](https://discourse.nodered.org/u/remdelag)\
**Post date:** [27 March 2021 10:07 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/24 "2021-03-27T10:07:06Z")

</div>

Hi Paul,

Thank you you right. I'ma a beginner with node red & github 🙂  
I will.  
How ever, when reconsidering my need, I will try to formulate it in a new forum subject.

Thank you, and have a good WE.  
Rémi

---

<div class="post-metadata">

**Author:** ![debouttek](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Post date:** [28 March 2021 09:01 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/25 "2021-03-28T09:01:24Z")

</div>

When I use HomeKit Bridge Node than there always has to be a JSON input like {"On":true} and {"On":false}  
So it would be easy if the output is JSON I think.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2021 09:38 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/26 "2021-03-28T09:38:00Z")

</div>

> [@debouttek](#):
>
> there always has to be a JSON input like {"On":true}

Are you sure it wants a String input? I would have expected it to want a javascript object not a JSON string.

---

<div class="post-metadata">

**Author:** ![debouttek](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Post date:** [28 March 2021 10:13 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/27 "2021-03-28T10:13:05Z")

</div>

Here stops my knowledge.... If you think it is better to use JavaScript object. 😉

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2021 10:16 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/28 "2021-03-28T10:16:36Z")

</div>

I think you may be confused about JSON and javascript objects.  
[This post](https://dev.to/desoga/javascript-object-vs-json-demystified-494j) should help to clarify the difference.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [28 March 2021 11:17 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/29 "2021-03-28T11:17:47Z")

</div>

> [@debouttek](#):
>
> {"On":true} and {"On":false}

Ok, then we will need to add an extra option in the TypedInput of the _"value"_ column, so you can send javascript objects in the output messages (to avoid having to use an extra Change node). We will put that on our TODO list, and implement it when I'm back into business. Until then you will need to add that Change node...

---

<div class="post-metadata">

**Author:** ![debouttek](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Post date:** [28 March 2021 11:21 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/30 "2021-03-28T11:21:53Z")

</div>

Thanks, Nice !

---

<div class="post-metadata">

**Author:** ![debouttek](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Post date:** [28 March 2021 11:22 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/31 "2021-03-28T11:22:59Z")

</div>

👍 Super, learning every day!

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [28 March 2021 16:07 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/32 "2021-03-28T16:07:30Z")

</div>

@BartButenaers

Very Nice!! Thank you!!

I have just implemented into my dashboards and find it works very well, one suggestion/request though... Would it be possible to have a check-box option to enable/disable passthrough of messages?

While I find it suits 50% of the scenarios as is, I have on a lot of my flows, telegram/external control as well... It would simplify and neaten layout a lot... See Below:

 ![screenshot-192.168.0.118_1880-2021.03.28-18_03_39](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/62888b650057d5a09821d95e68c8fb2031858cce.png)

Of course, the option of a outgoing topic would also be awesome!

Many thanks for the very handy node you spent your time on!

Ed

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [28 March 2021 16:54 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/33 "2021-03-28T16:54:33Z")

</div>

> [@eddee54455](#):
>
> Would it be possible to have a check-box option to enable/disable passthrough of messages?

This feature has been asked already a couple of times both on Discourse and Github. But that will have to wait until I can develop again, i.e. in a month or two.

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [28 March 2021 17:41 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/34 "2021-03-28T17:41:25Z")

</div>

No Problem!! Well worth waiting for!!

---

<div class="post-metadata">

**Author:** ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)\
**Post date:** [7 April 2021 02:19 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/36 "2021-04-07T02:19:33Z")

</div>

Yes,  
I use this node in a project that is deployed on a Raspberry Pi 4 with the Official Pi Touch Screen... It works very well in fact.

---

<div class="post-metadata">

**Author:** ![MarkC](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/markc/32/37535_2.png) [@MarkC](https://discourse.nodered.org/u/MarkC)\
**Post date:** [12 April 2021 08:12 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/37 "2021-04-12T08:12:44Z")

</div>

Hello all,  
I have just switched to using this node in place of multiple normal buttons side by side and would like to achieve a similar size and look - **2 widget units high**.

I noticed that it is not possible to increase the height of this node to more than 1 unit in the actual node settings. I can increase the height using the generic dashboard layout tool, but the widget still displays as 1 unit high.

Is it possible to increase the height of the multistate switch widget using CSS or otherwise?

Many thanks in advance.

**EDIT:** I just figured this out for myself, you can adjust the height by adding the following to a template node:

```auto
.multistate-switch-button {
line-height: XYZem;
}
.multistate-switch-slider {
height: XYZem;
transform: translate(0.25em, XYZem);
}

```

---

<div class="post-metadata">

**Author:** ![jodelkoenig](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jodelkoenig/32/44645_2.png) [@jodelkoenig](https://discourse.nodered.org/u/jodelkoenig)\
**Post date:** [11 June 2021 20:40 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/38 "2021-06-11T20:40:39Z")

</div>

I like this node a lot ... it offers plenty of opportunities. Thanks a lot guys!!

Would it be an option or reasonable request to add the selection of icons instead of (loong-german-) label, which then messes up the otherwise slim layout? 😊

Here is a potential use case (widget group: Windows & Shutter)

- line 1 my non-mulistate-switch variant
- line 2 multistate-switch variant - which provides less distraction, if text is short
- line 3 multistate-switch variant - long text, which messes things up

 ![Bildschirmfoto 2021-06-11 um 22.41.17](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/f/5f541aa18a94b7a023c1184523c2a325d077b2cc.png)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [11 June 2021 21:09 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/39 "2021-06-11T21:09:05Z")

</div>

Although not the answer you are probably wanting... but  
It shouldn't be too difficult to [change this example](https://discourse.nodered.org/t/feature-request-off-auto-on-toggle/40837/13) to include icons instead of text.  
Look at lines 8, 9 & 10 in the `ui_template` nodes for the labels.

---

<div class="post-metadata">

**Author:** ![jodelkoenig](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jodelkoenig/32/44645_2.png) [@jodelkoenig](https://discourse.nodered.org/u/jodelkoenig)\
**Post date:** [11 June 2021 21:24 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/40 "2021-06-11T21:24:51Z")

</div>

Thanks Paul. Indeed an option to play with for the time being. Cool 👍

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [12 June 2021 08:56 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034/41 "2021-06-12T08:56:10Z")

</div>

> [@jodelkoenig](#):
>
> request to add the selection of icons

Hi @jodelkoenig,  
That makes sense. However I have been out for a couple of months, and now I have a big backlog of other stuff that I need to solve before I can continue with this node...

My partner @hotNipi shared some time ago this nice picture with me:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/9159864bd328016344dc047cf99bbb511bc154e8.png)

But I have forgotten how he managed to get the icon there. Hopefully he can refresh my brain 😉

[Previous page](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034.md?page=1)

[Next page](https://discourse.nodered.org/t/announce-node-red-contrib-ui-multistate-switch-version-1-1-0/42034.md?page=3)
