Show/Hide switch with msg.payload

Hey guys,

I think my original Post under General was in the wrong place. So here again :slight_smile:

Is it possible to Show/Hide a switch with a msg.payload or anything else?
I just want to enter a PIN before I'm able to turn on or off a switch for a few seconds after I entered the correct PIN.

Thank you in advance.

No you canโ€™t easily show/hide it. But you can disable and enable it.

1 Like

Mhhh maybe that could be a solution as well :slight_smile:
Can you give me short example how to achive this?

I think I know how to change the color of a modified switch but not from the original/default ones.

If that is possible I could change the color to red if the PIN isn't entered and the switch is disabled?

Ah ok... found it out by myself after reading the information for the switch node till the end :smiley:

So because it is faded it out a bit the feature with color the switch red or normal isn't needed anymore <3

Thank you very much!