I have a script that HASS is injecting code into, and I cannot figure out how to make it stop…
This is the script:
action: conversation.process
metadata: {}
data:
agent_id: conversation.chatgpt
text: >-
"You are waking Jim up, greet him in a funny way. The time and date is {{
now().strftime('%A %B %d') }} (don't include the seconds), tell me the date
and time. What is today's forecast? Also tell me that today is {{
state_attr( 'calendar.dishes', 'message') }}, Tell me a funny fact about
this day in history. Finish all this by telling me that I need to get out of
bed in a funny way."
response_variable: reply
The script is pretty straight forward, and works, but it also (for some unknown reason) calls another of my scripts through a small sextion that is injected by HASS (and not written by me, or even included in the raw YAML).
This is what the trace looks like:
Executed: December 20, 2024 at 5:20:03 AM
Result:
params:
domain: conversation
service: process
service_data:
agent_id: conversation.chatgpt
text: >-
"You are waking Jim up, greet him in a funny way. The time and date is
Friday December 20 (don't include the seconds), tell me the date and time.
What is today's forecast? Also tell me that today is Dad Dishes, Tell me a
funny fact about this day in history. Finish all this by telling me that I
need to get out of bed in a funny way."
target: {}
running_script: false
child_id:
domain: script
item_id: announce
run_id: e2b6791e36d752693649c8b71db12a7d
Where is this “child_id” section coming from? It’s throwing errors in my log because my announce script requires two variables when run. I don’t want that script to be called at all anyway…