Here are a couple of custom sentences and custom intents that will handle the following scenarios in Home Assistant's Assist:
- "turn on the bathroom light and then turn on the bathroom fan"
- "turn off the living room heating in 10 minutes"
- copy the contents of
custom_sentences.yaml
to<your config folder>/custom_sentences/en/chain_delay.yaml
- append the contents of
configuration.yaml
to<your config folder>/configuration.yaml
- restart HA (mandatory to reload the custom sentences)
After the restart, in any Assist session (voice or text) you can chain instructions using "and"/"and then"/"then" or instruct HA to do something after some time.
- due to this bug, you can only chain 2 sentences ("do this and then do that"). 3 or more will fail for some of the sentences.
- stuff like "tell me what is the state of the temperature sensor in 5 seconds" will work, but will do nothing, as delayed intents responses are lost.
- delaying intents depends on how well your STT engine can interpret numerals i.e. "3" instead of "three". If it doesn't want to transcribe numbers and it says it doesn't understand you, there's not much you can do.