rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.94k stars 562 forks source link

dimmer setup #499

Open giluriel opened 3 years ago

giluriel commented 3 years ago

Hi, I'm trying to setup a tuya based dimmer but for some reason it just doesn't work. my (relevant) info from iot.tuya is: (also key and dev id... )

"category": "tgkg",
"name": "dimmer-slide-2",
"product_name": "Smart Dimmer Switch",
"status": [
  {
    "code": "switch_led_1",
    "value": true
  },
  {
    "code": "bright_value_1",
    "value": 500
  },
  {
    "code": "brightness_min_1",
    "value": 10
  },
  {
    "code": "led_type_1",
    "value": "led"
  },
  {
    "code": "work_mode",
    "value": "light_white"
  },
  {
    "code": "light_mode",
    "value": "none"
  }
],
"sub": false,

Can anyone post a configuration.yaml part for this dimmer? Thanks

nschwermann commented 3 years ago

@giluriel did you figure it out?

wjcarpenter commented 3 years ago

I don't have a solution for you, but I have a "me, too". I've been trying to get a couple of "tgkg" dimmers working for a few days and so far have failed to get the dimming part working. I can get localtuya to turn them on and off, but dimming has no effect on the devices. (Mine are Martin Jerry trailing edge dimmers. They work great with LED lighting with the Tuya app.)

wjcarpenter commented 3 years ago

I got mine working. Maybe the stuff I did will help you. My dimmers are Martin Jerry trailing-edge dimmers with category "tgkg". I have one of the sliders and one of the rotary types. Both work. Here are the details of how I got it working: https://community.home-assistant.io/t/support-for-latest-martin-jerry-trailing-edge-dimmers/336033

odu14ick commented 2 years ago

@wjcarpenter huge thanks for this, got mine working too. The drop down options are complete nonsense for me - "True" and "232". I really only needed to remember that for ID i should use the first one and for Brightness - the second one.