NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://nspanelmanager.com/
128 stars 10 forks source link

Add new buttons to drop-down on NSPanel #36

Open tpanajott opened 1 year ago

tpanajott commented 1 year ago

When a user pulls down the menu in the top of the panel, add an option to reboot the panel. This might be required if the panel for some reason disconnects from the WiFi as it is the no longer possible to reboot it from NSPanelManager.

It would also be helpful to have a button to factory reset the panel in case someone changes WiFi name and/or password and it can no longer connect. Currently, if this happens a user needs to re-flash the firmware.

cablesandcoffee commented 1 year ago

Oooh smart one! Like both of them. I will think about where to put it. Maybe we need a separate page for those kind of settings. Before I had a settings page If pressing the top right corner. Maybe can have a button there. Or a page that appears after a swipe but I think the swipe down right now should have those kind of basic smart home buttons only. We should discuss that page btw to see what would be of benefit for most people. Not sure the current one is optimal.

cablesandcoffee commented 11 months ago

Okay, finally. I've updated the tft files. Both US and EU. There is now a settings page called 'settings' in the tft file. On that page there are two buttons. b_restart and b_factory which can be used to add this functionality as discussed above.

tpanajott commented 11 months ago

How does a user get to the settings page?

cablesandcoffee commented 11 months ago

Good question! Forgot about that. In top right corner on first page there is a text box which has release event activated. I can add that to tftdefines as well. That textbox is prepared to show time in the future for users that want that. It's called 't_time'. But my plan was to use this right corner to get to the settings page.

tpanajott commented 11 months ago

Seems logical. Is there anything that indicates that.it.might be a button? Because I'm guessing that without setting a text in the component it's basically invisible?

cablesandcoffee commented 11 months ago

Exactly. So yes it is basically invisible. I would rather not have like a settings icon on the first page to clutter the space. But I agree it can be hard for the user to know that it exists.

cablesandcoffee commented 11 months ago

And maybe it is a better idea to have a small settings symbol on the dropdown page when we do that one. But as a start we could use the time text box.

cablesandcoffee commented 11 months ago

Oh one last thing. I also added the same slider that we have on the scenes page to not by accident factory reset the panel. I'm thinking the same implementation as the scene page. Long press on the factory reset button and user will have to wait for the slider to reach 100%. The sliders name is the same as on the scene page.

cablesandcoffee commented 5 months ago

Progress on this one is that there is a settings button on the Dropdown page now. There is also a settings page in the tft files with buttons for restart and factory reset. The page is work in progress. I'm thinking we do this when we decide to add the entire Dropdown buttons functionality.