[Deprecated]Govee Integration for Govee Light, Switches, Plug, and now Appliances

Ok so now stuff make more sense. The scene extraction process when through some revisions to make it easier to use and less involved.

The DIY is stored in the main app while what is shown on the device is just so you know what to specify to activate it. The DIY is probably loaded just never got pulled in by the device.

First make sure you are running the latest set of code.

Then from the scene management menu click on the button to "update all device awareness of scenes" wait about 20 seconds. Then click on the button to "Reload Preloaded Scene Information" wait another 20 seconds. Lastly click on the button to "update all device awareness of scenes" again.

I've done that but will try again

Turning logging up to Trace then and try the actions again. Then collect your logs so I can see what your hub is doing. You may want to go into HPM and do a repair of the Govee Integration app as well to ensure you have the latest copy. That has been the resolution for some folks.

I found the problem. i will be posting a update shortly to fix it.

2 Likes

Hey Craig, I repaired using HPM and that didn't change anything.

The trace logs said that it was trying to extract a scene that already existed. I cleared the DIY scene then extracted the scene again. Even though diy effects still shows nothing in states (empty brackets) it did extract the last scene I ran and assigned it 1001. This is a different scene than I originally had. Progress..

What I need to know is what do you need me to do to generate logs that are worthwhile for you to see why DIY effects isn't populating. I can pull those tomorrow.

I am not at all familiar with your code but it seems like maybe I borked something when I tried to extract a scene that already existed or, I think more likely, I borked something when I tried to manually add a scene that already existed.

Anyway, let me know what logs you need.

Thanks

I don't think you will need to create the logs. I found a bug that would explain the problem you are experiencing.

Cool. If you do just let me know. I can VPN into the hub and grab them tomorrow if needed

Thanks. BTW, I hadn't used the new extraction process. That's about as easy as it gets.

Am I understand that the manual method is for sharing with other users?

I just released 1.0.46 of the Govee App

Changes:
Bug:
2 of the drivers were updated to corrected a problem related to DIY Scenes. This is to address issues that @oldcomputerwiz found above

Enhancements:

  1. Building upon the Scene improvements in the previous release the preloaded scenes have been split into their own state value instead of one large one. This should dramatically improve performance and resource allocation of the data. In testing this was shown to be about 2.5x faster on processing retrieval of scenes for a given device.
  2. A few verbiage items were adjusted.

If you skipped 1.0.45 you still need to do the 3 steps to get everything loaded properly.

  1. Open up the Govee Integration app. Scroll down and click on the "Scene Management" button to open that menu.
  2. Scroll down and click on the button to "Refresh Device Scene Awareness" wait about 20 seconds
  3. Click on the button right below to "Reload Preloaded Scene Data" wait another 20 seconds
  4. Click again on the button to "Refresh Device Scene Awareness"

If you are upgrading from 1.0.45 please follow this procedure.

  1. Open up the Govee Integration app. Scroll down and click on the "Scene Management" button to open that menu.
  2. Click on the button right below to "Reload Preloaded Scene Data" wait another 20 seconds
  3. Click again on the button to "Refresh Device Scene Awareness"

Yea.. pretty much. It allows you to take a command someone provides to you and load it for use in your environment.

1 Like

Good morning, Craig. DIY effects is now populated. That is fixed. Regular scenes is empty. I tried both update methods listed above even though I was already on .45 and still no regular scenes

What can I do to help?

Here are the trace logs from Reload Preload Scene Data & Refresh Device Scene Awareness.

So .45 worked and i was able to get the premade scenes to show up, and i think the diy for atleast one device showed up.

updated to the latest .46 and at first the diy came in, but the preloaded scenes all disappeared. Now i cant get either the diy or scenes to show on any device.

