AdyRock / com.ady.button_plus

GNU General Public License v3.0
2 stars 3 forks source link

Display item type for static strings #97

Open oh2th opened 6 months ago

oh2th commented 6 months ago

Describe the solution you'd like Allow static String type of items for use as the display's button labels. Take input for this type as:

As Label and String are optional either or both can be used as the display's button label. This would allow building menu hierarchies on the device.

Describe alternatives you've considered Use a homey string variables. However the more you have a menu hierarchy, the more variables are needed.

AdyRock commented 6 months ago

Sorry I don't understand where these items should appear? In the Display Configuration you can already set all these.

oh2th commented 6 months ago

I'm now settings string variable which will never change as they are only used as text on the display either as a title for the page, or the function name for the display's left/right button.

Homey Variables, the number of variables would increase, the more pages I create:

Screenshot 2024-02-12 at 6 03 40

Display configuration for "Main Screen" I have a display item that goes at bottom of the screen next to the right button:

Screenshot 2024-02-12 at 6 02 26

IMG_1436

On the next "Energy Screen" again a variable configured next to the left button:

Screenshot 2024-02-12 at 6 02 52

IMG_1437

I'm not seeing a way to place directly a static string item, instead of variable/custom mqtt/device capability.

AdyRock commented 6 months ago

Ah, OK, I see now. Thank you for the suggestion. I will add that into the next update, so you will be able to set the Device to None and it will just show the provide text.

oh2th commented 6 months ago

I see you have added the "None" device type. The content for Text is not been pushed to mqtt. Everyhting else fine.

Screenshot 2024-02-19 at 8 00 59

I tested also Top Label with a string and that works and Text is still not displayed.