Lutron Caseta Pico Light Control

Hey all! I just finished up my first Appdaemon project and it turned out well enough I thought I’d polish it off and share with the community. This is the first Python I’ve written in many years so if there’s anywhere I can improve this code, I’d love some feedback!

This app lets you configure a Lutron Pico 3-Button With Raise/Lower (so, technically their 5-button remote heh) to control on/off, brightness, and uses the center button to store and retrieve a “favorite” setting. I’m controlling a household of over 20 dimmable lights (Tuya LED Edison Bulbs) using a collection of 10 Pico remotes and it works great!