#Hi, I'm trying to get "assist" to work
1 messages · Page 1 of 1 (latest)
I have the following yaml files:
in configuration.yaml (Note: I tried to "whitelist_external_dirs:" the "- /config/custom_sentences/en/" but it didn't work)
tts:
- platform: google_translate
service_name: google_say
conversation:
intent_script:
LivingRoomTemperature:
speech:
text: It is currently {{ states('sensor.living_rm_6_temperature') }} degrees in the living room.
SetTemperature:
action:
service: "number.set_value"
data:
entity_id: "{{ heater }}"
number: "{{ degrees }}"
speech:
text: "Temperature changed to {{ degrees }}"
in /homeassistant/custom_sentences/en/temperature.yaml
language: "en"
intents:
LivingRoomTemperature:
- What is the temperature in the living room
- What is the living room temperature
- living room temperature
SetTemperature:
data:
- sentences:
"(set|change) {heater} to {degrees} [degrees]"
lists:
heater:
values:
- in: "office"
out: number.select_heater1_temp_42_95degf
- in: "bedroom"
out: number.select_heater2_temp_42_95degf
- in: "living room"
out: number.select_heater3_temp_42_95degf
- in: "dining room"
out: number.select_heater4_temp_42_95degf
degrees:
range:
from: 42
to: 80
In /homeassistant/custom_sentences/en/responses.yaml
language: "en"
responses:
intents:
SetTemperature:
Note: The following code works fine when inside configuration.yaml without the above code:
conversation:
intents:
LivingRoomTemperature:
- What is the temperature in the living room
- What is the living room temperature
- living room temperature
intent_script:
LivingRoomTemperature:
speech:
text: It is currently {{ states('sensor.living_rm_6_temperature') }} degrees in the living room.