logo elektroda
logo elektroda
X
logo elektroda

DETA Grid Connect 6952HA with OpenBeken: Button LEDs Always On Despite Relay Control

rohanb 84 4
ADVERTISEMENT
  • #1 21775241
    rohanb
    Level 3  
    Hi I have a DETA Grid Connect Smart Switch 2 Way 2 Gang (6952HA)

    ESP Home link is https://devices.esphome.io/devices/deta-grid-connect-two-gang-two-way-6952ha/

    which matches the pinouts when I flashed it with openbeken

    Device configuration, as extracted from Tuya:
    - Button (channel 1) on P26
    - WiFi LED on P24
    - Relay (channel 2) on P6
    - Button (channel 2) on P23
    - Relay (channel 1) on P14

    below is what was extracted

    {
    "rl1_lv":"1",
    "netled_lv":"0",
    "bt_type":"1",
    "bt1_pin":"26",
    "rand_dpid":"18",
    "net_trig":"2",
    "cd_flag2":"1",
    "led_dp":"15",
    "jv":"1.1.0",
    "i_dctr1_pin":"7",
    "backlit_select":"0",
    "nety_led":"0",
    "i_dctr2_lv":"0",
    "netled_pin":"24",
    "total_stat":"2",
    "bt1_lv":"0",
    "reset_t":"5",
    "rl2_lv":"1",
    "ch_flag1":"1",
    "inch_dp":"19",
    "module":"CB3S",
    "dctrl_select":"2",
    "ch_cddpid1":"7",
    "init_conf":"14",
    "rl2_pin":"6",
    "light_status_select":"1",
    "zero_select":"0",
    "i_dctr2_pin":"8",
    "bt2_pin":"23",
    "ch_cddpid2":"8",
    "i_dctr1_lv":"0",
    "backlit_dp":"16",
    "cyc_dpid":"17",
    "ch_num":"2",
    "bt2_lv":"0",
    "rl1_pin":"14",
    "netn_led":"0",
    "ch_dpid1":"1",
    "ch_dpid2":"2",
    "crc":"46"
    }

    My issue is the relay and buttons operate fine but the led's in each button are always on regardless of what I do

    Any idea what I am doing wrong

    Thank You
  • ADVERTISEMENT
  • Helpful post
    #2 21775365
    divadiow
    Level 36  
    You're not doing anything wrong, just a little more config. The LED is staying as WifiLED role. The states of which are flashing when connecting to wifi and solid when connected.

    add a little autoexec.bat to change the role of that IO once wifi is connected.

    https://www.elektroda.com/rtvforum/topic4012418.html#20804036


    Code: JSON
    Log in, to see the code
  • ADVERTISEMENT
  • #3 21775385
    rohanb
    Level 3  
    Hi. Sorry, I should have done a little more explaining.

    Apart from the Wi-Fi LED (which I can control), there are 2 LEDs in each press button. In previous ones I have flashed, they follow the relay state, but these do not.

    In ESPHome, they comment about 2 other inputs P7 and P8

    P24 Status LED (inverted)
    P26 Button 1 (inverted)
    P23 Button 2 (inverted)
    P14 Relay 1 and Button 1 LED
    P6 Relay 2 and Button 2 LED
    P7 Light 1 activation status, taking into account the local activation (this device) xor the remote activation (another device) (inverted)
    P8 Light 2 activation status, taking into account the local activation (this device) xor the remote activation (another device) (inverted)

    I have tried to push these high and low and it changes nothing.
  • ADVERTISEMENT
  • Helpful post
    #4 21775415
    divadiow
    Level 36  
    oh i see. how about dInput_n or dInput
  • #5 21775477
    rohanb
    Level 3  
    Hi
    I just tried that, and no change to the LEDs, but it does act as a secondary toggle to the relays.
ADVERTISEMENT