Hello,
I would like to hide or show groups in dependence on an active payload.
So if i get an active Payload (in my case every 1200 ms) i want to show the group, if not i want to hide it.
As second i would like to hide Groups in dependence on a msg.payload.value.
Its necessary to hide groups not tabs. Maybe hiding the Widget of the Template would be enough.
With my current state of a solution i can hide/show perfectly with an inject to "Inaktiv-Ausblenden" and "Aktiv-Einblenden".
But it should work automatically without manual injections.
I use the funktion node to have only one input node
If i use my solution without injections it works not the same way.
Instead of Hiding the group the group is shown and empty except for the word "change".
May be someone can help me with that ?
[{"id":"b16eb9e0.33e118","type":"tab","label":"Ausblenden","disabled":false,"info":""},{"id":"628e92a7.40d13c","type":"ui_template","z":"b16eb9e0.33e118","group":"a6e0b3f6.06a09","name":"ZF W16","order":0,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1080,"y":90,"wires":[[]]},{"id":"8c81d92d.7b50e8","type":"switch","z":"b16eb9e0.33e118","name":"Aktiv?","property":"payload","propertyType":"msg","rules":[{"t":"empty"},{"t":"nempty"}],"checkall":"true","repair":false,"outputs":2,"x":260,"y":150,"wires":[["d67f107c.1e96a"],["b14f9fcd.eecdc"]]},{"id":"79affe3a.5d873","type":"change","z":"b16eb9e0.33e118","name":"Inaktiv-Ausblenden","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"group\":{\"hide\":[\"ZF_W12\"]}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":120,"wires":[["483030d7.f4e59"]]},{"id":"483030d7.f4e59","type":"ui_ui_control","z":"b16eb9e0.33e118","name":"","x":930,"y":120,"wires":[["628e92a7.40d13c"]]},{"id":"b14f9fcd.eecdc","type":"change","z":"b16eb9e0.33e118","name":"Aktiv-Einblenden","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"group\":{\"show\":[\"ZF_W12\"]}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":150,"wires":[["483030d7.f4e59"]]},{"id":"d67f107c.1e96a","type":"trigger","z":"b16eb9e0.33e118","op1":"","op2":"0","op1type":"date","op2type":"str","duration":"5","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":520,"y":120,"wires":[["79affe3a.5d873"]]},{"id":"d12fb1a7.db5e3","type":"function","z":"b16eb9e0.33e118","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":140,"y":90,"wires":[["8c81d92d.7b50e8","628e92a7.40d13c"]]},{"id":"a6e0b3f6.06a09","type":"ui_group","z":"","name":"W16","tab":"c1c3af62.765b1","order":18,"disp":true,"width":"6","collapse":false},{"id":"c1c3af62.765b1","type":"ui_tab","z":"","name":"ZF","icon":"dashboard","order":6,"disabled":false,"hidden":false}]