Govee Integration V2

I have used matter for Govee a few times now. My suggestion is to pair the device directly to the Hub and not worry about paring it first to one of the other hubs like google Home, amazon, or apple that can produces a share code. Just use the Matter code provided on the sticker when doing the matter install.

When you do can you capture the data section and send it to me. I am trying to figure out some stuff with Matter drivers and that will help me know what is enabled for that device. I already created a simple smart plug driver for the Govee Smart Plug Pro H5085. This would let me try to work on something a bit more complicated.

I have a DIY Scene called "Security" #1005 that turns only a portion of the bulbs of the Permanent Outdoor Lights on. Every bulb on should be white at about 25% brightness. I just started using Hubitat & Node Red to turn it on at 10pm every night and noticed that the bulbs being turned on do not agree with the setup on the Scene in the Govee App. When I was using an Automation within the Govee app, it worked fine. With the Hubitat method, less bulbs get turned on and one bulb is red. It is nothing like any of my other DIY Scenes either.

Does anyone have any suggestions? Here is what I have tried not necessarily in this order:

  • Switched from "Enable Local LAN Scene Control" to turned off then turned back on.
  • Logged out and back into this Govee Integration and re-submitted Token
  • Clicked button to clear DIY Scenes.

I tried adding the fan via Matter directly to the Hubitat Hub and going through Google and in both cases I cannot control the fan via Hubitat. I am able to controll via Google when connected via Matter.

I just noticed that they Device Type was blank. I tried to sent it to a few devices that said "Fan", but nothing would allow for controlling the fan.

Does anyone know if this works with a Levoit ‎ LAP-V201S-WUS?

Sorry.. i think that other thread had me confused. I thought you were asking about a Govee Air Purifier. I dont believe it covers Leviot branded gear.

:+1:

@twodaend

I just sent you the beginning of a Matter driver for the device. Please install the driver and associate it with the device. Once it is associated turn on all of the logging, click on initialize and then try a few tings. If you can then capture all the logging and share it may help me further refine the driver.

I am sorry it took so long for me to respond. I got distracted working with @twodaend on a Matter Fan Driver for the Govee H7105 Fan Max. Hopefully I will post that soon for others to use. We have made really good progress.

So keep in mind there are two ways we enable DIY's or Snapshots from Hubitat. You can either use the Govee Cloud to submit the DIY/Snapshot, or extract it and use the Local Lan control option to send it locally

The cloud method which is enabled by default is the easiest to use and ensures it matches exactly what is setup in the Govee Home app. The cloud method is on by default if you haven't turned on the "Enable Local LAN control" option . Then you can just look at the state variables to find the values for what you crated.

Here is an example of the last 3 state variables on my Curatain Lights 2. The diyScene Option and Snapshots are shown.

image

Now if you do enable Local LAN Control as shown below then you also need to look at the option "Enable Local Lan Scene Control" to determine where the Integration is looking for the scenes

image
image

If the option for "Enable Local Lan Scene Control" is turned off like in the image above you will get the same values to control with the cloud.

If "Enable Local Lan Scene Control" is turned on then you will have to have the scene extracted, and you are subject to how well the scene you setup extracts. Some devices simply don't do well with scenes sent through the LAN API. The Curtain lights is the best example i know of for this.

So with all that said. What is your setup. Are you trying to be 100% local, or cloud, or a kind of hybrid. Also how was it setup in the Govee Home App. Was your Security scene setup as a DIY, or a snapshot, or something else.

I suspect the scene got borked and needs to be extracted again for some reason.

Another option that could be interesting would be to use the segemented commands if it is able to use the cloud.

Thank you. I have done so much messing with it trying LAN control, disabling LAN control, moving here, moving there, etc. I removed the app, kept everything cloud based, and not going to touch it. It's working fine so I need to stop messing with it.

1 Like

If anyone has Govee Matter devices and would like to use them with it you can try to download two new drivers below.

The Fan driver is for the H7105 Fan and allows for turning on/off, Setting Speed, and letting the fan cycle manually through speeds

