Hi is there a way to get the output form a response variable into a card for display?
The integration I am working on returns a lot of data, a bit like the weather platform “get_forecasts”. In all the examples I find, the automation is putting the result into an entity, which can then be displayed elsewhere.
But one of the advantages of using response variables is that they can return a large amount of data and shouldn’t be written as the entity state…
Is there a way to store a response so that it can be used elsewhere?
The actual use case is to display tide forecast values in an apex chart, but it is working a bit like a weather service.
So for the weather example I currently have a standard call to get_forecasts:
template:
- trigger:
- platform: time_pattern
minutes: /5
action:
- service: weather.get_forecasts
target:
entity_id: weather.myplace
data:
type: hourly
response_variable: weather_myplace_var
sensor:
- name: weather_myplace
unique_id: weather_myplace
state: "{{ now().isoformat() }}"
attributes:
forecast: "{{ weather_myplace_var['weather.myplace'].forecast }}"
Can weather_myplace_var
be passed over to a lovelace card such as apexchart without being stored in a sensor to get there? The main reason for considering this is that the sensor weather_myplace
is only used for temporary storage but it will get written to the recorder unless I take action to prevent that.