Giter VIP home page Giter VIP logo

govee-api-ble's People

Contributors

astusrush avatar softgrass avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

astusrush

govee-api-ble's Issues

Characteristic Write Request failed: Attribute can't be written (False, False, b'')

Following the steps in the readme:

from govee_api_ble import GoveeDevice
my_device = GoveeDevice('D4:AD:FC:33:0A:D9')
my_device.setPower(False)
Characteristic Write Request failed: Attribute can't be written
(False, False, b'')

Some diagnostic info from gatttool
Characteristics:

handle: 0x0002, char properties: 0x08, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0009, char properties: 0x12, char value handle: 0x000a, uuid: 00010203-0405-0607-0809-0a0b0c0d2b10
handle: 0x000d, char properties: 0x06, char value handle: 0x000e, uuid: 00010203-0405-0607-0809-0a0b0c0d2b11
handle: 0x0012, char properties: 0x1c, char value handle: 0x0013, uuid: f000ffc1-0451-4000-b000-000000000000
handle: 0x0016, char properties: 0x1c, char value handle: 0x0017, uuid: f000ffc2-0451-4000-b000-000000000000

Mac adress won't assign

Screenshot_20220806-210247_Pydroid 3.jpg

import asyncio
import weatherbug_spark
from govee_api_ble import GoveeDevice


async def main():
    #South Pool
    data1 = await weatherbug_spark.get_data(39.5842042, -104.9077378)    
    roundeddata1 = round(data1.closestPulseDistance,2)
    print("South Pool Strike Distance= ",roundeddata1);
    my_device = GoveeDevice(7C:A6:B0:1F:8E:63)
    my_device.setPower(True) # Turns device on
    
    #Middle of Centennnial
    data3 = await weatherbug_spark.get_data(39.579231, -104.876694)
    roundeddata3 = round(data3.closestPulseDistance,2) 
    print("Middle Of Centennial Strike Distance= ",roundeddata3)
    
    #Centennial Airport
    data2 = await weatherbug_spark.get_data(39.5795, -104.8463)
    roundeddata2 = round(data2.closestPulseDistance,2) 
    print("Centennial Airport Strike Distance= ",roundeddata2)
    
    print(" ")
    print("Pool Status: ")
    if roundeddata1 >= 30:
        print("Not even Close")
    elif roundeddata1 >= 10:
        print("Its getting there")
    elif roundeddata1 > 6:
        print("Nearly there")
    elif roundeddata1 > 5:
        print("Close the pool")
    elif roundeddata1 < 3:
        print("Kick everyone out")
        
if __name__ == "__main__":
    asyncio.run(main())
    

No route to host

Using a Raspberry PI 4 (Ubuntu server 20.4) and a Govee led strip

When running this code

from govee_api_ble import GoveeDevice
my_device = GoveeDevice('7C:A6:B0:1F:8E:63')
my_device.setPower(True) # Turns device on

It gives me this error
Screenshot_20220807-150539_Putty SSH.jpg

H6139 model also mostly working

Hi, thanks for building and documenting this!

Just commenting to say the H6139 model is also working, you may want to add this to the README - At least the power on/off, setColor, setBrightness, setScene and setBrightness abilities. The setColorMusic might not be working for this specific model, haven't fully tested it.

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.