Files
fresh-home/components/packages/openmindsai/update_response_log.yaml
T
2024-07-02 12:20:03 -04:00

19 lines
472 B
YAML

automation:
description: ""
mode: single
trigger:
- platform: state
entity_id:
- sensor.hassio_mindsdb_response
attribute: response_text
condition: []
action:
- service: notify.send_message
target:
entity_id: notify.mindsdb_responses
data:
message: >
"input":"{{ states('input_text.gpt_prompt') }}","output":"{{ state_attr('sensor.hassio_mindsdb_response','response_text')}}"