Support response data for APIServer::send_homeassistant_service_call
#3240
Unanswered
olicooper
asked this question in
Native API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Native API enhancement
I would like to fetch weather forecast updates via the HA service call
weather.get_forecasts
. This returns a JSON response, butAPIServer::send_homeassistant_service_call
does not support returning a response. There is no other way to get weather forecasts in HA v2024.4 onwards so this is the only way forward unfortunately.This will likely also need the request object to support other request keys such as
target
rather than just thedata
andvariable
keys.Use cases
This feature would allow service calls (HA actions) to return response data using the native API which will allow us to read the returned result from calling services such as
weather.get_forecasts
.Anything else?
This is related to #2703 raised in April 2024 and was raised because the HA
2024.4
update broke weather forecasts in my project (see olicooper/esphome-nspanel-lovelace-native#8).Beta Was this translation helpful? Give feedback.
All reactions