Read Device Configuration and Create Effects List

I need some guidence. I would like to generate a list, in this case lighting "effect"s by reading the MQTT discovery data. The device I am utilizing for this effort is a Govee Curtain Light.

The homeassistant/light/gv2mqtt-698FC58884592A52/config payload contains an “effect_list:”. I have currently copied the list into the configuration.yaml as an input_select. But if there are updates to the “effect_list:” it will have to manually be changed. Ideally code would read the device config payload and generate the updated list that could be used in automations.

Here is the MQTT-Explorer json for the previously noted topic

  "availability_topic": "gv2mqtt/availability",
  "name": null,
  "origin": {
    "name": "gv2mqtt",
    "sw_version": "2024.01.24-ea3cd430",
    "url": ""
  "device": {
    "name": "Smart Curtain Lights",
    "manufacturer": "Govee",
    "model": "H70B1",
    "via_device": "gv2mqtt",
    "identifiers": [
  "unique_id": "gv2mqtt-698FC58884592A52",
  "schema": "json",
  "command_topic": "gv2mqtt/light/698FC58884592A52/command",
  "state_topic": "gv2mqtt/light/698FC58884592A52/state",
  "optimistic": false,
  "supported_color_modes": [
  "color_mode": true,
  "brightness": true,
  "brightness_scale": 100,
  "icon": "mdi:light-bulb",
  "effect": true,
  "effect_list": [
    "A Fishing Cat",
    "Aircraft Battle",
    "Artist Palette",
    "Autumn Leaves",
    "Ballet Girl",
    "Big Ben",
    "Big Bus",
    "Big Panda",
    "Big Pendulum",
    "Birds Flying",
    "Birthday Cake",
    "Bouncing Ball",
    "Burj Khalifa",
    "Cable Car",
    "Candy Cane",
    "Candy Crush",
    "Cannibal Flower",
    "Cherry blossoms",
    "Christmas Bell",
    "Christmas Gift",
    "Christmas Gift Box",
    "Christmas Stocking",
    "Christmas Tree",
    "Christmas Wreath",
    "Coachella Poster",
    "Cupid's Arrow",
    "Demon Power",
    "Dot Eater",
    "Dr. Duck",
    "Drift Bottle",
    "Duck Bathing",
    "Easter Egg",
    "Egyptian Fresco",
    "Eiffel Tower",
    "Falling Petals",
    "Ferris Wheel",
    "Finger Heart",
    "Flamingo Couple",
    "Forest Fireflies",
    "Game Controller",
    "Gingerbread House",
    "Gingerbread Man",
    "Golden Gate Bridge",
    "Gradient Movement",
    "Greedy Snake",
    "Heart Scale",
    "Horse Head",
    "Hot Air Balloon",
    "Ice-cream Cone",
    "Jumping Chicken",
    "Little Whale",
    "Lottery Machine",
    "Lotus Pond",
    "Love Heart",
    "Magic Hat",
    "Mount Fuji",
    "Mountain Forest",
    "Music Note",
    "Music: Crossing",
    "Music: DreamColor",
    "Music: FallingSand",
    "Music: FloatingMist",
    "Music: MeteorShower",
    "Music: Spectrum",
    "Orbital Rail",
    "Peach Checkers",
    "Piggy Bank",
    "Pineapple House",
    "Pizza Monster",
    "Rabbit Running",
    "Rainbow Swirl",
    "Ring Toss",
    "Saint Patrick's Day",
    "Santa Claus",
    "Sea Horse",
    "Sea Island",
    "Sea Turtle",
    "Shiny Rainbow",
    "Shoot Hoops",
    "Soccer Juggling",
    "Space Walk",
    "Starry Night",
    "The Pyramids",
    "The Scream",
    "The Son of Man",
    "The Taj Mahal",
    "Undersea King",
    "Valentine's Day",
    "Water Drop",
    "White Swan",
    "Windmill Kingdom",
    "wine glass",
    "Zombie Hand"
  "min_mireds": 111,
  "max_mireds": 500,
  "payload_available": "online"

Would it be possible for you to reformat that so we can read it better?
How to help us help you - or How to ask a good question.

1 Like

Troubleshooting MQTT? MQTT-Explorer can help you be successful!

If you have Addons available, try adding this Addon repository to your Addon list. GitHub - GollumDom/addon-repository.

Also editing your first post would help as stated above /\ …