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

get_solar throws a GraphQL validation error #6

Open
RobHayden opened this issue Jul 5, 2023 · 2 comments
Open

get_solar throws a GraphQL validation error #6

RobHayden opened this issue Jul 5, 2023 · 2 comments

Comments

@RobHayden
Copy link

RobHayden commented Jul 5, 2023

gql.transport.exceptions.TransportQueryError: {'message': 'Cannot query field "getSolar" on type "Query". Did you mean "getCustomers"?', 'locations': [{'line': 2, 'column': 3}], 'extensions': {'code': 'GRAPHQL_VALIDATION_FAILED'}

@strobejb
Copy link
Owner

strobejb commented Jul 6, 2023

So it looks like Andersen have removed the getSolar endpoint. This was working ok until recently. I'll take a look later on and see where these settings have moved to

@strobejb
Copy link
Owner

strobejb commented Jul 6, 2023

Whilst I fix/remove the getSolar API, you should be able to use a2.get_device_status function to get the various solar values you need. The set_solar function still seems to exist as an endpoint, so I think that should work as well.

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

2 participants