#is there a way to reuse "set conversation response" scripts?

1 messages · Page 1 of 1 (latest)

safe geyser
#

I have a few automations that are varying night routines, and they all converge onto "set conversation response" to a random message, but it seems when its called from other automations or scripts, it gets ignored.
how can i reuse this?

#

like sentence triggers

#

but if the "set conversation response" is inside a script, it doesnt work

flat bane
#

As the first sentence in the Action description states "The set_conversation_response script action allows returning a custom response when an automation is triggered by a conversation engine"... what you are showing is not an automation using a Sentence/conversation trigger.

Use a TTS or Notify action. Make sure to pass the device ID of the initiating device to the script so you can use it as a target.

Another option would be to set your random response generator up as a custom template macro. That would let you use set_conversation_response in the originating automations while still only maintaining a single copy of the response list.

nova zephyr
safe geyser
safe geyser
safe geyser
safe geyser
# nova zephyr Neat!

My good morning routine has something similar
Once I figure out this specific issue I'll share whatever I end up making

nova zephyr
#

I'll keep an eye out then!

flat bane
safe geyser
safe geyser
#

Starting to wonder if maybe MCP assist just handles sentence trigger responses weirdly

rigid token
#

Logically the below may work (or I might me totally off topic)

  • use Helper | Random | Sensor to generate a number between a range (set maximum equal to total number of responses).

  • Each response is a numeric variable and based on the number generated the corresponding phrase is called.