Hi HA experts,
Im having a little issue with an automation that I don't understand because I don't have enough knowledge yet so I hope you can help me.
I have made a rest command:
ollama_weather_report:
url: "http://xxx.xxx.xxx.xxx:11434/api/generate"
method: post
headers:
content-type: "application/json"
payload: '{ "model": "llama3.2:latest",
"prompt": "Generate a fun text for this weather predecition Max temperature tomorrow: 6 °C, Min temperature tomorrow: 2 °C, Precipitation tomorrow: 50%",
"stream": false
}'```
And an automation that calls it:
alias: Generate Weather Report
description: ""
triggers:
- trigger: time_pattern
hours: "*"
minutes: /5
seconds: "0"
conditions: []
actions: - action: rest_command.ollama_weather_report
data: {} - delay: 2
- target:
entity_id: input_text.weather_report
data:
value: "{{ states('sensor.weather_report_output') }}"
action: input_text.set_value
mode: single
When the automation runs this is the trace result:
Executed: March 16, 2025 at 10:35:03 AM
Result:
params:
domain: input_text
service: set_value
service_data:
value: unknown
entity_id:
- input_text.weather_report
target:
entity_id:
- input_text.weather_report
running_script: false
As I see it the script isn't run, but I don't understand why, if run the script from the dev tools I get a resonse. So I'm hoping someone can help me troubleshoot this issue.