Tagged: The BEST option
- This topic has 1 reply, 1 voice, and was last updated 2 weeks, 3 days ago by
RFARDONK.
-
AuthorPosts
-
February 8, 2021 at 12:36 am #1101
RFARDONK
ParticipantHello grzegorz914,
Quite some time ago you helped me creating a REST to do translate a DNSNAME using Google….that is working great.
I have a Sensibo Sky to control my AC. As you will see, i was able to simulate the CURL GET and get a Success 200What i need is to translate the curl into de HMI PAD interface to create the REST.
Some how im not providing the info correctly. Can you tell me which part of the GET should go into the different
fields?? I want to get the Humidity Field.Thank You as always
===================================================
#!/bin/bashcurl -X GET https://home.sensibo.com/api/v2/users/me/pods?
fields=*&apiKey={My_Key} -H “Authorization:
Basic {My_Authorization_String}==”
===================================================
{
“status”: “success”,
“result”: [{
“configGroup”: “stable”,
“macAddress”: “bc:dd:c2:11:f7:86”,
“isGeofenceOnExitEnabled”: false,
“features”: [“softShowPlus”],
“currentlyAvailableFirmwareVersion”: “SKY30044”,
“cleanFiltersNotificationEnabled”: false,
“connectionStatus”: {
“isAlive”: true,
“lastSeen”: {
“secondsAgo”: 73,
“time”: “2021-02-07T23:55:56.230588Z”
}
},
“filtersCleaning”: null,
“acState”: {
“on”: true,
“fanLevel”: “auto”,
“timestamp”: {
“secondsAgo”: 0,
“time”: “2021-02-07T23:57:10.180603Z”
},
“temperatureUnit”: “F”,
“targetTemperature”: 86,
“mode”: “cool”,
“swing”: “stopped”
},
“isOwner”: true,
“mainMeasurementsSensor”: null,
“motionSensors”: [],
“id”: “9TV3vG39”,
“firmwareVersion”: “SKY30044”,
“roomIsOccupied”: null,
“warrantyEligible”: “no”,
“motionConfig”: null,
“measurements”: {
“batteryVoltage”: null,
“temperature”: 24.7,
“humidity”: 89.0,
“time”: {
“secondsAgo”: 73,
“time”: “2021-02-07T23:55:56.230588Z”
},
“rssi”: -37,
“piezo”: [null, null],
“pm25”: 0
},
“isClimateReactGeofenceOnEnterEnabledForThisUser”: false,
“homekitSupported”: false,
“pureBoostConfig”: null,
“smartMode”: null,
“shouldShowFilterCleaningNotification”: false,
“location”: {
“latLon”: [18.3623166363707, -66.1984604224563],
“updateTime”: {
“secondsAgo”: 8732705,
“time”: “2020-10-29T22:12:05Z”
},
“features”: [],
“country”: “Puerto Rico”,
“occupancy”: “n/a”,
“createTime”: {
“secondsAgo”: 39132025,
“time”: “2019-11-13T01:56:45Z”
},
“address”: [“Calle Sauco”, ” Bayam\u00f3n”, ” Toa Alta 00957″],
“geofenceTriggerRadius”: 200,
“subscription”: null,
“id”: “i8scqLrFkP”,
“name”: “Home”
},
“sensorsCalibration”: {
“temperature”: 0.0,
“humidity”: 0.0
},
“tags”: [],
“productModel”: “skyv2”,
“isMotionGeofenceOnEnterEnabled”: false,
“lastHealthcheck”: null,
“temperatureUnit”: “F”,
“schedules”: [{
“nextTime”: “2021-02-08T11:00:00”,
“podUid”: “9TV3vG39”,
“recurringDays”: [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”],
“createTimeSecondsAgo”: 39130119,
“isEnabled”: true,
“createTime”: “2019-11-13T02:28:31”,
“acState”: {
“extra”: {
“scheduler”: {
“climate_react”: null,
“motion”: null,
“on”: true
}
},
“on”: true,
“fanLevel”: “auto”,
“temperatureUnit”: “F”,
“targetTemperature”: 83,
“mode”: “cool”
},
“targetTimeLocal”: “07:00”,
“timezone”: “America/Puerto_Rico”,
“nextTimeSecondsFromNow”: 39769,
“causedBy”: {
“username”: “ramonfardonk”,
“firstName”: “Ramon”,
“lastName”: “Fardonk”,
“email”: “ramon.fardonk@gmail.com”
},
“id”: “JthHxezn9K”
}, {
“nextTime”: “2021-02-08T00:00:00”,
“podUid”: “9TV3vG39”,
“recurringDays”: [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”],
“createTimeSecondsAgo”: 39129922,
“isEnabled”: true,
“createTime”: “2019-11-13T02:31:48”,
“acState”: {
“on”: false,
“fanLevel”: “low”,
“temperatureUnit”: “F”,
“targetTemperature”: 68,
“mode”: “cool”
},
“targetTimeLocal”: “20:00”,
“timezone”: “America/Puerto_Rico”,
“nextTimeSecondsFromNow”: 169,
“causedBy”: {
“username”: “ramonfardonk”,
“firstName”: “Ramon”,
“lastName”: “Fardonk”,
“email”: “ramon.fardonk@gmail.com”
},
“id”: “hb4MEFvMLy”
}, {
“nextTime”: “2021-02-08T18:00:00”,
“podUid”: “9TV3vG39”,
“recurringDays”: [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”],
“createTimeSecondsAgo”: 23419868,
“isEnabled”: true,
“createTime”: “2020-05-12T22:26:02”,
“acState”: {
“extra”: {
“scheduler”: {
“climate_react”: null,
“motion”: null,
“on”: true
}
},
“on”: true,
“fanLevel”: “auto”,
“temperatureUnit”: “F”,
“targetTemperature”: 86,
“mode”: “cool”
},
“targetTimeLocal”: “14:00”,
“timezone”: “America/Puerto_Rico”,
“nextTimeSecondsFromNow”: 64969,
“causedBy”: {
“username”: “ramonfardonk”,
“firstName”: “Ramon”,
“lastName”: “Fardonk”,
“email”: “ramon.fardonk@gmail.com”
},
“id”: “vagdWvqrX3”
}],
“isClimateReactGeofenceOnExitEnabled”: false,
“remoteCapabilities”: {
“modes”: {
“dry”: {
“temperatures”: {},
“swing”: [“stopped”, “rangeFull”]
},
“heat”: {
“swing”: [“stopped”, “rangeFull”],
“temperatures”: {
“C”: {
“isNative”: false,
“values”: [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
},
“F”: {
“isNative”: true,
“values”: [60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86]
}
},
“fanLevels”: [“low”, “medium”, “high”, “auto”]
},
“fan”: {
“swing”: [“stopped”, “rangeFull”],
“temperatures”: {},
“fanLevels”: [“low”, “medium”, “high”]
},
“cool”: {
“swing”: [“stopped”, “rangeFull”],
“temperatures”: {
“C”: {
“isNative”: false,
“values”: [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
},
“F”: {
“isNative”: true,
“values”: [60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86]
}
},
“fanLevels”: [“low”, “medium”, “high”, “auto”]
}
}
},
“serial”: “181902459”,
“accessPoint”: {
“password”: null,
“ssid”: “SENSIBO-I-41990”
},
“remote”: {
“window”: false,
“toggle”: true
},
“room”: {
“icon”: “Lounge”,
“uid”: “bWZzD3dV”,
“name”: “Solar Room”
},
“qrId”: “ACQHHDQUWB”,
“firmwareType”: “esp8266ex”,
“timer”: null,
“remoteFlavor”: “Swimming Grasshopper”,
“isGeofenceOnEnterEnabledForThisUser”: false,
“isMotionGeofenceOnExitEnabled”: false,
“remoteAlternatives”: [“_hisense1fb”, “_whirlpool1f2”, “_whirlpool1f”]
}]
}February 8, 2021 at 1:56 am #1102RFARDONK
ParticipantThis one works perfectly for me as i want “measurements”: temperature, humidity
But i dont know how to use this information to create the REST
curl -X GET https://home.sensibo.com/api/v2/pods/9TV3vG39/?
fields=measurements&apiKey=My_Key{
“status”: “success”,
“result”: {
“measurements”: {
“batteryVoltage”: null,
“temperature”: 26.4,
“humidity”: 78.3,
“time”: {
“secondsAgo”: 31,
“time”: “2021-02-08T01:51:26.332430Z”
},
“rssi”: -35,
“piezo”: [null, null],
“pm25”: 0
}
}
} -
AuthorPosts
- You must be logged in to reply to this topic.