Echo Speaks
Please consider donating if you find this integration useful.
"
}
}
static String documentationUrl() { return "https://tonesto7.github.io/echo-speaks-docs" }
static String videoUrl() { return "https://www.youtube.com/watch?v=wQPPlTFaGb4&ab_channel=SimplySmart123%E2%9C%85" }
static String bulletItem(String inStr, String strVal) { return "${inStr == sBLANK ? sBLANK : "\n"} \u2022 ${strVal}" }
static String dashItem(String inStr, String strVal, Boolean newLine=false) { return "${(inStr == sBLANK && !newLine) ? sBLANK : "\n"} - ${strVal}" }
Integer stateSize() {
String j = new JsonOutput().toJson((Map)state)
return j.length()
}
Integer stateSizePerc() { return (int) ((stateSize() / 100000)*100).toDouble().round(0) }
/*
String debugStatus() { return !settings.appDebug ? "Off" : "On" }
String deviceDebugStatus() { return !settings.childDebug ? "Off" : "On" }
Boolean isAppDebug() { return (settings.appDebug == true) }
Boolean isChildDebug() { return (settings.childDebug == true) }
String getAppDebugDesc() {
String str = sBLANK
str += isAppDebug() ? "App Debug: (${debugStatus()})" : sBLANK
str += isChildDebug() && str != sBLANK ? "\n" : sBLANK
str += isChildDebug() ? "Device Debug: (${deviceDebugStatus()})" : sBLANK
return (str != sBLANK) ? str : sNULL
}*/
private addToLogHistory(String logKey, String data, Integer max=10) {
Boolean ssOk = true // (stateSizePerc() > 70)
getTheLock(sHMLF, "addToHistory(${logKey})")
List