simple-sonoff-server icon indicating copy to clipboard operation
simple-sonoff-server copied to clipboard

Sonoff Dual

Open AidenPearce02 opened this issue 7 years ago • 5 comments

I have a problem. How can i use it with Sonoff Dual?

AidenPearce02 avatar May 31 '18 20:05 AidenPearce02

In other words - how to switch on or off device with two or four outlets? Device shown in array of devices, but status request doesn't work (device not found)...

liketaurus avatar Jun 01 '18 06:06 liketaurus

I had same problem, response from Dual

{
  "userAgent": "device",
  "apikey": "111111111-1111-1111-1111-11111111111",
  "deviceid": "XXXXXXX",
  "action": "update",
  "params": {
    "switches": [
      {
        "switch": "on",
        "outlet": 0
      },
      {
        "switch": "on",
        "outlet": 1
      },
      {
        "switch": "off",
        "outlet": 2
      },
      {
        "switch": "off",
        "outlet": 3
      }
    ],
    "configure": [
      {
        "startup": "on",
        "outlet": 0
      },
      {
        "startup": "on",
        "outlet": 1
      },
      {
        "startup": "off",
        "outlet": 2
      },
      {
        "startup": "off",
        "outlet": 3
      }
    ],
    "fwVersion": "1.3.0",
    "rssi": -36
  }
}

ricardojlrufino avatar Jun 02 '18 21:06 ricardojlrufino

My thanks to you. And last question. Can you update sonoff.server.js with those changes?(Sorry for bad English)

AidenPearce02 avatar Jun 09 '18 12:06 AidenPearce02

I Had a look at the proposed changes. They would break all other devices. Hence i can not merge them yet.

mdopp avatar Jun 09 '18 12:06 mdopp

Sorry but a dont have time to do some refractoring... =/

ricardojlrufino avatar Jun 12 '18 02:06 ricardojlrufino