Hello,
snips.say_action allows the sending of customData
can you add ability to read hermes “custom_data” value on intent_script platform like siteId, … etc?
So we can improve dialog directly on intent without make other automations
Basic ex:
on Rhasspy:
[Bye]
bye
[Hello]
hi | hello
[YesNo]
(yes | no){answ}
on Home Assistant:
snips:
intent_script:
Bye:
action:
- service: snips.say_action
data:
site_id: '{{ site_id }}'
custom_data: 'securety'
text: "Do you want to activate the alarm while you’re away?"
intent_filter:
- YesNo
Hello:
action:
- service: snips.say_action
data:
site_id: '{{ site_id }}'
securety: 'lights_on'
text: "Welcome to home, can I turn the lights on for you?"
intent_filter:
- YesNo
YesNo:
action:
- condition: template
value_template: '{{ answ == "yes" }}'
- if: '{{ custom_data == "securety" }}'
then:
- service: alarm_control_panel.alarm_arm_home
- if: '{{ custom_data == "lights_on" }}'
then:
- service: light.turn_on
data:
entity_id: light.hall