Govee Integration V2

Since I saved your API when you foolishly shared it earlier, I changed all of your scene numbers and your lights should now be cycling thru Halloween and Valentine's Day themed scenes. I hope your wife enjoys! :imp:

I did similar automation for Christmas Tree but in Node Red and threw a random number generator in the mix so it's not just a simple cycle. That's when I discovered I can't activate the shape-mapping scenes on my tree from any 3rd-party option.

5 Likes

Are you not able to call the shape mapping scenes through the Govee Cloud API either?

WTF - that was you!?!? :wink: :rofl:

That sounds interesting...I'll need to look at that option. Only issue would be I don't want to end up w/it randomly spending 5 hours on one scene...if it's possible to set an upper limit then I think I'll copy you on that. :slight_smile:

I'd really like to have a rule that would parse through external files that listed the scenes I wanted to cycle through depending on the season...set up the rule to use the appropriate file/scenes depending on the time of year. But I have no idea if RM can do that...need to do some reading.

Those are some really good ideas for a app actually. I am pondering what a app deaigned for managing this would do.

1 Like

I'm great w/ideas...not capable of actually making anything using code. (I blame my parents for their terrible DNA.) :wink:

I've asked about RM here just now, but a dedicated app would be very cool:

Correct! It does not work using an HTTP POST using Postman directly to the API nor using the Alexa Govee Skill. Using those methods, I can change to the simpler scenes just fine but not the shape-mapped ones.

EDIT

My message to Govee thru app:

And their response:

I don't know if it's related, but the "Like device" groups in the Govee app can only use local BT to connect to the lights, which just seems dumb for a "cloud" app. It's frustrating AF to not have more control over the sequencing and synchronization of the light sets. For "smart" lights, it sure is dumb.

Forgot to note - it just boggles my mind that @thebearmay hasn't written this app yet. Seems like he's just not on top of his game any more... :man_shrugging: :wink: :rofl:

2 Likes

:rofl:
just finished a 2000+ mile weekend drive, what is it that you're needing?

4 Likes

Oh it was just me whining about stuff again...really it's @mavrrick58 who needs you to write an app that does below so people like me will stop bothering him. :smiley:

However, thanks in part to an app you already wrote (mind reader!) File Manager Device, I (tah-dah!!) created a rule that does the core of above, allows me to cycle through a set of scenes on my Net lights in a recurring loop until I turn things off.

1 Like

So, I'm encountering a weird issue, and honestly, I can't tell if it's a Govee Integration V2, a Room Lighting issue, or just an internal brain fart of some sort.

I have Govee lights (H7075) working within habitat. I can change colors, adjust brightness, and etc. via the device page with no issues...

But, it seems like when I put them into Room Lighting app, it seems to not take the "Level" setting, and always sets the level to 100...

The RL table is set to:

And when I activate the RL app, the logs would indicate that the level sent was 63:

But as the able shows, the lights are set to level 100, not level 63.

Any ideas where the problem might be (include me being the problem... LOL)

This actually does make sense.

The cause of this is the fact that the Govee API uses RGB while Hubitat uses HSL or Hue, Saturation, level. Depending on what i researched Level didn't always mean brightness.

Either way when you select a color with a color picker and it is converted to RGB and the brightness is already accounted for in the RGB value. So to prevent the brightness from being applied twice the driver sets the brightness value of the device to 100 it does sound a little off but it.

I guess I could change the driver to always use a level value of 100 when doing the conversion and then set the brightness value after, but would need to test it. That would atleast give the expected brightness value

Either way the conversion back and forth between RGB and HSL isn't perfectly smooth

@danabw

This may be a little rough....

https://raw.githubusercontent.com/thebearmay/hubitat/refs/heads/main/apps/gEffects.groovy

Looks for a text file in the File Manager as input. Format is similar to what you had above, but without quotes. Third field is the number minutes to pause between records (if omitted defaults to 5).

12529:Christmas Tree:5
12530:Christmas Bell:5
3 Likes

Thanks! But shoot, I didn't even get a chance to Post the "2 hours later" graphic! :rofl:

Wife and I are out and about, her first day as a retired person, doing whatever we want on a Monday! I'll look into this later...

4 Likes

Tell her congratulations!

3 Likes

Just playing with it while my wife is in a store looking at stuff... Very cool! One thing I think would be nice in the future is the ability to have themselves automation start up\stop based on a switch turning on\off.

One thing I noticed is that the time setting prompt kept popping up even before I tapped on any of the time setting fields.

@mavrrick58 - this looks like a great enhancement to your integration!

Thanks, I've been a little worried cuz she's a hard core career person, but she has turned the corner and is really happy to not be going to work today. :grin:

3 Likes

Hi, I am having trouble downloading the Govee Integration V2 thru the HPM. I get the following error;

An error occurred while installing the package: Failed to install driver https://github.com/Mavrrick/Hubitat-by-Mavrrick/raw/main/Govee/v2/Mavrrick.Goveev2LifeChildLightDevice.groovy. Please notify the package developer..

Has anyone seen this error before? any help is appreciated.

Hi, I am struggling to load a different LAN scenes file into a Floor Lamp 2. The original file did not match the availability in the Govee app. However, the file GoveeLanScenes_Lyra_Pro.json matches them perfectly. I updated the settings to this file, saved, initialized, and hit sceneLoad ... multiple times, but the new scenes do not load. I also looked at the app's Govee Scene Management menu, but I wasn't sure what to do. (I tried Extract Scene with the group name in my app, but nothing happened.)

Sorry, as I'm probably missing something obvious. Any help would be appreciated. Thanks.

Can you attempt to do this again and capture the logging so i can see the error. When i get a chance i will test a fresh install on one of my dev hubs.

I really need the logs to make sure i am seeing what the problem is. There are a few reasons it could have a problem. It may be the Floor Lamp 2 just needs a bit of setup as this ia the first time i know a user is using it. It should be possible to use a different file and if i need to askist the code to link to the Lyra Pro's scene file it is a easy adjustment.

Same error as well. Update in HPM won' t complete. Sorry, if i knew how to provide logging info i would.