Are you good in Python? I extracted the requests from the source and it’s working. You can test these commands by downloading VS Code and install extension “REST Client”.
If you are going to use the api, create a new user for this since this will log you out from the app.
###
# @name login
POST https://accsmart.panasonic.com/auth/login HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 2.0.0
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{
"language": "0",
"loginId": "***",
"password": "***"
}
###
# @name device
GET https://accsmart.panasonic.com/device/group HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 2.0.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
GET https://accsmart.panasonic.com/deviceStatus/now/{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}} HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 2.0.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
POST https://accsmart.panasonic.com/deviceStatus/control HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 2.0.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{
"deviceGuid": "{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}}",
"parameters": {
// see next post for parameters
}
}