Hi PoltoS,
thanks for getting back to me. The answer to your question is simple: out of habit, I usually try https first, and it worked for ages.
After a bit debugging I now know: somehow either ZWay or the switch device got a firmware update (or both) and since the switch is handing out self-signed certificates or ZWay suddenly cares about it. And by default the switch only accepts https connections in its api. So simply setting ZWay's http device to http results in
Code: Select all
{
"success" : false,
"error" : {
"code" : 7,
"description" : "invalid connection type"
}
}
only if I allow unsecure http in the switch I can use it again with ZWay and it returns
Code: Select all
{
"success" : true,
"result" : {
"switches" : [
{
"switch" : 1,
"active" : false
}
]
}
}
So now it works again, and one day I will care about the switch status enough to enable polling.
Thanks for your help,
rws