Hello
can I choose another page as my homepage?
When I enter ip:1880/ui the "Benutzermeneu" page should appear
Gruß Arno
translated with Google
Hello
can I choose another page as my homepage?
When I enter ip:1880/ui the "Benutzermeneu" page should appear
Gruß Arno
translated with Google
Assuming Benutzermeneu
is a dashboard tab.
In the dashboard sidebar drag it to the top of the list, it will then be tab 0.
Hello E1cid
I've tried that too, it works,
but then all pages that are accessed with ui_controll move.
these and more
Is there another solution????
Use msg.name for your ui.control flows, not msg.tab, as msg.name does not change (unless you edit the tab name in the tab config settings). msg.tab can change when ever you mess with tabs or layout.
e.g set your buttons to output system
, wifi
etc, presuming they are the tab names.
Hello E1cid
Thanks for the info, I did it that way on all the pages I made myself. But this is ready-made programming (firmware) for a Raspberry that changes from time to time.
So I can't change that.
So I'll have to live with it
Unless you can change it somewhere in the basic settings.
loading.html or similar ????
Thanks
Greetings Arno
This may help take a look
msg.lookup would be {"0":"Benutzermeneu"}
Which should redirect to tab Benutzermeneu
when you first land on tab 0. Then after that all works as before.
I do suggest you contact author of the flows and ask them to change to using msg.name in future releases, as it would be much simpler to move tabs then.
Hello E1cid
Thanks for the tip.
I made a shortcut on my cell phone for the "Benutzermeneu" page, but page 0 always opened. That was with the Chrome browser. I have now installed Firefox and it now works on my phone.
Thanks again for the hint
Dud the flow in the link i posted not work?
Hello E1cid
When I start the UI for the first time I still end up on page 0,
and not on page 28 "Benutzer Meneu"
This is what the debug messages look like.
and I changed that
Show us the dashboard tab config for tab (28 i think) Benutzermeneu
as what you have has a space just want to confirm it is correct.
The sidebar help text says
{"tab":"my_tab_name"}
the spaces must be underscores I believe. So msg.lookup may require an underscore.
If you add a debug to the output of the ui-control on my flow, set to complete message object. Then go to tab 28 in the browser, what does msg.name show?
I wrote the Benutzer_Meneu with an underscore and also changed it in the Dahsboar configuration. debug 300 is behind the ui-controll.
these are the messages when I start the UI. Ip:1880/ui
And these are the messages when I jump to page 28 Benutzer_Meneu
So msg.lookup should be {"0": "Benutzer_Meneu")
then close the dashboard browser widow and reopen it. The page should redirect to tab 28.
sorry but unfortunately she doesn't do that,
The way I understood the flow, I can't understand it either.
[{"id":"bb94c01226269d42","type":"ui_ui_control","z":"366d66dee310ab0a","name":"","events":"all","x":280,"y":120,"wires":[["e0857c0a8a22307b","76f25793e05489bc"]]},{"id":"ce1b0b846e39a4bc","type":"change","z":"366d66dee310ab0a","name":"edit tabs and names here","rules":[{"t":"set","p":"lookup","pt":"msg","to":"{\"0\":\"Benutzer_Meneu\"}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"lookup[msg.payload.change]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":120,"wires":[["7388b00942c5bdd1","bb94c01226269d42"]]},{"id":"e0857c0a8a22307b","type":"switch","z":"366d66dee310ab0a","name":"","property":"$$.payload in [\"connect\", \"change\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":120,"wires":[["dc8c1a5c7e8d180e"]]},{"id":"361717861c86eee7","type":"join","z":"366d66dee310ab0a","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":710,"y":120,"wires":[["7388b00942c5bdd1","ce1b0b846e39a4bc"]]},{"id":"7388b00942c5bdd1","type":"debug","z":"366d66dee310ab0a","name":"debug 299","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":40,"wires":[]},{"id":"dc8c1a5c7e8d180e","type":"change","z":"366d66dee310ab0a","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"tab","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":120,"wires":[["361717861c86eee7"]]},{"id":"76f25793e05489bc","type":"debug","z":"366d66dee310ab0a","name":"debug 300","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":180,"wires":[]}]
I've now tried it from the PC and from the cell phone, it doesn't work.
Does this simplified one work for you
[{"id":"bb94c01226269d42","type":"ui_ui_control","z":"b9860b4b9de8c8da","name":"","events":"all","x":240,"y":180,"wires":[["af4faca73a06559c"]]},{"id":"474625bfd7634e42","type":"trigger","z":"b9860b4b9de8c8da","name":"","op1":"Benutzer_Meneu","op2":"0","op1type":"str","op2type":"str","duration":"-250","extend":false,"overrideDelay":false,"units":"ms","reset":"change","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":180,"wires":[["bb94c01226269d42","b262b7b33c00f068"]]},{"id":"af4faca73a06559c","type":"rbe","z":"b9860b4b9de8c8da","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":370,"y":180,"wires":[["e0857c0a8a22307b"]]},{"id":"e0857c0a8a22307b","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"$$.payload in [\"change\", \"connect\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":180,"wires":[["474625bfd7634e42"]]},{"id":"b262b7b33c00f068","type":"debug","z":"b9860b4b9de8c8da","name":"debug 338","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]}]
[edit] change delay to trigger node, with reset when change tab.
Thanks for the help, but there's a very strong thunderstorm here, I'll try tomorrow after work.
Greetings Arno
Hello E1cid
I don't know why, but the flow doesn't work either.
I created a new flow. in debug it shows exactly what it should do, but the start page remains 0
[{"id":"a5a26aa9.8e0c48","type":"change","z":"4bd4173d7901a078","name":"payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"change","tot":"str"},{"t":"set","p":"tab","pt":"msg","to":"28","tot":"str"},{"t":"set","p":"name","pt":"msg","to":"Benutzer_Meneu","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2160,"y":440,"wires":[["9ff3237cb30fcb4a","29684e68924619e0"]]},{"id":"9ff3237cb30fcb4a","type":"ui_ui_control","z":"4bd4173d7901a078","name":"","events":"all","x":1760,"y":440,"wires":[["866b47b74c118663"]]},{"id":"866b47b74c118663","type":"rbe","z":"4bd4173d7901a078","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1910,"y":440,"wires":[["2bed015a7a5a5780"]]},{"id":"2861f5bb85ab6179","type":"inject","z":"4bd4173d7901a078","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.25","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1570,"y":440,"wires":[["9ff3237cb30fcb4a"]]},{"id":"29684e68924619e0","type":"debug","z":"4bd4173d7901a078","name":"debug 341","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":2350,"y":440,"wires":[]},{"id":"2bed015a7a5a5780","type":"switch","z":"4bd4173d7901a078","name":"","property":"$$.payload in [\"change\", \"connect\"]","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":2030,"y":440,"wires":[["a5a26aa9.8e0c48"]]}]
these are the debug messages
I give up
and do that with Firefox and the shortcut
greeting
Arno