I downloaded the new driver and when I try and login it generates a MFA token, what do I do with that?
Update: So I verified via email and now the error goes away but none of the buttons seem to work, this is the error log after pressing each button:
dev:20582020-11-10 05:05:11.433 pm infoExecuting polling...
dev:20582020-11-10 05:05:11.039 pm infoRefreshing SimpliSafe state...
dev:20582020-11-10 05:05:07.832 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.strobe() is applicable for argument types: () values: []
Possible solutions: home(), asType(java.lang.Class), hashCode(), run(), getTime(), poll() (strobe)
dev:20582020-11-10 05:05:04.611 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.siren() is applicable for argument types: () values: []
Possible solutions: run(), run(), grep(), sleep(long), grep(java.lang.Object), run(java.io.File, [Ljava.lang.String;) (siren)
dev:20582020-11-10 05:05:01.692 pm infoExecuting polling...
dev:20582020-11-10 05:05:00.582 pm infoExecuting polling...
dev:20582020-11-10 05:04:54.456 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.off() is applicable for argument types: () values: []
Possible solutions: run(), home(), poll(), run(), any(), is(java.lang.Object) (off)
dev:20582020-11-10 05:04:51.294 pm debugAlarm SET to HOME Error: groovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.httpPost() is applicable for argument types: (java.util.LinkedHashMap) values: [[uri:https://api.simplisafe.com/v1/ss3/subscriptions/.../state/home, ...]]
dev:20582020-11-10 05:04:50.920 pm infoSetting SimpliSafe mode to 'Home'
dev:20582020-11-10 05:04:50.821 pm infoExecuting polling...
dev:20582020-11-10 05:04:44.068 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.both() is applicable for argument types: () values: []
Possible solutions: with(groovy.lang.Closure), home(), poll(), each(groovy.lang.Closure), notify(), wait() (both)
dev:20582020-11-10 05:04:40.446 pm debugAlarm SET to AWAY Error: groovy.lang.MissingMethodException: No signature of method: user_driver_tobycth3_SimpliSafe_1348.httpPost() is applicable for argument types: (java.util.LinkedHashMap) values: [[uri:https://api.simplisafe.com/v1/ss3/subscriptions/.../state/away, ...]]
dev:20582020-11-10 05:04:40.093 pm infoSetting SimpliSafe mode to 'Away'
I think I found the issue, I used the old code for the setState
function and it now works, the response part was missing in the new code:
def setState (alState){
//Check Auth first
checkAuth()
def timeout = false;
if (alState == "off")
{
try {
httpPost([ uri: getAPIUrl("alarmOff"), headers: state.auth.respAuthHeader, contentType: "application/json; charset=utf-8" ]){response ->}
} catch (e) {
timeout = true;
log.debug "Alarm SET to OFF Error: $e"
}
}
else if (alState == "home")
{
try {
httpPost([ uri: getAPIUrl("alarmHome"), headers: state.auth.respAuthHeader, contentType: "application/json; charset=utf-8" ]){response ->}
} catch (e) {
timeout = true;
log.debug "Alarm SET to HOME Error: $e"
}
}
else if (alState == "away")
{
try {
httpPost([ uri: getAPIUrl("alarmAway"), headers: state.auth.respAuthHeader, contentType: "application/json; charset=utf-8" ]){response ->}
} catch (e) {
timeout = true;
log.debug "Alarm SET to AWAY Error: $e"
}
}
else
{
log.info "Invalid state requested."
}
//If not a timeout, we can poll immediately, otherwise wait 10 seconds
if (!timeout) {
poll()
} else {
//There was a timeout, so we can't poll right away. Wait 10 seconds and try polling.
runIn(10, poll)
}
}