-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
How to get a response when using callService and calendar.list_events? #421
Comments
Did you figure this out @tonka3000 ? Running into the same issue |
@shannonhochkins Sadly no. Still not sure how to do it. |
I got it to work using sendMessagePromise, did you want me to show you? |
You're not by chance using ha-component-kit are you? |
Sure
No. I build https://www.raycast.com/tonka3000/homeassistant |
With sendMessagePromise from the Connection object,
This gave me a response correctly, however the summary html is stripped out and replaced with new line characters, if you want the html value of the event, you'll need to use the api, start/end dates as Date values
keep in mind you'll need to enable api: in the configuration of home assistant to use the api |
I've been building something completely different, but there might be some reference there for you - the calendar card is still in development |
@shannonhochkins The project looks awesome. Great work 🎉 Yeah, we building something different but share the js lib in common. Thanks for your snippet, I will try to use it your way. |
Hi,
I try to use
callService
to get the calendar events of an entity. I have an issue because I always get the errorThe message make sense but I could not find a way to add the response variable as it is done on the service side. I either became an error from typescript or an error from the server that the key is not allowed.
How can I get response data via
callService
?Here is my code snippet.
My Home Assistant instance is on 2023.9.2.
Thanks in advance
Michael
The text was updated successfully, but these errors were encountered: