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

TreatLife DS03 dimmer not working #473

Open
jlg89 opened this issue May 25, 2024 · 0 comments
Open

TreatLife DS03 dimmer not working #473

jlg89 opened this issue May 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jlg89
Copy link

jlg89 commented May 25, 2024

Describe the bug
I can't get the dimming function to work from HomeKit for my TreatLife DS03 combo switches.

With useBrightness disabled, I can toggle the light on/off from HomeKit, and when on it retains whatever brightness setting was last selected on the switch itself (or in the Tuya app).

With useBrightness enabled, when I first pull up the dimmer in HomeKit, it shows the actual value (i.e. minBrightness to 1000), with the yellow slider extending off the bottom of the screen, instead of scaling to HomeKit's 0-100%.

IMG_0272

As soon as I adjust the slider, it pops to 0-100% mode, but the only places it will "stick" are minBrightness or full on. What's odd is that the button in the main HomeKit screen shows the correct percentage (in this case 50%), but when I tap to pull up the slider it shows 500% initially.

Current config looks like this:

{
            "type": "FanLight",
            "name": "Ceiling Fan",
            "id": "<redacted>",
            "key": "<redacted>",
            "manufacturer": "TreatLife",
            "model": "Ceiling Fan Dimmer Switch DS03",
            "dpBrightness": 10,
            "useBrightness": true,
            "minBrightness": 100,
            "scaleBrightness": 1000,
            "maxSpeed": 4
}

According to tuya-cli, the dpBrightness is 10, minimum brightness is data point 105:

{
  '1': true,
  '3': '4',
  '9': true,
  '10': 1000,
  '105': 100,
  '106': 'mode1',
  '108': 1
}

The log shows odd "unreachable by faulting Service" errors. But the fan portion works, so I'm guessing that isn't a big deal.

[5/25/2024, 10:35:08 AM] [homebridge-tuya] Launched child bridge with PID 62727
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Loaded homebridge-tuya v3.1.1 child bridge successfully
[5/25/2024, 10:35:08 AM] Loaded 2 cached accessories from cachedAccessories.0E356DAD8C99.
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Marked Study Ceiling Fan unreachable by faulting Service.Study Ceiling Fan.On
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Marked Study Ceiling Fan unreachable by faulting Service.Study Ceiling Fan Light.On
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Marked East Bedroom Ceiling Fan unreachable by faulting Service.East Bedroom Ceiling Fan.On
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Marked East Bedroom Ceiling Fan unreachable by faulting Service.East Bedroom Ceiling Fan Light.On
[5/25/2024, 10:35:08 AM] Loaded 4 cached accessories from cachedAccessories.0E41BE9EAD2C.
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Starting discovery...
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Discovery - Discovery started on port 6666.
[5/25/2024, 10:35:08 AM] [homebridge-tuya] Discovery - Discovery started on port 6667.
[5/25/2024, 10:35:10 AM] [homebridge-tuya] Discovered East Bedroom Ceiling Fan (<redacted>) identified as FanLight (3.3)
[5/25/2024, 10:35:10 AM] [homebridge-tuya] East Bedroom Ceiling Fan has a different type (1 vs undefined)
[5/25/2024, 10:35:10 AM] [homebridge-tuya] Unregistering East Bedroom Ceiling Fan
[5/25/2024, 10:35:10 AM] [homebridge-tuya] Connected to East Bedroom Ceiling Fan
[5/25/2024, 10:35:10 AM] [homebridge-tuya] Ready to handle East Bedroom Ceiling Fan (FanLight:3.3) with signature {"1":true,"3":"3","9":true,"10":500,"105":100,"106":"mode1","108":1}
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Discovered Study Ceiling Fan (<redacted>) identified as FanLight (3.3)
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Study Ceiling Fan has a different type (1 vs undefined)
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Unregistering Study Ceiling Fan
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Discovery ended.
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Connected to Study Ceiling Fan
[5/25/2024, 10:35:13 AM] [homebridge-tuya] Ready to handle Study Ceiling Fan (FanLight:3.3) with signature {"1":false,"3":"2","9":true,"10":100,"105":50,"106":"mode3","108":1}

Environment

  • OS: macOS 12.7.5
  • iOS version: 17.5
  • Homehubs: 2x ATV 4K
  • Node Version: 20.13.1
  • Plugin Version: 3.1.1
  • Accessory Type: FanLight
@jlg89 jlg89 added the bug Something isn't working label May 25, 2024
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