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

Add support for service calls that return data such as todo/get_items #1891

Closed
1 task done
bbrendon opened this issue Dec 5, 2023 · 3 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@bbrendon
Copy link
Contributor

bbrendon commented Dec 5, 2023

Is there an existing feature request for this?

  • I have searched the existing issues

Your feature request

Right now, if you do a service call such as:

a = self.ad_api.call_service('todo/get_items', entity_id='todo.chores', return_result=True)

Appdaemon says:

appdaemon  | 2023-12-04 21:17:03.183763 INFO AppDaemon: Calling initialize() for ToDo
appdaemon  | 2023-12-04 21:17:03.191523 WARNING HASS: Error calling Home Assistant service default/todo/get_items
appdaemon  | 2023-12-04 21:17:03.191707 WARNING HASS: Code: 500, error: 500 Internal Server Error
appdaemon  |
appdaemon  | Server got itself in trouble
@bbrendon bbrendon added the enhancement New feature or request label Dec 5, 2023
@Tomasinjo
Copy link

Any ETAs on that? I've read on Discord that it's not that simple to implement this.
Any workarounds available?

@chatziko
Copy link

chatziko commented Feb 2, 2024

Duplicate of #1837.

Checkout the workaround at the end.

@acockburn
Copy link
Member

We are looking at this - it means switching from the HASS REST API to using the stream with is a fairly substantial change, but necessary for other reasons.

Closing as duplicate

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

No branches or pull requests

4 participants