You don’t just need a DTH, you also have to flash custom firmware to the device. I believe the firmware for the sonoff basic should work but I it won’t allow you to use the reed switch also.
[image]
2017_10_04 Update: If the flashing method in this first post does not work for your device, try the method mentioned in this post:
2017_05_10 Update: Sonoff Dual - Firmware and device handler and child device handler . Flashing info here . Sonoff 4CH - Firmware and device handler and child device handler .
2017_01_21 Update: Release of firmware and SmartApp updates for the Sonoff Touch and Sonoff S20 . Picture for flashing Sonoff Touch in this post .
2016_10_14 Update: I have been playing with the Sonoff TH (16 Amp Version) and am finished with a SmartThings capable firmware for it. This device has a 10 & 16 Amp version and support for a temperature sensor attachment. The device handler supports both temperature and humidity. Here is the firmware & here is the device handler . You …
For that you’d have to use the Tasmota firmware and I’ve never had much luck with that. But it does look like there’s a new DTH for Tasmota.
# Sonoff-Tasmota
SmartThings device handler for Sonoff-Tasmota firmware (https://github.com/arendst/Sonoff-Tasmota).
# New Device Handler Implementation Available
Please see the new 'Tasmota' device handler implementation.
https://github.com/BrettSheleski/SmartThingsPublic/tree/master/devicetypes/brettsheleski/tasmota.src
This device handler should continue to function, but no meaningful further development will occur.
## Instructions
### Add Device Handler
1. Log in to the SmartThings IDE (https://graph.api.smartthings.com/)
2. Go to `My Device Handlers`
3. Click `Create New Device Handler`
4. In the `From Code` tab paste in the code from https://github.com/BrettSheleski/SmartThingsPublic/blob/master/devicetypes/brettsheleski/sonoff-tasmota.src/sonoff-tasmota.groovy
5. Click `Create`
6. Click `Publish` --> `For Me`
### Add Device
1. Log in to the SmartThings IDE (https://graph.api.smartthings.com/)
This file has been truncated. show original