-
-
Notifications
You must be signed in to change notification settings - Fork 53
Scene, Music, DIY Modes
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.
- A model that supports AWS or bluetooth control:
- For models that support AWS connection, you will need to make sure you haven't disabled 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
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.
- 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:
or
[Govee] [Device] the AWS code for this scene/mode is shown on the next line(s): MwUECAAAAAAAAAAAAAAAAAAAADo=||pt||opcode
[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=||pt||op
- Copy the entire code which is needed in the next step
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 and0x07
for Romantic) - For example, the plugin code needed for 'Energic Music' is
0x01,0x00
(0x01
for Music and0x00
for Energetic - Copy the entire code which is needed in the next step
- For example, the plugin code needed for 'Romantic Scene' is
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.
Some more bluetooth codes for various models can be seen at this repo.
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:
The plugin offers the option for ten different codes with a naming scheme for two music modes, four scenes four DIY modes and four segmented light modes. This is just a naming scheme for ease - any code can go in any section.
Save your config and restart the plugin.
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).
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 'Add Actions', choose the accessory, and click on the button for the scene and make sure the value is 'ON'
- Click on 'Add' at the top of the screen
- 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
- The scene should now be created and if you open the Home app the scene should be visible in the room where the device is located