Ok, so I have figured out the API calls and can control any lan based Govee light from API. I have tested H604D, H619Z, H7065, H7061, and H705B. All that really needs collected is the mac address and device model after API key is retrieved by Govee. What I am not good at is python. I know that Eufy will allow WLED control for their lights, but not sure the interface. If anyone has a template where I can insert the API into the python code, I would be willing to give it a shot.
I know you ācanā modify the Govee hardware and interrupt the data line to the govee strings, however, local LAN control would be prfered to avoid wire cutting/splicing as well as support using native govee app OR WLED as options. Any thoughts or assistances would be much appreciated.
Example:
curl --location --request PUT āhttps://developer-api.govee.com/v1/devices/controlā
āheader āContent-Type: application/jsonā
āheader āGovee-API-Key: APIKeyfromGoveeā
ādata '{
ādeviceā: āmacaddressā,
āmodelā: āH6076ā,
ācmdā: {
ānameā: āturnā,
āvalueā: āonā
}
}
ā
curl --location --request PUT āhttps://developer-api.govee.com/v1/devices/controlā
āheader āContent-Type: application/jsonā
āheader āGovee-API-Key: APIKeyfromGoveeā
ādata '{
ādeviceā: āmacaddressā,
āmodelā: āH6076ā,
ācmdā: {
ānameā: ābrightnessā,
āvalueā:50
}
}
ā
curl --location --request PUT āhttps://developer-api.govee.com/v1/devices/controlā
āheader āContent-Type: application/jsonā
āheader āGovee-API-Key: Youknowthedrillā
ādata '{
ādeviceā: āsameasaboveā,
āmodelā: āH6076ā,
ācmdā: {
ānameā: ācolorā,
āvalueā: {
ārā: {{red}},
āgā: {{green}},
ābā: {{blue}}
}
}
}
ā
curl --location --request PUT āhttps://developer-api.govee.com/v1/devices/controlā
āheader āContent-Type: application/jsonā
āheader āGovee-API-Key: 123456789ā
ādata '{
ādeviceā: ā10111213ā,
āmodelā: āH6076ā,
ācmdā: {
ānameā: ācolorTemā,
āvalueā: 7000
}
}
ā
curl --location āhttps://developer-api.govee.com/v1/devicesā \
āheader āGovee-API-Key: getthosedevicesandcreatevariablesā
curl --location āhttps://developer-api.govee.com/v1/devices?device=macaddress&model=H6076ā \
āheader āGovee-API-Key: thisonegetsdevicestateā
One thing I am also watching is the polling as there is a limit to how many calls can be made.