Melissa

Get sensor data

Request URL:
1
POST /provider/fetch
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number" : "{Melissa Serial Number}"
3
}
Copied!
Response:
1
{
2
"provider": {
3
"temp": 16.6, // temperature in celsius
4
"raw_temperature": 24928, //raw sensor data for the ambient temperature
5
"humidity": 43.8, //humidity in %
6
"raw_humidity": 26096 //raw sensor data for the ambient humidity
7
},
8
"_links": {
9
"self": {
10
"href": "/v1/provider/fetch"
11
}
12
}
13
}
Copied!

Sending IR Command to the AC

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Melissa Serial Number}”,
3
"command": "send_ir_code",
4
“state": 1, //0-OFF; 1-ON; 2-Idle
5
"mode": 3, //0-Auto; 1-Fan; 2-Heat; 3-Cool; 4-Dry
6
"temp": 18, //number between 16 and 30 (depends on the codeset)
7
"fan": 0 //0-Auto; 1-Low; 2-Med; 3-High
8
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
2,
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!

Turning OFF/ON the LED light

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Melissa Serial Number}”,
3
"command": "turn_led_off" //turn_led_off-led light off, reset_color-led light on
4
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
7, // 6 - off, 7 - on
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!

Last modified 5mo ago