All Projects → LaggAt → hacs-govee

LaggAt / hacs-govee

Licence: MIT license
A HACS repository for Govee light integration

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to hacs-govee

openrgb ha
OpenRGB integration for Home Assistant
Stars: ✭ 40 (-76.88%)
Mutual labels:  light, hacs
sensor.goveetemp bt hci
Govee Temperature/Humidity BLE Home Assistant Component
Stars: ✭ 141 (-18.5%)
Mutual labels:  hacs, govee
Slimsocial For Facebook
Light version of Facebook. Light both in the weight and in the use.
Stars: ✭ 171 (-1.16%)
Mutual labels:  light
NumericUpDownLib
Implements numeric up down WPF controls to edit/display values (byte, integer, short, ushort etc.) with a textbox and optional up/down arrow (repeat) buttons. Value editing is possible by dragging the mouse vertically/horizontally, clicking up/down buttons, using up/down or left right cursor keys, spinning mousewheel on mouseover, or editing th…
Stars: ✭ 68 (-60.69%)
Mutual labels:  light
Alfred Simple
Simple theme for Alfred
Stars: ✭ 217 (+25.43%)
Mutual labels:  light
Typora Misty Theme
Yet another elegant Typora theme designed with aesthetics in mind.
Stars: ✭ 179 (+3.47%)
Mutual labels:  light
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (+33.53%)
Mutual labels:  light
Winhue
Controlling the Philips Hue lighting system from your Windows PC.
Stars: ✭ 167 (-3.47%)
Mutual labels:  light
yiq
Returns white when a color is dark and black when a color is light.
Stars: ✭ 24 (-86.13%)
Mutual labels:  light
Limitrr
Light NodeJS rate limiting and response delaying using Redis - including Express middleware.
Stars: ✭ 203 (+17.34%)
Mutual labels:  light
Xiaomi miot raw
Universal Xiaomi MIoT integration for Home Assistant
Stars: ✭ 240 (+38.73%)
Mutual labels:  light
Mu
The μ css framework — a 1 ko css file.
Stars: ✭ 202 (+16.76%)
Mutual labels:  light
Yolo Face With Landmark
yoloface大礼包 使用pytroch实现的基于yolov3的轻量级人脸检测(包含关键点)
Stars: ✭ 180 (+4.05%)
Mutual labels:  light
Ailight
AiLight is a custom firmware for the esp8266 based Ai-Thinker (or equivalent) RGBW WiFi light bulbs
Stars: ✭ 248 (+43.35%)
Mutual labels:  light
Bh1750
An Arduino library for the digital light sensor breakout boards containing the BH1750FVI IC
Stars: ✭ 173 (+0%)
Mutual labels:  light
thermal
Thermal Vision Sensor and Camera for Home Assistant
Stars: ✭ 43 (-75.14%)
Mutual labels:  hacs
Lightproxy
💎 Cross platform Web debugging proxy
Stars: ✭ 2,347 (+1256.65%)
Mutual labels:  light
Iio Sensor Proxy
IIO accelerometer sensor to input device proxy
Stars: ✭ 192 (+10.98%)
Mutual labels:  light
Themify
👨‍🎨 CSS Themes Made Easy. A robust, opinionated solution to manage themes in your web application
Stars: ✭ 218 (+26.01%)
Mutual labels:  light
home-assistant-p2000
🚒 This component tracks P2000 emergency events in The Netherlands.
Stars: ✭ 45 (-73.99%)
Mutual labels:  hacs

'Govee' integration

The Govee integration allows you to control and monitor lights and switches using the Govee API.

Installation

  • The installation is done inside HACS (Home Assistant Community Store). If you don't have HACS, you must install it before adding this integration. Installation instructions here.
  • Once HACS is installed, navigate to the 'Integrations' tab in HACS and search for the 'Govee' integration there. Click "Download this repository in HACS". On the next screen, select "Download". Once fully downloaded, restart HomeAssistant.
  • In the sidebar, click 'Configuration', then 'Devices & Services'. Click the + icon to add "Govee" to your Home Assistant installation. An API key is required, you need to obtain it in the 'Govee Home' app on your mobile device. This can be done from the Account Page (Far right icon at the bottom) > Settings (top right icon) > About Us > Apply for API Key. The key will be sent to your account email.

