Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I've Tried It All #485

Open
UPSOKen opened this issue Sep 25, 2024 · 1 comment
Open

I've Tried It All #485

UPSOKen opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@UPSOKen
Copy link

UPSOKen commented Sep 25, 2024

Checklist

  • [x ] I have read the common issues wiki page
  • [x ] I have checked to make sure the plugin is up to date

I hope this is the right place to put this. If it's not, and there is a better way to potentially ask questions like this, please let me know and I can remove this, or it can be marked as finished.

I recently installed this into Homebridge, and I immediately setup an LED Strip, and it works pretty well (Colors are strange, but I haven't played with it's config much, I just wanted to get off and on working currently for all 17 lights in my house).

I then moved on to my first Bulb, and it has been an immense pain. I've spent hours now pouring over everything I can. I can not figure out what I'm doing wrong. I've double checked the Device ID, and Device Key, as well as the IP address. I've logged into the machine running Homebridge and I can ping the device without an issue. I've ran through the Tuya API Explorer to find out the exact Datapoints(dp) for the device (I've double checked that they all are correct), but it just refuses to function at all.

I've looked in the logs and I can't even find mentions of it. At one point I did see where it failed to discover it in time, and then it connected to it, and almost instantly disconnected from it. I'd show the logs, but when I go to the plugin logs they just appear blank.

However, Most times - I never see anything about the device in the logs at all.

I've cleared the cached accessories, I've restarted the device (bulb - I've restarted the device running homebridge. I've tried the different color inputs. I've tried everything I can find, and nothing seems to work. Can someone please advise me, if at all possible? Here's my current JSON config (With keys and IDs replaced - device 1 works, device 2 doesn't - be aware that I've tried the various color modes and scales and defaults for device 2):

{
    "devices": [
        {
            "type": "RGBTWLight",
            "name": "Desk Shelf Light Strip",
            "id": "ID1",
            "key": "KEY1",
            "ip": "192.168.40.116",
            "manufacturer": "Govee",
            "dpPower": 20,
            "dpBrightness": 22,
            "dpColorTemperature": 23,
            "dpMode": 21,
            "dpColor": 24
        },
        {
            "type": "RGBTWLight",
            "name": "Office Light Fixture 2",
            "id": "ID2",
            "key": "KEY2",
            "ip": "192.168.40.236",
            "manufacturer": "Govee",
            "dpPower": 20,
            "dpColorTemperature": 24,
            "minWhiteColor": 10,
            "maxWhiteColor": 1000,
            "dpMode": 21,
            "dpColor": 24
        }
    ],
    "platform": "TuyaLan"
}

It's incredibly frustrating because the LED strip works perfectly and instantly, but it's like the other device isn't connecting at all, even though I've verified that Homebridge can connect to it.

@UPSOKen UPSOKen added the bug Something isn't working label Sep 25, 2024
@UPSOKen
Copy link
Author

UPSOKen commented Sep 25, 2024

Here is the information I've extracted using the API Explorer inside Tuya Cloud for the device:

Services:

    Default Service:

        Switch (开关):
            Ability ID: 20
            Access Mode: Read/Write (rw)
            Type: Boolean
            Icon: Power Switch (icon-dp_power)
            Attribute: 641

        Mode (模式):
            Ability ID: 21
            Access Mode: Read/Write (rw)
            Type: Enum
            Range: White, Colour, Scene, Music
            Icon: Mode Switch (icon-dp_mode)
            Attribute: 644

        Brightness (白光亮度):
            Ability ID: 22
            Access Mode: Read/Write (rw)
            Type: Value
            Min Value: 10
            Max Value: 1000
            Step: 1
            Icon: Brightness Control (icon-liangdu1)
            Attribute: 644

        Temperature (冷暖值):
            Ability ID: 23
            Access Mode: Read/Write (rw)
            Type: Value
            Min Value: 0
            Max Value: 1000
            Step: 1
            Icon: Temperature Control (icon-dp_half)
            Attribute: 644

        Color Adjustment (彩光):
            Ability ID: 24
            Access Mode: Read/Write (rw)
            Type: String
            Max Length: 255
            Description: Adjusts color, brightness, and saturation
            Icon: Color Control (icon-dp_mode)
            Attribute: 512

        Scene (场景):
            Ability ID: 25
            Access Mode: Read/Write (rw)
            Type: String
            Max Length: 255
            Description: Lighting scene control
            Icon: Scene Mode (icon-dp_mode)
            Attribute: 512

        Countdown (倒计时):
            Ability ID: 26
            Access Mode: Read/Write (rw)
            Type: Value
            Min Value: 0 seconds
            Max Value: 86400 seconds
            Step: 1 second
            Unit: Seconds
            Icon: Timer (icon-a_nav_timer)
            Attribute: 640

        Music Rhythm (音乐律动):
            Ability ID: 27
            Access Mode: Write (wr)
            Type: String
            Max Length: 255
            Description: Uses an app algorithm to synchronize lights with music
            Icon: Music Mode (icon-dp_mic)
            Attribute: 128

        Real-time Adjustment (实时调节):
            Ability ID: 28
            Access Mode: Write (wr)
            Type: String
            Max Length: 255
            Description: Allows real-time preview adjustment
            Icon: Real-time Control (icon-dp_box2)
            Attribute: 640

        Rhythm Mode (生物节律):
            Ability ID: 30
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Automatically adjusts brightness and color temperature based on body rhythm
            Icon: Rhythm Mode (icon-dp_time3)
            Attribute: 640

        Sleep Mode (灯光助眠):
            Ability ID: 31
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Gradual light dimming to help with sleep
            Icon: Sleep Mode (icon-dp_sleep)
            Attribute: 640

        Wakeup Mode (灯光唤醒):
            Ability ID: 32
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Gradual light brightening to wake you up
            Icon: Wakeup Mode (icon-dp_sun)
            Attribute: 640

        Power Memory (断电记忆):
            Ability ID: 33
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Remembers the light’s status after a power outage
            Icon: Power Memory (icon-dp_lightning)
            Attribute: 640

        Do Not Disturb (停电勿扰):
            Ability ID: 34
            Access Mode: Read/Write (rw)
            Type: Boolean
            Description: Prevents lights from turning on after a power outage, disturbing users
            Icon: Do Not Disturb (icon-dp_sleep)
            Attribute: 640

        Cycle Timing (循环定时):
            Ability ID: 209
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Automatically cycles light on and off, useful for plant lighting
            Icon: Cycle Timer (icon-dp_time)
            Attribute: 128

        Random Timing (灯光看家):
            Ability ID: 210
            Access Mode: Read/Write (rw)
            Type: Raw
            Max Length: 255
            Description: Simulates lighting behavior when people are at home
            Icon: Random Timer (icon-dp_time3)
            Attribute: 128
            ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants