Giter Site home page Giter Site logo

govee-btled-controller's People

Contributors

kabyru avatar testpersonal avatar

Watchers

 avatar

Forkers

roberttwomey

govee-btled-controller's Issues

Only power working

Greetings,

I apologize for the crudeness of this issue, I'm not a coder I'm just trying to get your scripts to work with a Govee H6006 bulb.

The power is working for this bulb, on an off, but that is it. No color changes, no brightness level. It basically comes on to a shade of red and that is it. I've read through Govee reverse engineering documentation until my eyes bled, this isn't my wheelhouse at all. Any idea where to start looking to troubleshoot this?

pip install error

Hi there!

Thank you so much for making this, I really look forward to using it.

Unfortunately, I get this error when I run "pip install -U git+https://github.com/kabyru/govee_btled_windows" from my anaconda env (on Windows 10; formatting is messed up because some of it resembles markdown):

ERROR: Command errored out with exit status 1:
command: 'C:\Users\jonah\Anaconda3\envs\govee\python.exe' 'C:\Users\jonah\Anaconda3\envs\govee\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\jonah\AppData\Local\Temp\tmp866a9q19'
cwd: C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51
Complete output (201 lines):

-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator






--
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
The CMAKE_C_COMPILER:

  cl

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_cmake_test_compile/build/CMakeFiles/CMakeError.log".







-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator - failure


-- Trying "Visual Studio 17 2022 x64 v143" generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 17 2022

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying "Visual Studio 17 2022 x64 v143" generator - failure


-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator






--
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.29.30146.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.29.30146.0
CMake Warning (dev) at C:/Users/jonah/AppData/Local/Temp/pip-build-env-ja7y0u6m/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:162 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.

Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Users/jonah/AppData/Local/Temp/pip-build-env-ja7y0u6m/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:183 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.

Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_cmake_test_compile/build







-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator - success

Configuring Project
Working directory:
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-build
Command:
cmake 'C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.6.4 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\jonah\Anaconda3\envs\govee\libs\python36.lib' '-DPython_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee' '-DPython_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython3_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee' '-DPython3_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE:STRING=Release

-- The C compiler identification is MSVC 19.29.30146.0
-- The CXX compiler identification is MSVC 19.29.30146.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/_winrt.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.Advertisement.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.Background.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.GenericAttributeProfile.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Enumeration.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Foundation.Collections.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Foundation.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Storage.Streams.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/runtime.cpp
-- Found Python3: C:/Users/jonah/Anaconda3/envs/govee/python.exe (found suitable exact version "3.6.4") found components: Interpreter Development Development.Module Development.Embed
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  PYTHON_EXECUTABLE
  PYTHON_INCLUDE_DIR
  PYTHON_LIBRARY
  Python_EXECUTABLE
  Python_FIND_REGISTRY
  Python_INCLUDE_DIR
  Python_ROOT_DIR
  SKBUILD

-- Build files have been written to: C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build
[1/13] Building CXX object CMakeFiles_winrt.dir\cmake_pch.cxx.obj
FAILED: CMakeFiles/_winrt.dir/cmake_pch.cxx.obj
C:\PROGRA2\MICROS2\2019\COMMUN1\VC\Tools\MSVC\14291.301\bin\Hostx86\x64\cl.exe /nologo /TP -D_winrt_EXPORTS -IC:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\cppwinrt -IC:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src -external:IC:\Users\jonah\Anaconda3\envs\govee\Include -external:W0 /DWIN32 /D_WINDOWS /EHsc /d2FH4 /O2 /Ob2 /DNDEBUG -MT /await /bigobj /GR- /permissive- -std:c++17 /YcC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/cmake_pch.hxx /FpC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/./cmake_pch.cxx.pch /FIC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles_winrt.dir\cmake_pch.cxx.obj /FdCMakeFiles_winrt.dir\ /FS -c C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-build\CMakeFiles_winrt.dir\cmake_pch.cxx
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src\pybase.h(939): error C2065: 'PyDateTime_TimeZone_UTC': undeclared identifier
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src\pybase.h(972): error C2065: 'PyDateTime_TimeZone_UTC': undeclared identifier
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 640, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\cmaker.py", line 684, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\cmaker.py", line 716, in make_impl
"An error occurred while building with CMake.\n"

An error occurred while building with CMake.
Command:
cmake --build . --target install --config Release --
Install target:
install
Source directory:
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51
Working directory:
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-build
Please check the install target is valid and see CMake's output for more information.

ERROR: Failed building wheel for bleak-winrt
Successfully built govee-btled-windows
Failed to build bleak-winrt
ERROR: Could not build wheels for bleak-winrt which use PEP 517 and cannot be installed directly

Error when changing multiple lights at once

Sometimes (not always), when trying to change multiple lights in the same program, I get the following error:
Screenshot 2023-04-01 at 1 19 26 PM

This seems related to bleak and multiple calls to asyncio.run, but I'm not sure how to fix it. There are multiple issues on Bleak's page about this:
hbldh/bleak#899
hbldh/bleak#1091

Any help would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.