Ok, did some significant testing, everything is working great except for one thing. Home Assistant doesnāt seem to be converting back from the max 100 to the max 255 thing. The light is at max brightness in the screenshot: (model H6159)
Sample from log during brightness changes with debugging on:
2020-09-23 09:54:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_state 0D:D7:A4:Cx:xx:F1:xx:xC
2020-09-23 09:54:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] Rate limit total: 100, remaining: 94 in 19.968635082244873 seconds
2020-09-23 09:54:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': '0D:D7:A4:Cx:xx:F1:xx:xC', 'model': 'H6159', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 19}, {'color': {'r': 0, 'b': 255, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDeviceState(device='0D:D7:A4:Cx:xx:F1:xx:xC', model='H6159', online=True, power_state=True, brightness=19, color=(0, 0, 255), timestamp=1600869275.490458, source='api')
2020-09-23 09:54:37 DEBUG (MainThread) [custom_components.govee.light] async_turn_on for Govee light 0D:D7:A4:Cx:xx:F1:xx:xC, kwargs: {'brightness': 255}
2020-09-23 09:54:37 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] control 0D:D7:A4:Cx:xx:F1:xx:xC: {'name': 'brightness', 'value': 100}
2020-09-23 09:54:37 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] Rate limit total: 100, remaining: 93 in 18.049241065979004 seconds
2020-09-23 09:54:37 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_state 0D:D7:A4:Cx:xx:F1:xx:xC
2020-09-23 09:54:37 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDeviceState(device='0D:D7:A4:Cx:xx:F1:xx:xC', model='H6159', online=True, power_state=True, brightness=254, color=(0, 0, 255), timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f61f1a79580>>, source='history')
2020-09-23 09:54:45 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_state 0D:D7:A4:Cx:xx:F1:xx:xC