Multiple Alerts Returned Are Not Unique

When there are more than one alerts on a thermostat the API is returning the correct number of alerts but each alert message is the same (it is a repeat of the first alert). My code uses .NET but I extracted the txt and reproduced the issues using CURL. The necessary details are below.

The following have been changed or remove:
============================================
Name of Thermostat
Thermostat ID
Access Token
Client ID

CURL Commands:
============================================
curl -v -k -X POST --data-urlencode @message1.txt -H "Content-Type: application/json" -H "Authorize: Bearer MY_ACCESS_TOKEN" "https://api.ecobee.com/home/api/1/the..."

message1.txt: {"functions":[{"type":"sendMessage","params":{"text":"Test alert message 1"}}],"selection":{"selectionType":"thermostats","selectionMatch":"100000000001"}}

curl -v -k -X POST --data-urlencode @message2.txt -H "Content-Type: application/json" -H "Authorize: Bearer MY_ACCESS_TOKEN" "https://api.ecobee.com/home/api/1/the..."

message2.txt: {"functions":[{"type":"sendMessage","params":{"text":"Test alert message 2"}}],"selection":{"selectionType":"thermostats","selectionMatch":"100000000001"}}

curl -v -k -X POST --data-urlencode @message3.txt -H "Content-Type: application/json" -H "Authorize: Bearer MY_ACCESS_TOKEN" "https://api.ecobee.com/home/api/1/the..."

message3.txt: {"functions":[{"type":"sendMessage","params":{"text":"Test alert message 3"}}],"selection":{"selectionType":"thermostats","selectionMatch":"100000000001"}}

curl -v -k -X GET -H "Content-Type: text/json" -H "Authorization: Bearer MY_ACCESS_TOKEN" "https://api.ecobee.com/home/api/1/the..."

Response
============================================
Response of last curl command shows that all three messages are returning as the same (first) message.

{
"page": {
"page": 1,
"totalPages": 1,
"pageSize": 1,
"total": 1
},
"thermostatList": [
{
"identifier": "100000000001",
"name": "THERMOSTAT NAME",
"thermostatRev": "130723004521",
"isRegistered": true,
"modelNumber": "idtSmart",
"lastModified": "2013-07-23 00:45:21",
"thermostatTime": "2013-07-27 20:03:44",
"utcTime": "2013-07-28 01:03:44",
"alerts": [
{
"acknowledgeRef": "d0f9f13ff26bc69a800025672861",
"date": "2013-07-27",
"time": "15:56:53",
"severity": "high",
"text": "Test alert message 1",
"alertNumber": 7002,
"alertType": "message",
"isOperatorAlert": false,
"reminder": "2008-01-02",
"showIdt": true,
"showWeb": true,
"sendEmail": true,
"acknowledgement": "unacknowledged",
"remindMeLater": false,
"thermostatIdentifier": "100000000001"
},
{
"acknowledgeRef": "d0f9f13ff26bc69a800025672861",
"date": "2013-07-27",
"time": "15:58:11",
"severity": "high",
"text": "Test alert message 1",
"alertNumber": 7002,
"alertType": "message",
"isOperatorAlert": false,
"reminder": "2008-01-02",
"showIdt": true,
"showWeb": true,
"sendEmail": true,
"acknowledgement": "unacknowledged",
"remindMeLater": false,
"thermostatIdentifier": "100000000001"
},
{
"acknowledgeRef": "d0f9f13ff26bc69a800025672861",
"date": "2013-07-27",
"time": "15:58:30",
"severity": "high",
"text": "Test alert message 1",
"alertNumber": 7002,
"alertType": "message",
"isOperatorAlert": false,
"reminder": "2008-01-02",
"showIdt": true,
"showWeb": true,
"sendEmail": true,
"acknowledgement": "unacknowledged",
"remindMeLater": false,
"thermostatIdentifier": "100000000001"
}
]
}
],
"status": {
"code": 0,
"message": ""
}
}
1 person has
this problem
+1
Reply