Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup function gives error #125

Open
mptheone opened this issue Dec 17, 2022 · 4 comments
Open

backup function gives error #125

mptheone opened this issue Dec 17, 2022 · 4 comments

Comments

@mptheone
Copy link

Hello,
I wanted to use with the evohome api the backup schedule feature.
See below my errors.

grafik

@watchforstock
Copy link
Owner

The first line of that output implies you have a formatting issue in your code (which Python can be very particular about). See if you can sort that out and then try again as it may be causing the subsequent issue.

@a-wicks
Copy link

a-wicks commented Sep 24, 2023

Trying to get my heating setup for the winter ahead I have experienced the same issue today. The code was working fine last time I ran it (probably spring-time this year).

This is the line throwing the error: self.client.zone_schedules_backup(self.schedule_backup_filename) and this is the error requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://tccna.honeywell.com/WebAPI/emea/api/v1/temperatureZone/8327766/schedule Any ideas how to proceed?

@a-wicks
Copy link

a-wicks commented Dec 6, 2023

Trying to get my heating setup for the winter ahead I have experienced the same issue today. The code was working fine last time I ran it (probably spring-time this year).

This is the line throwing the error: self.client.zone_schedules_backup(self.schedule_backup_filename) and this is the error requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://tccna.honeywell.com/WebAPI/emea/api/v1/temperatureZone/8327766/schedule Any ideas how to proceed?

I found the cause for the error I was experiencing - it was due to a ghost zone. I managed to remove this by removing and then re-adding my setup via the website and then I was able to successfully backup

@zxdavb
Copy link
Contributor

zxdavb commented Dec 6, 2023

@watchforstock Andrew, I had a similar problem, wrapping each xxx.schedule() in zone_schedules_backup() with a try did the trick:

try:
    schedule = zone.schedule()
except HttpError:
    _LOGGER.warning(...
    schedule = {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants