Most of my automations are manipulating devices in HA - eg “turn on/off the study light” - which are already handled by Voice Assist
According to the documentation for “Sentence” node in node-RED:
A sentence trigger fires when Assist matches a sentence from a voice assistant using the default conversation agent.
I copied the example … but it seems to leave out as much as it mentions. Seems exceedingly easy to feed a text command in to Assist; but I don’t see much value for that. The example “sentence” node appears to be missing information; I am particularly puzzled at the “Expose As” parameter.
Looking through my Rhasspy sentences there are not many which will need node-RED. I have added these to a node-RED “Sentence” node
and to configuration.yaml
automation:
trigger:
- platform: conversation
command:
- "( what time is it [please] | whats the time )"
- "good morning"
- "( Dinner time | Time for dinner [please] )"
- "( Goodnight | good night | nighty night | night night )"
Reboot - too often I have found that a restart hasn’t made a difference - and try again
When I ask, I hear a message “Sorry, I’m not aware of any device called time”.
In the Whisper logs:
INFO:faster_whisper:Processing audio with duration 00:01.510
INFO:wyoming_faster_whisper.handler: What is the time?
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.9/dist-packages/wyoming/server.py:31> exception=ConnectionResetError('Connection lost')>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 41, in run
if not (await self.handle_event(event)):
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/handler.py", line 95, in handle_event
await self.write_event(self.wyoming_info_event)
File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 29, in write_event
await async_write_event(event, self.writer)
File "/usr/local/lib/python3.9/dist-packages/wyoming/event.py", line 131, in async_write_event
await writer.drain()
File "/usr/lib/python3.9/asyncio/streams.py", line 387, in drain
await self._protocol._drain_helper()
File "/usr/lib/python3.9/asyncio/streams.py", line 190, in _drain_helper
raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost
but nothing in Node-RED. Nothing in debug, and no time stamp on the node to indicate it was activated.
Ohhh, just noticed in the core log on starting HAOS:
Logger: homeassistant.components.automation
Source: components/automation/config.py:107
integration: Automation (documentation, issues)
First occurred: 8:17:12 pm (1 occurrences)
Last logged: 8:17:12 pm
Unnamed automation could not be validated and has been disabled: required key not provided @ data['action']. Got None
Do I need to create dummy Automations in HA, which do nothing ?