homebridge-ewelink icon indicating copy to clipboard operation
homebridge-ewelink copied to clipboard

[NEW DEVICE] New Sonoff ultimate switches support

Open staryga opened this issue 1 year ago • 10 comments

Hi do you plan to add support for new switches: T5-3C-86, T5-2C-86, T5-1C-86 I tried to add them to homebridge (multiswitch) but request was declined:

[210]

{
  "bindInfos": {
    "scene": 2
  },
  "version": 8,
  "reset_reason": "ESP_RST_SW",
  "fwVersion": "1.1.0",
  "ssid": "N71",
  "bssid": "74:83:c2:24:42:ed",
  "timeZone": 2,
  "switches": [
    {
      "switch": "off",
      "outlet": 0
    },
    {
      "switch": "off",
      "outlet": 1
    }
  ],
  "lightSwitch": "off",
  "lightMode": 0,
  "shock": 1,
  "doNotDisturb": 1,
  "doNotDisturbTime": {
    "from": "22:00",
    "to": "07:00"
  },
  "onEffects": {
    "lightEffect": 1,
    "soundEffect": 1,
    "statusLight": "on",
    "statusLightTop": 1,
    "statusLightBelow": 1,
    "r": 0,
    "g": 0,
    "b": 255,
    "br": 60,
    "volume": 50
  },
  "offEffects": {
    "lightEffect": 2,
    "soundEffect": 2,
    "statusLight": "off",
    "statusLightTop": 1,
    "statusLightBelow": 1,
    "r": 0,
    "g": 0,
    "b": 255,
    "br": 5,
    "volume": 50
  },
  "configure": [
    {
      "startup": "off",
      "enableDelay": 0,
      "width": 19000,
      "outlet": 0
    },
    {
      "startup": "off",
      "enableDelay": 0,
      "width": 1000,
      "outlet": 1
    }
  ],
  "pulses": [
    {
      "pulse": "off",
      "switch": "off",
      "outlet": 0,
      "width": 500
    },
    {
      "pulse": "off",
      "switch": "off",
      "outlet": 1,
      "width": 500
    }
  ],
  "sledOnline": "on",
  "rssi": -57,
  "only_device": {
    "ota": "success",
    "ota_fail_reason": 0
  },
  "staMac": "54:43:b2:70:39:84",
  "addSubDevState": "off",
  "addTimeOut": 10
}

staryga avatar May 10 '23 11:05 staryga

i need to manually add new models to the plugin when they are released.

this device in your logs, is it the 2 channel version? do you own any other models i mean the 1 or 3 channel? is there a 4 channel?

bwp91 avatar May 10 '23 17:05 bwp91

Hi. This is 2 channel model. I only have this one. (Arrived today)

staryga avatar May 10 '23 18:05 staryga

Can you update to the beta version of the plugin and see if this works?

bwp91 avatar May 10 '23 18:05 bwp91

I can see it now in homekit. Wow! That was quick. I see 3 buttons in homekit: switch sw1, switch sw2 and switch. Not sure why 3 buttons not just 2.

staryga avatar May 10 '23 19:05 staryga

one of them is a master switch which controls both

bwp91 avatar May 10 '23 19:05 bwp91

Makes sense! Thanks. I think you can also „Swipe” this new buttons and it is supported in ewelink app to trigger actuons. I guess not possible to expose it to homekit. Or maybe?

staryga avatar May 10 '23 19:05 staryga

Hi! 3-Chanel model here. :) looking forward to support! Many thanks in advance for your efforts!

[TXU01-VR] is not supported, do create a GitHub issue with the following info:
[211] {"bindInfos":{},"version":8,"reset_reason":"ESP_RST_POWERON","fwVersion":"1.1.0","ssid":"JHW2211-2.4","bssid":"50:e6:36:aa:f9:a4","switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1},{"switch":"on","outlet":2}],"lightSwitch":"on","lightMode":4,"shock":1,"doNotDisturb":1,"doNotDisturbTime":{"from":"22:00","to":"07:00"},"onEffects":{"lightEffect":1,"soundEffect":1,"statusLight":"on","statusLightTop":1,"statusLightBelow":1,"r":0,"g":0,"b":255,"br":60,"volume":50},"offEffects":{"lightEffect":2,"soundEffect":2,"statusLight":"off","statusLightTop":1,"statusLightBelow":1,"r":0,"g":0,"b":255,"br":5,"volume":50},"configure":[{"startup":"off","enableDelay":0,"width":50000,"outlet":0},{"startup":"off","enableDelay":0,"width":38000,"outlet":1},{"startup":"off","enableDelay":0,"width":24000,"outlet":2}],"pulses":[{"pulse":"off","switch":"off","outlet":0,"width":500},{"pulse":"off","switch":"off","outlet":1,"width":500},{"pulse":"off","switch":"off","outlet":2,"width":500}],"sledOnline":"on","rssi":-37,"staMac":"54:43:b2:71:b3:68","timeZone":2}.

markus-barta avatar Jun 06 '23 19:06 markus-barta

Beta 4 seems great so far. Any chance to get swipe gesture support? Can I help somehow maybe?

markus-barta avatar Jun 14 '23 06:06 markus-barta

Can you update to the beta version of the plugin and see if this works?

How could a swipe gesture work with the home app?

bwp91 avatar Jun 16 '23 22:06 bwp91

@bwp91 quite simple IMHO. If we had "gesture switches" like gswitch-swipe-l, gswitch-swipe-r, gswitch-three-fingers that would trigger on and off after 1s (automatically) we could easily use them in homekit.

markus-barta avatar Jun 17 '23 18:06 markus-barta