Sponsor

A lot of effort is going into that integration. So if you can afford it and want to support us:

Buy Me A Coffee

Thank you!

Is it stable?

We think so. It is used often, and the support thread is active.

usage statistics per version

Usage Data is taken from Home Assistant analytics, and plotted over time by us. You need to enable analytics if you want to show here.

Is there an issue right now?

This graph uses the same library to do simple checks. If you see round dots on the right of the graph (= today), probably there is an issue.

Govee API running?

Pulling or assuming state

Some devices do not support pulling state. In this case we assume the state on your last input. For others, we assume the state just after controlling the light, but will otherwise request it from the cloud API.

DISABLING state updates for specific attributes

You shouldn't use this feature in normal operation, but if something is broke e.g. on Govee API you could help yourself and others on the forum with a little tweak.

Not all attribute updates can be disabled, but most can. Fiddling here could also lead to other misbehavours, but it could help with some issues.

Let's talk about an example:

What if power_state isn't correctly returned from API?

We can have state from two sources: 'API' and 'HISTORY'. History for example means, when we turn on a light we already guess the state will be on, so we set a history state of on before we get data from the API. In the default configuration you could also see this, as it shows two buttons until the final state from API arrives.

two-button-state

So let's say we have an issue, that the ON/OFF state from API is wrong, we always get OFF. (This happended, and this is why I developed that feature). If we disable the power state we get from API we could work around this, and thats exactly what we do:

  1. 'API' or 'History': state from which source do we want to disable? In our example the API state is wrong, as we could see in logs, so we choose 'API'
  2. Look up the attribute you want to disable in GoveeDevice data class. Don't worry, you don't need to understand any of the code here. Here is that data class (click). In our Example we will find 'power_state'
  3. Next, in Home Assistant we open Configuration - Integrations and click on the options on the Govee integration. Here is an example how this config option could look:

DISABLE state updates option

  1. With the information from 1. and 2. we could write a string disabling power_state from API. This will do the trick for our case:
API:power_state

IF you want to disable a state from both sources, do that separately. You may have as many disables as you like.

API:online;HISTORY:online

If you fix an issue like that, consider helping other users on the forum thread (click).

ALWAYS REMEMBER: this should always be a temporarly workaround, if you use it in daily business you should probably request a feature or bug fix :)

To remind you disabling it asap, this wil log a warning on every update.

What is config/govee_learning.yaml

Usually you don't have to do anything here - just in case something feels wrong read on:

40:83:FF:FF:FF:FF:FF:FF:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false

Different Govee devices use different settings. These will be learned by the used library, or can be configured by you.

  • set_brightness_max: is autolearned, defines the range to set the brightness to 0-100 or 0-254.
  • get_brightness_max: is autolearned, defines the range how to interpet brightness state (also 0-100 or 0-254).
  • before_set_brightness_turn_on: Configurable by you, default false. When true, if the device is off and you set the brightness > 0 the device is turned on first, then after a second the brightness is set. Some device don't turn on with the set brightness command.
  • config_offline_is_off: Configurable by you, default false. This is useful if your device is e.g. powered by a TV's USB port, where when the TV is off, the LED is also off. Usually we stay in the state we know, this changes this to OFF state when the device disconnects.

Support

Support thread is here: https://community.home-assistant.io/t/govee-led-strips-integration/228516 There you'll also find links to code repositories and their issue trackers.

For bug reports, include the debug log, which can be enabled in configuration YAML + restart:

logger:
  default: warning
  logs:
    homeassistant.components.govee: debug
    custom_components.govee: debug
    govee_api_laggat: debug

Then in Settings - Logs click on “full logs” button and add them to the bug report after removing personal data.

Caveats

You can set a pull interval, but don't set it too low as the API has a limit of 60 requests per minute, and each device needs one request per state pull and control action. If you have more than one lamp use a higher interval. Govee wants to implement a single request for all devices in 2021.

Once the integration is active, you will see all your registered devices, and may control on/off, brightness, color temperature and color.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].