Ryan780
October 30, 2018, 9:22pm
84
As this thread applies to Sonoff and not smartlife, which has not been officially ported to HE, maybe you want to move this over to the thread about smartlife instead.
I grabbed the driver from erocm123 and imported into Hubitat no problem.
I added my device IP into every field I could but am still getting the error below.
java.net.UnknownHostException: null (off)
All of these controllers worked fine in the ST equivalent setup.
Or you can try to fix it yourself with this info.
I thought I'd jot down a few of the driver porting changes I've encountered. Please add additional ones you find to this list.
Replace physicalgraph with hubitat
Replace variables beginning with data with device.data
Add to params calls that give a java error the following before headers:
requestContentType: "application/json",
Replace pause(int) with pauseExecution(long) (units are milliseconds)
include ‘asynchttp_v1’ is not supported - comment this out and replace affected code with syn…
1 Like