[APP] Govee - Making your life smarter

Yesterday I installed a Govee Air Purifier (H7127) and connected it to Homey using this Govee app. Now I can switch the device on/off. But I’m missing the ability to set the working mode to a supported mode: sleep, low, high, custom. Also with the advanced flows I can choose the working mode, but the entries are not the required or predefined ones:

The device type is devices.types.air_purifier and it have the capability devices.capabilities.work_mode. In the API reference guide you find this:

field type required overview
workMode Integer Yes the temperature Whether to maintain or auto stop. 1=autoStop, 0=maintain - default 0
modeValue Integer No the target temperature to set

And modeValue can be 1=low, 2=medium, 3=high. But they forgot, that there is another value not described in the reference guide: 5=sleep !

You can find it in the HomeAssistant community forum:

Can you add a chooser for this modes in the device panel and to the card for advanced flows too?

Can you use Homey web ui and copy the json capabilities list that’s in the advanced settings? I’ll see if the options show up there.

1 Like

Sure! Good idea to add this to the advanced settings to get debugging information :smiley:

Capabilities
[{"type":"devices.capabilities.on_off","instance":"powerSwitch","parameters":{"dataType":"ENUM","options":[{"name":"on","value":1},{"name":"off","value":0}]}},{"type":"devices.capabilities.work_mode","instance":"workMode","parameters":{"dataType":"STRUCT","fields":[{"fieldName":"workMode","dataType":"ENUM","options":[{"name":"gearMode","value":1},{"name":"Custom","value":2},{"name":"Auto","value":3}],"required":true},{"fieldName":"modeValue","dataType":"ENUM","options":[{"name":"gearMode","options":[{"name":"Sleep","value":1},{"name":"Low","value":2},{"name":"High","value":3}]},{"defaultValue":0,"name":"Custom"},{"defaultValue":0,"name":"Auto"}],"required":true}]}},{"type":"devices.capabilities.property","instance":"filterLifeTime"},{"type":"devices.capabilities.property","instance":"airQuality"}]

Thanks, I’ll put it on my todo list. Can you try what happens if you put the value 1 or 2 in the option input field on the action card?

Interesting and unexpected behavior:

  • 1=Sleep (shown in the app)
  • 2=Low
  • 3=High

I did not expect to get this results :open_mouth: Because it’s different to the modeValues described in the SDK. But now I know which setting to use for sleep/night-mode.

Welcome to my world, their sdk is poorly maintained :pensive_face:

Trying to Add Govee Fan to Homey Pro.
I have Homey Pro and downloaded the Govee App, pasted the Api code .
But I still dont see the Fan on the list of devices.
New to Homey , any help would be helpful.
Thanks

You then do, add devices to Homeys, select govee, then select fan, but then it is not offered as device?
Is it a wifi fan?

hi,

i have 6 Govee Devices (all local API) in my smarthome with about 60 other devices.
mostly Zigbee and a small amount of other wifi devices.

the govee devices are: 2x H6076, 2x H607C, 2x H60A1

the govee devices are the only devices in my smarthome which become unresponsive after a day or two, every other zigbee or wifi device works without any flaw.

what i’ve tried so far:
multiple resets / factory resets
wifi extender for all the govee devices (even though the range works fo other devices)
current firmware

despite my efforts it only works for maybe a day or two after that they become unresponsive again and after some time out of nowhere they are responsive again and then the game coninues.

any ideas?
im pretty sure the network is not the problem because if i try to manage the devices via govee app when they are unresponsive in homey it works.

thanks

I noticed that sometimes they start communicating again if I power cycle them. But this discovery is based on udp broadcast messages so in most cases it’s the network blocking those or flood controlling them. Specially if you use vlans or multiple routers.
But in any case, if Homey apps receiving the udp messages I loose any new ip assignments and stuff like that. But once the app located them I only send messages to them until I hear from them that something changed. So unresponsive state is them not receiving my messages anymore.
Unless ip assignments changed it is a network thing.

its Govee Fan .

In the Homey Buying Guide it says it will work with Homey Pro.

Govee Fan Sku - SKU: H7102

Its not showing up as devices

Restart the Homey Govee app.
Then add device, select govee, the select fan. Wait for the message that says no new devices found.
Go back to the Homey govee app and in its settings press send diagnostic report.

I’ll check out if it shows in the govee cloud api.

And just to make sure, you did add the device to your wifi network using the Govee mobile app? And you created the api key using the same account?

Do you have other Govee devices already that work or is this the first?

I restarted the App, I dont see Govee Fan in the list.

I have added the Govee Fan to Govee App .
And its on the same Wifi as the Homey App.

This is the First Govee Device I want to add to the Homey Pro.

Here is the diagnostic report 0b84e257-c30e-4541-b2ad-1ea45e5586fe.

But I dont see Govee Fan on the list .

Thanks, I will check this out when I have the time

@WrathofKhan I see the api doesnt list Fan’s as supported devices, so I did not add the type. The type class isnt listed so I also have no idea what it would list as.

Are you capable to call api’s your self using tools like Postman?
If so can you attempt to call the follwing endpoint with your API key?

GET /router/api/v1/user/devices HTTP/1.1
Host: https://openapi.api.govee.com
Content-Type: application/json
Govee-API-Key: xxxx

Send me the response using a direct message, than I can see if the type is returning and ill add support for you.