app:22642023-11-07 07:55:35.211infoapiRateLimits(DailyLimitRemaining, 4815)
app:22642023-11-07 07:55:35.181infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:55:31.234infoapiRateLimits(DailyLimitRemaining, 4816)
app:22642023-11-07 07:55:31.206infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:55:30.698infoapiRateLimits(DailyLimitRemaining, 4817)
app:22642023-11-07 07:55:30.669infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:55:01.961infoapiRateLimits(DailyLimitRemaining, 4818)
app:22642023-11-07 07:55:01.924infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:55:01.592infoapiRateLimits(DailyLimitRemaining, 4820)
app:22642023-11-07 07:55:01.584infoapiRateLimits(DailyLimitRemaining, 4819)
app:22642023-11-07 07:55:01.555infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:55:01.551infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:54:31.822infoapiRateLimits(DailyLimitRemaining, 4821)
app:22642023-11-07 07:54:31.792infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:54:31.144infoapiRateLimits(DailyLimitRemaining, 4822)
app:22642023-11-07 07:54:31.113infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:54:30.348infoapiRateLimits(DailyLimitRemaining, 4823)
app:22642023-11-07 07:54:30.317infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:54:02.094infoapiRateLimits(DailyLimitRemaining, 4824)
app:22642023-11-07 07:54:02.090infoapiRateLimits(DailyLimitRemaining, 4825)
app:22642023-11-07 07:54:02.064infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:54:02.060infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:54:00.300infoapiRateLimits(DailyLimitRemaining, 4826)
app:22642023-11-07 07:54:00.271infoapiRateLimits(MinRateLimitRemainig, 8)
app:22642023-11-07 07:53:35.825infoinitialize() No appliances to add
app:22642023-11-07 07:53:35.821debuglightEffectSetup() Child device [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] Model [H61C3, H705C, H705A] Types [RGBIC_Strip, Outdoor_Perm_Light, Outdoor_Perm_Light]
app:22642023-11-07 07:53:35.817infoinitialize() Govee Light/Switch/Plugs to add [].
app:22642023-11-07 07:53:35.813debuginitialize() Found child devices [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] with DNI's [19:C4:3xxxx35:30:35:65]
app:22642023-11-07 07:53:35.792debugUpdated with settings: [goveeDev:[Blakes Desk Rope, Front Eaves Lights, Back Eaves Lights], goveeGroup:Default, apiV1threshold:3, goveePassword:x#x, APIKey:xxxx, apiV2threshold:3, notifyEnabled:false, goveeEmail:xxx, configLoggingLevelIDE:5]
app:22642023-11-07 07:53:31.704infoapiRateLimits(DailyLimitRemaining, 4827)
app:22642023-11-07 07:53:31.675infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:53:31.033infoapiRateLimits(DailyLimitRemaining, 4828)
app:22642023-11-07 07:53:31.004infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:53:30.509infoapiRateLimits(DailyLimitRemaining, 4829)
app:22642023-11-07 07:53:30.412infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:53:30.408debugdiyAdd(): New Device. Starting at 1001
app:22642023-11-07 07:53:30.403debugdiyAdd(): Device H705A not found
app:22642023-11-07 07:53:30.398debugdiyAdd(): keys are []
app:22642023-11-07 07:53:30.393debugdiyAdd(): Trying to add [name:Sheridan Outside, cmd:["owABAgT/ADIG//8AAAD/CAICAZk=", "o/8AAwUICQAAAAAAAAAAAAAAAFs=", "MwUKzgAAAAAAAAAAAAAAAAAAAPI="]]
app:22642023-11-07 07:53:30.388tracediyAdd(): Attempting add DIY Scene H705A:Sheridan Outside:[owABAgT/ADIG//8AAAD/CAICAZk=, o/8AAwUICQAAAAAAAAAAAAAAAFs=, MwUKzgAAAAAAAAAAAAAAAAAAAPI=]
app:22642023-11-07 07:53:30.384debugsceneExtract(): Scene Name is Sheridan Outside: command is [owABAgT/ADIG//8AAAD/CAICAZk=, o/8AAwUICQAAAAAAAAAAAAAAAFs=, MwUKzgAAAAAAAAAAAAAAAAAAAPI=]
app:22642023-11-07 07:53:30.379debugsceneExtract(): Processing third rule collect DIY name
app:22642023-11-07 07:53:30.374debugsceneExtract(): First two rules failed falling back to third rule 4
app:22642023-11-07 07:53:30.366debugsceneExtract(): Number of rules are 3
app:22642023-11-07 07:53:30.361infosceneExtract(): Looking at Front Eaves Lights H705A
app:22642023-11-07 07:53:30.356debugsceneExtract(): found [0] feastType
app:22642023-11-07 07:53:30.350debugsceneExtract(): Response data [[deviceObj:[name:Front Eaves Lights, sku:H705A, device:02:xxxx:35:65, spec:, topic:GD/31ad2df3c8xxxxx2943a532e912a, bleName:Govee_H705A_3565, bleAddress:C9:36:xxx:35:65, versionSoft:1.00.15, versionHard:3.01.01, wifiSoftVersion:2.05.08, wifiHardVersion:1.02.00, goodsType:125, pactType:1, pactCode:2, subDevices:[:], ic:48, ic_sub_1:0, ic_sub_2:0, subDevice:, settings:null, feastId:0, feastName:, feastType:0, isFeast:0, subDeviceNum:0, deviceSplicingStatus:0], rule:[[cmdType:0, deviceType:2, cmdVal:{"open":1}, iotMsg:{"msg":{"accountTopic":"GA/118eb9f7cf0265b69ae021cf5e36a5b8","cmd":"turn","cmdVersion":0,"data":{"val":1},"transaction":"u_1698084543669","type":1}}, blueMsg:{"bleCmd":"MwEBAAAAAAAAAAAAAAAAAAAAADM\u003d","type":"switch"}], [cmdType:1, deviceType:2, cmdVal:{"brightness":100}, iotMsg:{"msg":{"accountTopic":"GA/118eb9f7cf0265b69ae021cf5e36a5b8","cmd":"brightness","cmdVersion":0,"data":{"val":100},"transaction":"u_1698084543669","type":1}}, blueMsg:{"bleCmd":"MwRkAAAAAAAAAAAAAAAAAAAAAFM\u003d","type":"brightness"}], [cmdType:4, deviceType:2, cmdVal:{"diyName":"Sheridan Outside","effectId":4620428}, iotMsg:{"msg":{"accountTopic":"GA/118eb9f7cf0265b69ae021cf5e36a5b8","cmd":"ptReal","cmdVersion":0,"data":{"command":["owABAgT/ADIG//8AAAD/CAICAZk\u003d","o/8AAwUICQAAAAAAAAAAAAAAAFs\u003d","MwUKzgAAAAAAAAAAAAAAAAAAAPI\u003d"]},"transaction":"u_1698084543669","type":1}}, blueMsg:{"bleCmd":"owABAgT/ADIG//8AAAD/CAICAZk\u003d,o/8AAwUICQAAAAAAAAAAAAAAAFs\u003d","modeCmd":"MwUKzgAAAAAAAAAAAAAAAAAAAPI\u003d","type":"diy"}]]]]
app:22642023-11-07 07:53:30.334debugsceneExtract(): Tap to Run has deviceObj true
app:22642023-11-07 07:53:30.330debugsceneExtract(): found Default group moving forward
app:22642023-11-07 07:53:27.990debugsceneExtract(): Calling HTTP server
app:22642023-11-07 07:53:27.986debugsceneExtract() DEVICE INFORMATION
app:22642023-11-07 07:53:01.695infoapiRateLimits(DailyLimitRemaining, 4830)
app:22642023-11-07 07:53:01.667infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:53:01.245debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:53:01.103infoapiRateLimits(DailyLimitRemaining, 4831)
app:22642023-11-07 07:53:01.071infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:53:00.396debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:53:00.243infoapiRateLimits(DailyLimitRemaining, 4832)
app:22642023-11-07 07:53:00.212infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:59.838debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:45.309debuglightEffectSetup() Child device [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] Model [H61C3, H705C, H705A] Types [RGBIC_Strip, Outdoor_Perm_Light, Outdoor_Perm_Light]
app:22642023-11-07 07:52:45.288debugappButtonHandler(): Initializing Scene data
app:22642023-11-07 07:52:35.931infoapiRateLimits(DailyLimitRemaining, 4833)
app:22642023-11-07 07:52:35.903infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:35.517debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:35.342infoapiRateLimits(DailyLimitRemaining, 4834)
app:22642023-11-07 07:52:35.310infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:34.935debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:34.782infoapiRateLimits(DailyLimitRemaining, 4835)
app:22642023-11-07 07:52:34.749infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:33.691debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:20.107debuglightEffectSetup() Child device [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] Model [H61C3, H705C, H705A] Types [RGBIC_Strip, Outdoor_Perm_Light, Outdoor_Perm_Light]
app:22642023-11-07 07:52:20.087debugappButtonHandler(): Initializing Scene data
app:22642023-11-07 07:52:17.924infoapiRateLimits(DailyLimitRemaining, 4836)
app:22642023-11-07 07:52:17.894infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:17.533debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:17.394infoapiRateLimits(DailyLimitRemaining, 4837)
app:22642023-11-07 07:52:17.365infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:16.948debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:52:16.808infoapiRateLimits(DailyLimitRemaining, 4838)
app:22642023-11-07 07:52:16.779infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:52:16.410debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:54.162infoapiRateLimits(DailyLimitRemaining, 4839)
app:22642023-11-07 07:51:54.133infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:53.593infoapiRateLimits(DailyLimitRemaining, 4840)
app:22642023-11-07 07:51:53.563infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:53.131infoapiRateLimits(DailyLimitRemaining, 4841)
app:22642023-11-07 07:51:53.101infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:24.142infoapiRateLimits(DailyLimitRemaining, 4842)
app:22642023-11-07 07:51:24.123infoapiRateLimits(MinRateLimitRemainig, 5)
app:22642023-11-07 07:51:23.725debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:23.586infoapiRateLimits(DailyLimitRemaining, 4843)
app:22642023-11-07 07:51:23.557infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:23.157debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:23.010infoapiRateLimits(DailyLimitRemaining, 4844)
app:22642023-11-07 07:51:22.981infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:22.614debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:18.750debuglightEffectSetup() Child device [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] Model [H61C3, H705C, H705A] Types [RGBIC_Strip, Outdoor_Perm_Light, Outdoor_Perm_Light]
app:22642023-11-07 07:51:18.729debugappButtonHandler(): Initializing Scene data
app:22642023-11-07 07:51:14.458infoapiRateLimits(DailyLimitRemaining, 4845)
app:22642023-11-07 07:51:14.429infoapiRateLimits(MinRateLimitRemainig, 6)
app:22642023-11-07 07:51:14.023debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:13.883infoapiRateLimits(DailyLimitRemaining, 4846)
app:22642023-11-07 07:51:13.854infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:51:13.437debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:13.298infoapiRateLimits(DailyLimitRemaining, 4847)
app:22642023-11-07 07:51:13.269infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:51:12.934debugappButtonHandler(): API key has been updated. Calling child devices to udpate
app:22642023-11-07 07:51:12.929infoapiRateLimits(DailyLimitRemaining, 4848)
app:22642023-11-07 07:51:12.803infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:51:12.783infoapiRateLimits(DailyLimitRemaining, 4849)
app:22642023-11-07 07:51:12.754infoapiRateLimits(MinRateLimitRemainig, 7)
app:22642023-11-07 07:51:05.662infoinitialize() No appliances to add
app:22642023-11-07 07:51:05.658debuglightEffectSetup() Child device [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] Model [H61C3, H705C, H705A] Types [RGBIC_Strip, Outdoor_Perm_Light, Outdoor_Perm_Light]
app:22642023-11-07 07:51:05.653infoinitialize() Govee Light/Switch/Plugs to add [].
app:22642023-11-07 07:51:05.649debuginitialize() Found child devices [Blakes Desk Rope, Back Eaves Lights, Front Eaves Lights] with DNI's [xxx]

The scenes still work they are just not being populated in the state variables. If you know the scene number you can still call them.

@mcallison1 and @oldcomputerwiz
I found the bug that was causing both of you to have issues. I am working on extracting the Curtain light scenes now and will bump the version when I am done getting that added.

I did push the fix to the repo now that so you can do a repair through HPM and should get it fixed for you. You would just repair it through HPM and then go into the app and the Scene management menu and click on the "Refresh Device Scene Awareness" button.

1 Like

It works now. Thank you.

1 Like

I am very glad to hear that. Thank you again so much for your patience.

Thank you for all of your hard work. I just sent you a little something to buy yourself a six pack.

1 Like

I just released 1.0.47 for general use

Changes
Bug:
Preloaded scenes will now display correctly after refreshed

Enhancement:
Added preloaded scenes for H701B.

If you have preloaded scenes that are not showing up since the last update or you want to have access to the new scenes for the Curtain lights plasee follow below procedure.

  1. Open up the Govee Integration app. Scroll down and click on the "Scene Management" button to open that menu.
  2. Click on the button right below to "Reload Preloaded Scene Data" wait another 20 seconds
  3. Click on the button to "Refresh Device Scene Awareness"
2 Likes

@mavrrick58 thanks very much for your reply. I don't think that I want to push the daily requests limit to the cloud API... already ran into maxing it out once when messing about.
I also dabble with Home Assistant using a Govee LAN integration that someone has created and I can get status changes.

Is there any rhyme or reason to the Govee Scenes (used in the H7042 String Lights)?

The Govee App on my phone has scenes under four tabs: Natural (26 scenes), Life (11 scenes), Emotion (6 scenes) and Festival (13 scenes) for a total of 56 scenes.

The Device in Hubitat has 53 scenes listed under State Variables. 36 of these correlate (have the same name) as scenes that appear on the Govee App on my phone. 17 of these scenes do not have a corresponding scene (scene with the same name) listed on the Govee App on my phone.

22 of the scenes that appear on the Govee App on my phone do not have a corresponding (same name) scene listed under the Device State Variables.

If that wasn't enough, I tried the Set Next Effect button several times and it appears there are scenes numbered in the 200's (Current States effectNum values over 200) that seem to work. Are these documented anywhere?

This is not at all critical - I am just curious. My string lights are working well, I have local control and I am learning as I experiment with them.

Thank you!