From 94335983818be2bd1491a4fb89ebbdc3f8368116 Mon Sep 17 00:00:00 2001 From: Brian Steere Date: Fri, 14 Oct 2016 10:22:36 -0500 Subject: [PATCH] Update netatmo-connect to use non-deprecated api devicedata has been deprecated in favor of getstationsdata and will be removed at the end of November. *Note* I haven't actually tested this change due to time limitations. Someone should check this out and verify it behaves properly before merging. --- smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy b/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy index 65ed151..699106d 100644 --- a/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy +++ b/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy @@ -387,7 +387,7 @@ def getDeviceList() { state.deviceDetail = [:] state.deviceState = [:] - apiGet("/api/devicelist") { response -> + apiGet("/api/getstationsdata") { response -> response.data.body.devices.each { value -> def key = value._id deviceList[key] = "${value.station_name}: ${value.module_name}"