The Govee RGBW Matter Driver should just make the use of the Govee devices more tolerable over the standard generic driver. The standard driver seems to have issues with the transitions taking a very long time while this driver ensure that the transition value is 0 so that all changes happen as fast as possible which is generally within 1 or 2 seconds.

Govee H7105 Tower Fan Max

Govee RGBW Matter Driver

Here is the current Matter device list in the integration documentation. It may not be 100% complete as this is just what I have found so far.

These drivers don't actually install with the integration since they are Matter devices, but should associate with Govee devices on install if you have the driver already setup.

1 Like

Oh good, its not just me

Can you elaborate on that for me. What do you mean? That post you replied to is very old and i believe was linked to a old version of HPM It was also prior to changing the install method to individual optional parts instead of the whole thing in a zip file

Please make sure you are running the most recent version of HPM which I believe is 1.9.3

Is there any interest in a Matter/LAN API Hybrid driver to enable Light Effects, but leans on Matter for all of the main control options and functions.

I would be interested in this. Seems like a current missing piece and a logical step.

@BorrisTheCat
Here you go. I already had it mostly done and was already testing with my H6022

Govee RGBW Matter Advanced Driver

Basically it just adds LAN API usage for submitting scenes. So you will need to specify IP Address and turn on the flag to enable "Local Lan Scene Control". You will also need a properly formatted JSON with all of the scene data. An example is this file. I am not adding DIY's to this since you can just include them in your scenes file at this point.

The json file was actually mostly created using the Govee Integration Local Lan Scene Extraction process. All i did after was take the file and edit the scene numbers from being in the thousands to hundreds. Everything else was already correct.

Considering all of the Govee Matter devices are very new I only have 2 preloaded scene files. The one i provided above as an example and the Govee_LanScenes_Outdoor_Wall_Light.json. If others want to extract the data and share i will added it to the repo for others. Right now the list of Matter devices is limited. I am also not 100% sure if that is truly an improvement over LAN API

The original matter driver should work for any Matter light device if you are having problems with transitions taking a very long time.

I am still trying to decide how to Package them for easy install

1 Like

This is the breakdown as I see it between New Cloud API, Lan API, and Matter. If Matter can reliably be quick to perform actions maybe, but for me that has been mixed on my limited devices. The big advantage it does have is status updates locally though.

image

1st time trying the integration - so please bear with me as i learn.

  • Downloaded V2 through HPM - Installed of the extra drivers - looks to have all installed correctly

  • Requested and entered the API key - All looks to be correct. My daughter has three sets of lights, 1 is installed and powered ( she has control on her give APP ) - the other 2 are not powered. But all three show up on her app and all three show up as options for me to select....so pretty certain HE is connected to the API properly

  • This is a test for me to see if i can figure out the integration so when i send a set of Govee path lights to my tenant - i can remote in and set up the lights to HE. Looking for a very simple on / off schedule and give the tenant the ability to change the lights to what ever color he choses though a dashboard.

  • When i look at device manager, should be seeing any on / off options? Or is the device manager simply a parent for anything else i might add? In the device manager - i only selected the lights that are connected and working through the app. When i select those - should there be another device added with this light specifically? If so - im not seeing it in my devices.

i added the lights to a dashboard as a colored bulb. When i change color or turn on / off - i can see the proper entries in the logs (on / off or color change ) but nothing physically changes on the lights itself.

And to be fair - we are using a set of lights that are about 4 years old. the model is H6117 - so not sure if that's the problem.

Either way - appreciate any thoughts. I might go buy a small set of new govee lights - to pick with for fun!

Thanks in advance - Mac.

At first glance there are several thoughts. First the H6117 is on the supported list for the API so you should be good there. It sounds like you got the whole package installed right so that is good.

Make sure the devices have power atleast avaliable to them. They don't have to be on but do need to be connected to a active outlet for the controller to connect to your wifi. That also highlights you need the devices connected to wifi as well as they are fully controllable by bluetooth if close enough without wifi. So make sure they are also connected to wifi as well.

Lastly the Govee Device Manager is mainly just a container device for all Govee Devices. It should have a carrot next to it that If expanded you will see all of your integrated govee devices below it.

There is also included documentation. Open the App and then click on the ? In the upper right corner the documentation will load for the integration. It covers allot of topics