This custom driver can be used to control a RPI (or other Linux device) on your network.
It has been developed in a completely generalized way, so that any Linux command may be executed on this device.
Please see the description for how this driver (and the accompanying Linux code) was actually used to implement a local TTS device, at a very reasonable cost.
This was developed by @erktrek and all the kudos should go to him.
This was tested extensively by @aaiyar who assisted in the development.
It will be added at a subsequent date to HPM, but nonetheless it may be used directly via the following:
https://raw.githubusercontent.com/adsavia/notifyExec/main/HubitatDriver/notifyExec.groovy
and the github repo:
GITHUB - ADSAVIA/NOTIFYEXEC: SIMPLE VIRTUAL NOTIFICATION DRIVER IN HE THAT...
Simple virtual notification driver in HE that communicates with a backend NodeJS app that executes a configured utility. - GitHub - adsavia/notifyExec: Simple virtual notification driver in HE that...
The first application of this approach was used to create a email/sms text sending device, via the linux command for sendfile.
Recently, I have used this approach to attach a simple usb speaker to turn this into a local TTS speaker. I have used a speakerphone/microphone (similar to what has been used in conference rooms). This will enable the hardware that will eventually ensure that this can be used for local voice control, as well as voice notification. Furthermore, we have tested this local TTS approach with a Raspberry Pi Zero 2W (approx. $15), and wifi, which should ensure a low cost. It should be noted that the speaker quality will vary dramatically depending on the hardware that is chosen.
Of course, the speaker quality of an Alexa Dot or a Google Home Mini is far superior (and offers voice access to the Internet), but the key here is that the speaker quality can be more than adequate, and is a very acceptable local TTS speaker.
Please let us know of any suggestions and/or comments.
Please stay tuned, for a future integration which will enable Hubitat voice control from this hardware/software setup.