Skip to content

Scene, Music, DIY Modes

Ben edited this page Jul 17, 2021 · 28 revisions

If your Govee light supports AWS or bluetooth control, it is possible to setup HomeKit scenes to use different scenes and modes that you have setup in the Govee app. This includes scenes, music mode and DIY modes that you have created.

Requirements

  • A model that supports AWS or bluetooth control:
    • For models that support AWS connection, you will need to enable the AWS connection in the configuration
    • For models that support bluetooth control, you will need to enable the bluetooth connection in the configuration
  • The Eve app on your iPhone to create the scenes that will then appear in the Home app

Step 1: Finding The Code

You will need to find a specific code that you can later enter into the configuration for each scene that you want to create. The method of finding this code differs whether it is an AWS code or a bluetooth code.

Finding an AWS code

  • Enable debug logging in the plugin settings, either for the entire plugin or for the specific accessory
  • Open the Govee app on your iPhone, but make sure your phone's bluetooth is disabled - to ensure the device is connected to wifi
  • If the device is already in the scene/mode you wish to use, then turn the light into colour mode to come out of the scene/mode
  • Now switch to the mode/scene you wish to use
  • Look in the Homebridge/HOOBS log, you should see an yellow entry appear like this:
    [Govee] [Device] the AWS code for this scene/mode is shown on the next line(s):
    MwUECAAAAAAAAAAAAAAAAAAAADo=
    
    or
    [Govee] [Device] the AWS code for this scene/mode is shown on the next line(s):
    owABBAGTBv/1AAIA/wAA//X/AjI=,owEA/wAA//UAAgD/AAD/9f8CAF0=,owL/AAD/9QACAP8AAP/w/woAAFM=,o/8A/wAAAAAAAAAAAAAAAAAAAKM=,MwUEhQAAAAAAAAAAAAAAAAAAALc=
    
  • Copy the entire code which is needed in the next step

Finding a bluetooth code

Finding a bluetooth code can be a little more challenging as the plugin cannot find this for you.

  • The following codes are taken from Govee-H6127-Reverse-Engineering and may or may not work for different models:

    0x01: Music
     0x00: Energic
     0x01: Spectrum(colors)
      0x000000: red, green, blue
      0xffffff: red, green, blue
     0x02: Rolling(colors)
      0x000000: red, green, blue
      0xffffff: red, green, blue
     0x03: Rhythm
    0x04: Scene
     0x00: Sunrise
     0x01: Sunset
     0x04: Movie
     0x05: Dating
     0x07: Romantic
     0x08: Twinkle (Formerly Blinking)
     0x09: Candlelight
     0x0f: Snowflake
     0x10: Energetic
     0x0a: Breathe
     0x14: Crossing
     0x15: Rainbow
    0x0a: DIY
     0x0b: Segments
      0x00:Left Half(1,2,3,4,5,6,7,8)
      0x00:Right Half (9,10,11,12,13,15)
    
    • For example, the plugin code needed for 'Romantic Scene' is 0x04,0x07 (0x04 for Scene and 0x07 for Romantic)
    • For example, the plugin code needed for 'Energic Music' is 0x01,0x00 (0x01 for Music and 0x00 for Energetic
    • Copy the entire code which is needed in the next step

I am unable to help finding other scenes or modes that aren't in this list. You can experiment with these codes or find an exact code yourself with some reverse engineering.

Step 2: Configure The Code

You can use the plugin settings within Homebridge/HOOBS UI to enter the code found above. Within the 'Light Devices' section you should setup an entry for your device and then configure your code as shown:

Example settings screen

The plugin offers the option for six different codes with a naming scheme for two music modes, two scenes and two DIY modes. This is just a naming scheme for ease - any code can go in any section.

Save your config and restart the plugin.

Step 3: The Eve App

When the plugin restarts, it will add buttons for each of the codes that you have entered in the configuration. These buttons are only visible in the Eve app and can be seen when clicking on the corresponding accessory.

The plugin will also add an extra button called 'Colour Mode' that can be used to revert the device back to colour mode.

These buttons are stateless which means they do not reflect the current state of the device. Turning one of the buttons ON will simply send a command to the device to switch to this mode. After three seconds, the button will revert back to OFF (although this only seems apparent when refreshing the accessory page).

Step 4: Creating HomeKit scenes

You can create scenes within the Eve app so you can access these Govee modes from within the Home app itself. From the Eve app:

  • Click the 'Automation' tab at the bottom of the app and make sure you are then on the 'Scenes' tab at the top
  • Click on 'Add Scene'
  • Click on 'Next' at the top of the screen
  • Enter a name for the scene (and an icon!) and click on 'Done' at the top of the screen