wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
524 stars 34 forks source link

Feature Request: Would it be possible to create an entity that has the "effect_list" for the various devices. #155

Open kingracefan opened 8 months ago

kingracefan commented 8 months ago

Govee Device SKU

H70B1

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

Would it be possible to create an entity that has the "effect_list" for the various devices.

`homeassistant/light/gv2mqtt-698FC58884592A52/config

{ "availability_topic": "gv2mqtt/availability", "name": null, "origin": { "name": "gv2mqtt", "sw_version": "2024.01.24-ea3cd430", "url": "https://github.com/wez/govee2mqtt" }, "device": { "name": "Smart Curtain Lights", "manufacturer": "Govee", "model": "H70B1", "via_device": "gv2mqtt", "identifiers": [ "gv2mqtt-698FC58884592A52" ] }, "unique_id": "gv2mqtt-698FC58884592A52", "schema": "json", "command_topic": "gv2mqtt/light/698FC58884592A52/command", "state_topic": "gv2mqtt/light/698FC58884592A52/state", "optimistic": false, "supported_color_modes": [ "rgb", "color_temp" ], "color_mode": true, "brightness": true, "brightness_scale": 100, "icon": "mdi:light-bulb", "effect": true, "effect_list": [ "", "A Fishing Cat", "Aircraft Battle", "Alternate", "Artist Palette", "Astronaut", "Atlantis", "ATREIDES-FREMEN", "Autumn Leaves", "Ballet Girl", "Bat", "Big Ben", "Big Bus", "Big Panda", "Big Pendulum", "Birds Flying", "Birthday Cake", "Bonsai", "Bouncing Ball", "Bubble", "Burj Khalifa", "Butterfly", "Cable Car", "Cactus", "Camping", "Candy Cane", "Candy Crush", "Cannibal Flower", "Carousel", "Cherry blossoms", "Christmas Bell", "Christmas Gift", "Christmas Gift Box", "Christmas Stocking", "Christmas Tree", "Christmas Wreath", "Circus", "Clown", "Clownfish", "Coachella Poster", "Code", "Countdown", "Crab", "Crossing", "Cupid's Arrow", "Demon Power", "Dinosaur", "Dodging", "Dot Eater", "Dove", "Dr. Duck", "Drift Bottle", "Drinks", "Duck Bathing", "DUNE", "Easter Egg", "Egyptian Fresco", "Eiffel Tower", "Elk", "Falling Petals", "Ferris Wheel", "Finger Heart", "Fire", "Fireplace", "Flamingo Couple", "Forest", "Forest Fireflies", "Fox", "Game Controller", "Ghost", "Gingerbread House", "Gingerbread Man", "Golden Gate Bridge", "Gopher", "Gourmet", "Gradient Movement", "Graffiti", "Greedy Snake", "Groovy", "HARKONNEN", "Hatch", "Heart Scale", "Heartbeat", "Horse Head", "Hot Air Balloon", "Ice-cream Cone", "Jellyfish", "Jumping Chicken", "Lighthouse", "Lion", "Little Whale", "Lollipop", "Lottery Machine", "Lotus Pond", "Love", "Love Heart", "Magic Hat", "Maiden", "Maze", "Meteor", "Mondrian", "Moon", "Moonlight", "Mount Fuji", "Mountain Forest", "Mountaintop", "Mushroom", "Music Note", "Music: Crossing", "Music: DreamColor", "Music: FallingSand", "Music: FloatingMist", "Music: MeteorShower", "Music: Spectrum", "Orbital Rail", "Owl", "Panda", "Parabola", "Peach Checkers", "Peacock", "Piggy Bank", "Pineapple House", "Pizza Monster", "Planet", "Poker", "Pumpkin", "Rabbit", "Rabbit Running", "Racing", "Rainbow", "Rainbow Swirl", "Reverse", "Rhomb", "Ring Toss", "Ripple", "Rocket", "Saint Patrick's Day", "Sakura", "Santa Claus", "Sea Horse", "Sea Island", "Sea Turtle", "Seesaw", "Shiny Rainbow", "Shoot Hoops", "Siren", "Skateboard", "Sled", "Smudge", "Snowman", "Soccer", "Soccer Juggling", "Soothing", "Space", "Space Walk", "Spider", "Spin", "Stack", "Star", "Starfish", "Starry Night", "Strike", "Sunflowers", "Sunrise", "Sunset", "Surfing", "Telephone", "The Pyramids", "The Scream", "The Son of Man", "The Taj Mahal", "Tic-Tac-Toe", "UFO", "Umbrella", "Undersea King", "Valentine's Day", "Water Drop", "Waterfall", "Wave", "Weightlifting", "Whale", "White Swan", "Windmill", "Windmill Kingdom", "wine glass", "Yoga", "Zombie Hand" ], `

Startup Diagnostics

This is not a startup issue.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

This would be similer to the entity that WLED creates.

select.wled_preset

kingracefan commented 8 months ago

After some more digging. HA MQTT has the support for "effect_list" under the light discovery. https://www.home-assistant.io/integrations/light.mqtt/. For some reason an entity is not being created for the "effect_list".

kingracefan commented 8 months ago

Never mind. Figured out how to get the effect_list into an input_select

action:

r1si commented 7 months ago

Can I send a custom image to H70B1 ?