Using ai to maintain dashboards

I user Cursor to help out on a lot of my groovy projects on my HA platforms. I recently pointed it at Sharptools. Through a combination of storing the css files in a repository and using it’s automated test control feature of browser windows I have had a lot of success in automating tasks.

For example - my main touchscreen has a theme going back to the start of Sharptools and had over 40 defined tiles, many of which I didn’t use anymore. But I didn’t know which were in use. So I used the ai to process all of the screens and it made me a list of tiles not in use, removed the css and deleted the tiles through the ui.

Another example - actual question “Take a look at all of the pages in this touchscreen. The text on some of the buttons is smaller than the other buttons. The back button is an example of the text being at the desired size. the Shades menu button is an example of the text too small. Can you make me a list of buttons where the text is too small and tell me which tiles they are using?

Buttons with text too small (7.74px vs 13.62px reference)

  1. Shades
  • Theme style: None (default) or --theme-style-hide-footer-inactive
  1. Climate
  • Theme style: None (default) or --theme-style-hide-footer-inactive
  1. Pool
  • Theme style: None (default) or --theme-style-hide-footer-inactive

Etc…

A huge timesaver as I can now tell it to go adjust the text on the tiles. You have to teach it things like which theme assigns to which project etc and then have it go to town.

I assume others are already doing this but thought I would start a thread on tips and tricks on doing this.

1 Like