python-panasonic-comfort-cloud
python-panasonic-comfort-cloud copied to clipboard
code":4300,"message":"Have no authority to the request"
Hello!
I would like to use your history method to capture and virtualize the data. The only problem is that I always get the error code":4300, "message": "Have no authority to the request" when I try to do this. I get the same with the "get device" method
Can anyone help me?
Also, when I run the following, I get:
def login_to_panasonic(username, password): url = "https://accsmart.panasonic.com/auth/login" headers = { "X-APP-TYPE": "1", "X-APP-VERSION": "1.20.0", "user-agent": "G-RAC", "X-APP-TIMESTAMP": "1", "X-APP-NAME": "Comfort Cloud", "X-CFC-API-KEY": "Comfort Cloud", "Accept": "application/json; charset=utf-8", "Content-Type": "application/json; charset=utf-8" } payload = { "language": "0", "loginId": username, "password": password }
response = requests.post(url, headers=headers, data=json.dumps(payload))
if response.status_code == 200:
print("Login successful")
return response.json()
else:
print("Login error:", response.text)
return None
The following error Error during login: {"code":5001, "message": "DB system error due to db system"}
Thx E4sy06