question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First of all, you can pretty much add the Dual R2 to the list of devices that work! I’ve got one of these and your integration picks it up and it works, so that’s a good thing.

However, it appears I can’t use the “device class” to differentiate between the two switches in the unit, it seems to just default to “switch” (unless I set the default class, in which case they both report as that instead). It’s not a massive issue for me as they are both technically switches and I can work around it, but I thought you should know about it.

For info, the entity IDs for these is as follows: {class}.sonoff_{device ID}_{switch number} Where {switch number} is 1 or 2, for the two switches.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leopold005commented, Apr 15, 2020

D’oh!

That’s fixed it. Sorry for being such a Mr. Thicky. I can confirm the Dual R2 works perfectly!

0reactions
AlexxITcommented, Apr 15, 2020
sonoff:
  username: !secret myusername
  password: !secret mypassword
  reload: always
  devices:
    1000a8bf27:  # Sonoff Dual in shed
      device_class: [light, switch]
Read more comments on GitHub >

github_iconTop Results From Across the Web

SONOFF DUAL: WiFi Smart Switch to control 2 devices
SONOFF DUAL is a 2-channel WiFi wireless smart switch that can connect and remotely control two home appliances and devices at the same...
Read more >
sonoff dual r2 - Amazon.com
SONOFF Mini R2 10A Smart WiFi Wireless Light Switch, Universal DIY Module for Smart Home Automation Solution, Works with Alexa & Google Home...
Read more >
SONOFF DUALR2 WiFi Wireless Smart Switch - Itead
SONOFF DUALR2 is a WiFi based 2 gang switch that can connect and independently control two connected appliances or lights. This simply means...
Read more >
Sonoff Dual R2 - Tasmota
Sonoff Dual R2 is the replacement for Sonoff Dual. Compared to the Dual the main differences/improvements for R2 are: * As the second...
Read more >
Sonoff Dual Two Gang WiFi Smart Switch Installation Guide
Need to control two device from one Smart Switch? Sonoff Dual is for You! The Sonoff Dual is a WiFi based 2 gang...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found