Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use script for setting DIY Scene #344

Open
JimmyJammed opened this issue Dec 28, 2024 · 1 comment
Open

How to use script for setting DIY Scene #344

JimmyJammed opened this issue Dec 28, 2024 · 1 comment

Comments

@JimmyJammed
Copy link

JimmyJammed commented Dec 28, 2024

Govee Device SKU

H7063

Govee2MQTT Version

2024.07.13-82ddc6e9

Describe the issue

I am interested in using (or learning from) your Home Assistant Add-On to use Govee LAN API for setting a lights DIY Scene. I currently have programmed a custom holiday light show using Python and the Govee Cloud API which works pretty well, but the audio syncing is always off due to the Cloud API fluctuations. I haven't found a way to set DIY Scenes using the Govee LAN API due to it's limitations - it only supports power toggle, color, brightness and temperature currently.

I found this HA Add-On and have successfully setup Home Assistant with it and I am able to set a DIY Scene on my Govee lights with it manually. Does this functionality actually use the Govee LAN API somehow? Or is it using the Cloud API?
If it is using the LAN API, then it seems like this HA Add-On has solved the ability to set a light to use a DIY Scene over LAN API, so I was hoping you could assist me (or at least point me in the right direction) on how to utilize this same functionality from my own Python (or other) scripts.

Thanks!

Startup Diagnostics

n/a

Additional Logs

n/a

Home Assistant Logs

n/a

Anything else?

n/a

@wez
Copy link
Owner

wez commented Dec 31, 2024

Take a look at egold555/Govee-Reverse-Engineering#11 (comment) for the pre-defined scenes.

DIY scenes require a Platform API key and cannot be set via the LAN API.

It's possible that you could translate the data from the Platform API and massage it into the form discussed in the reverse-engineering repo. I'd be interested in the outcome of that investigation, but don't have the bandwidth to participate directly in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants