bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

[NEW DEVICE] New Sonoff ultimate switches support #490

Open staryga opened 1 year ago

staryga commented 1 year ago

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
}
bwp91 commented 1 year ago

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?

staryga commented 1 year ago

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

bwp91 commented 1 year ago

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

staryga commented 1 year ago

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.

bwp91 commented 1 year ago

one of them is a master switch which controls both

staryga commented 1 year ago

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?

markus-barta commented 1 year ago

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 commented 1 year ago

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

bwp91 commented 1 year ago

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?

markus-barta commented 1 year ago

@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.