Hey Tom,
Great job in fixing the many minor issues in the binding. I’ve been running it for a 5 hours and everything is working great! From what I can tell you have reduced/eliminated the need for the thread::sleep after the TTS commands when there is a bunch of different TTS commands being executed back to back?
This below is something I always had to create thread:sleep between the paragraphs because of the length and timing of it and now I don’t. BUT there is a strange long pause between the 2 TTS’s commands which I’m assuming your binding is doing? I’m NOT asking you to fix it because this is a one off with such a long TTS command. Just wanted to give you a heads up on it.
BTW, I’m running OH 2.4 with this binding w/o any issues.
Once again, great job!
Inventory_tAlive = createTimer(now.plusSeconds(1), [ |
logInfo("tAlive" , "Inventory_tAlive timer ran out -> cancelling timer.")
var smarthome1 = new StringBuilder()
smarthome1.append("Welcome to our smart home that was established in 2018, , it continues to expand functionality on a monthly basis. Our smart home consists of three wireless technologies, which are eight zero two dot eleven, , Zigbee, and Z Wave.")
smarthome1.append(" The First Wireless technology is, eight zero two dot eleven devices, which there are seventy seven devices active, , which uses three Ubiquiti unified access points, , located on each floor of the house.")
smarthome1.append(" The I P wireless devices, , consist of Alexa smart speakers, Sonos speakers, Nest Smoke and C O 2 Detectors, , Samsung TVs, Ecobee Thermostats, Onkyo Receivers, H P Printers, , Wall Mounted Android Tablets, Chamberlin My Q Garage, Belkin WeMo plugs, ,")
smarthome1.append(" and Belkin WeMo light switches, Hick Vision Cameras, , Bond Fan Control, Ring Doorbell, and a Roomba vacuum cleaner. The second Wireless technology is, Zigbee, used by Phillips HUE, which there are thirty two active devices, which")
var smarthome2 = new StringBuilder()
smarthome2.append(" consists of light strips, motion detectors, lamps, and HUE remote controls. The Third Wireless technology is, Z Wave, which is being used by the vendor Aeotec, which there are twenty devices, which consists of light level detectors, humidity sensors, , motion sensors, temperature sensors, , and tilt sensors.")
smarthome2.append(" All three of these Wireless technologies, are controlled centrally by a platform called open HAB, , which does not require any cloud services to work, , and it keeps our data privately with in our home,")
smarthome2.append(" and open HAB talks directly to the local devices, whenever possible. open HAB uses an event rule engine, that controls all these different wireless products, , based on our defined events detected. This eliminates having numerous interfaces, , for each vendor and event.")
smarthome2.append(" Once again, , thank you for visiting our Smart home.")
TheRoom_TTS.sendCommand(smarthome1.toString())
TheRoom_TTS.sendCommand(smarthome2.toString())
logInfo("ECHO", "Smart Home Inventory was said on " + TheRoom_TTS)
logInfo("ECHO", "-----------------------------------------------------------------------------")
Inventory_tAlive.cancel()
Thread::sleep(1500)
Inventory_tAlive = null
])
Best, Jay