I thought I might share a 'in the spare time' fun Hubitat application that I have incorporated into some of my unique home automation events. This application generates random responses that are suitable for TTS on capability 'SpeechSynthesis' compatible devices (ie. Amazon, Google, Sonos, Ikea, etc).
A free account on ApiLeague.com is required to obtain an api string for those categories indicated below. The 'Idiom' category does not require an api account or api string. The Idioms category is powered by my own json file (700+ entries) and I will add more on an as-is basis.
These responses are just fun to hear and perhaps educational, especially to the younger generation. A random response can be triggered by each separate device by a push momentary button and or a Hubitat rule, for example, when you wakeup, goto bed, or arrive home, have company over, turn on/off a switch, etc...
PLEASE NOTE: This NEW application supersedes the my previous Hubitat-Idioms driver that was a pre-release. That device will need to be deleted and replaced by this application called 'Fun Api Responses', which is soon to be available in HPM.
I can't seem to get it to work... This is the only log entry:
dev:882025-05-08 13:57:16.151error
groovy.lang.MissingMethodException: No signature of method: user_driver_kurtsanders_Idioms_1131.logInfo() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [A 'logsOff' cron job has been scheduled in 00:30:00]
2025-05-08 13:57:53.762error
groovy.lang.MissingMethodException: No signature of method: user_driver_kurtsanders_Idioms_1131.logDebug() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [Sending on GET request to β https://raw.githubusercontent.com/KurtSanders/Hubitat-Fun/refs/heads/main/idioms/data/Idioms_phrases_map1.json] on line 108 (method on)
025-05-08 14:46:31.881error
groovy.lang.MissingMethodException: No signature of method: user_driver_kurtsanders_Idioms_1131.logDebug() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [Sending on GET request to β https://raw.githubusercontent.com/KurtSanders/Hubitat-Fun/refs/heads/main/idioms/data/Idioms_phrases_map1.json] on line 108 (method on)
Love this! My young daughter is going to really enjoy this. She hears us say something that she doesn't understand, and we talk about "weird sentences" that we use. She's really eager to learn these!
@KurtSanders, the idioms seem to be getting some wires crossed. In all of the ones I've come across in initial testing (about 6), there is something that seems random.
for example, what does "huckleberry" have to do with this one?!?