Can I control complex lights such as light bars (Govee) in RL?

Posting this here after a suggestion in the Govee integration thread.

I just got a couple of Govee Floor Lamp 2's. Essentially these are a 2 separate multi segmented light bars from what I can tell, so you can set complex lighting or even animations on each light.

I want to integrate these into an already existing fairly complex RL app where I have my hue lights transitioning throughout the day. Is it possible to somehow set multiple colors/states for a single device within RL? or am I stuck with only choosing a single color or temperature?

If the latter - any suggestions for how I might be able to set up those 2 lights in a different app, and maybe use RL to trigger those separate rules in some way (virtual switch maybe?). I have my room lighting currently switching on custom time periods.

1 Like

TYpically, segment control (effects, etc), are invoked by setting custom attribute. Rule Machine has this capability, but Room Lighting does not.

But, what you could probably do us fake it out by creating a virtual switch, and then a rule machine entry that triggers when that switch turns on (or off/changed). In the Rule Machine you set the custom attributes you want, and once the rule machine entries works, add the switch to your Room Lighting entry.

I did this to invoked the various Govee Effects, and it seems to work ok.

1 Like

Thanks! Are you aware of any way to capture those more detailed light settings? Like sweet to your light more easily in Govee app and then capture with hubitat? It doesn't seem too much hassle to create a number of virtual switches for various Govee color settings, but I haven't really been able to figure out how to easily set up complex lighting for my Govee devices in Hubitat, even just through the device itself.

I currently am running an all day natural lighting scheme through RL with lots of various time period changes, so it would be a lot of work to program each light through Hubitat, at least from what I know.

There are some ways to SYNC DIYs, and etc. from the Govee cloud into HE, but, honestly, I haven't played with that much... (On my list of things to do)...

What about doing it via system variables? You can set the variables via a separate utility based on mode changes, and then have one RM app leverages the variables in it's setting.

I don't think RL can set a table based on variables.. :frowning:

Sorry, what I meant to say is I think the light changes based on virtual switches is a good idea. But that still means I need to set up those lighting scheme in rule machine, no? Like at some point within Hubitat I need to define how to set all the various segment colors, and I guess that's the next part that I'm trying to figure out. Like if I could say my light color in Govee app (since it's easier to set up the segments in there), capture that color pattern in Hubitat (to a scene maybe?) then trigger those through RM with virtual switches in RL, that sounds like a decent option.

It's just the setting various segment values within Hubitat itself that sounds like a nightmare, since there's no GUI to do it. This is what I've also done with my hue lights as well - set everything up in the Hue app, then capture in RL. that works fine for my hue setup since they're all single bulbs, but I can't figure out how with the Govee since they can be more than just one color.

I don't think this will work in Hubitat since the light only comes in as a single device. If it came in with child devices for each segment, then it would be possible. This is similar to using a Hue gradient strip as Hubitat cannot set the various segments. In the latter scenario, someone could bring in a Hue Scene and make it work. This is nice since everything is connected locally.

With your wishes for Govee, I think the only option is going to be using a Virtual Switch that turns on and activates a Govee Scene via the Cloud API. Room Lighting controls the virtual switch and Rule Machine calls the scene. I am pretty sure there is no way to make this happen locally due to the type of device that Hubitat has your lights.

There is a custom govee integration that should allow you to do this. You can create your own animations in the govee app and then save them to hubitat to be triggered however you like. I'll get the link to the integration and post it here once I find it.

Link to custom integration: Govee Integration V2

You may want to check the Govee Home App to see if the device supports snapshots. If so you can set it up and create the snapshots then call them from the Govee Integration.

A few people above mentioned needing child devices for segments. That sn't a good idea because it would kill rate limit if your segments were controlled individually. If the device supports segment control you can control as many segments as you want at one time for one action. with the Govee integration v2.

I am not suggesting it is the easiest thing to do, but it is possible.

I am using the V2 integration. Would "snapshot" be a button in the device menu if it were supported? I'm using the floor lamp 2 with the matter rgbw driver, and I don't see anything similar to snapshot or even more than just a single color being reported for current state.

Can you go into the device settings in the Govee app and get the model number. I jus want to make sure i am talking about the right device.

If you are using a matter driver you are not using the Govee Integration V2 and its driver.

Please confirm the exact driver in use as well.

The icon circled in blue is what you are looking for. Not all devices support it though.

Sorry I'm getting a bunch confused. It's the floor lamp 2 H607C. I was using the V2 integration before I realized the matter driver was separate, so I switched to that standalone rgbw matter driver instead of the integration. My device does have the snapshot button.

So if you installed the device and paired it with matter then you are not using the cloud API. The cloud API is what allows you to control the decice in segments.

Matter from what i can tell doesn't have segmented control capability. To have segement control you need to use the Govee Integration V2 with the cloud API. Once that is done just submit the commands from the device page.

2 Likes

Do you have any recommendations of using the integration or cloud API vs matter? I'm kind of lost as to the difference or downsides of each. I know I was originally having issues especially with random color flashing during transitions when I was on the V2 integration, which is why I switched to trying the matter driver instead.

Going back to the original question, is it possible then with the cloud API for me to be able to actually set the Govee lights to more complicated settings (segments, gradients, scenes, etc) through room lighting, provided I'm using a virtual switch or something as the trigger? It sounds like if I'm able to snapshot complicated devices settings then I should be able to command those same settings through rule machine as well?

I saved a snapshot in my Govee app but I can’t get it to come over to Hubitat. Can you tell me how to get Hubitat to see it?

I can’t get my diy’s into Hubitat either

First make sure you are using cloud API for the scenes.

Snapshota are provided with the device info. Simoly open the integration app and click on the standard device setup button. That will retrieve that data again. Then it should become avaliable.

DiY's should just show up once you create them and refresh the scene data on yhe device. We did find that curtain lights gen 2 devices were not updating their diy's though. What device model are we talking about.