Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze at Settings Scrren #53

Closed
SyncroMischi opened this issue Nov 16, 2022 · 2 comments
Closed

Freeze at Settings Scrren #53

SyncroMischi opened this issue Nov 16, 2022 · 2 comments

Comments

@SyncroMischi
Copy link

Hy all there,
The NSPanel with Tasmota works fine I managed to set Widgets over Mqtt and deal with received Messages. The strange behavior I have is that when I swiped to Settings Screen on the NSPanel it self (swiping from up to down). It is not possible to leave this Screen. I can set All settings which are displayed in the Screen but coming back to Homescreen it's not possible. My solution was to restart Panel over tasmota but I think that's not how the Designer has planed it ;)

@joBr99
Copy link
Collaborator

joBr99 commented Nov 16, 2022

When initially drawing widgets you need to send commands for all 8 indexes, if you want to keep an index empty send a delete command for that index.

You need to send widgets for all 8 positions otherwise it will freeze.

@SyncroMischi
Copy link
Author

SyncroMischi commented Nov 16, 2022

Perfect Thank you are Great !!!!!!!!!!!
When I send the whole Widget Config at once there is no freeze in Settings Screen

For all with Node-Red to feed the NSPanel you have to declare a function with node.send(); (http://noderedguide.com/node-red-lecture-6-example-6-8-letting-a-function-node-send-multiple-messages-on-a-single-output/)

if (msg.payload = true){ //you need an inject for the "true" message
node.send({ payload: { "HMI_resources": [{ "index": 1, "ctype": "group", "id": "1", "uiid": 6 }] } });
node.send({ payload: { "HMI_resources": [{ "index": 2, "ctype": "group", "id": "2", "uiid": 6 }] } });
node.send({ payload: { "index": 3, "type": "delete" } });
node.send({ payload: { "index": 4, "type": "delete" } });
node.send({ payload: { "index": 5, "type": "delete" } });
node.send({ payload: { "index": 6, "type": "delete" } });
node.send({ payload: { "index": 7, "type": "delete" } });
node.send({ payload: { "index": 8, "type": "delete" } });
}
return msg;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants