SOLVED!
UPDATE: My problem lay with SMTPProtocol, which is normally blank (=‘any’). Changing that variable to ‘tlsv1’ per the Reactor WIKI solved the problem, and messages send OK now. I had not fully realized my Vera Plus was running ‘pre-7.30’ firmware specifically mentioned in the WIKI, so that was the last box I ticked!
Happy to delete this series of posts upon request, but will leave up for now in case it helps any other n00bs like me.
=====
Pasting ‘Logic Summary’ below, which exemplifies every attempt thus far. Specifically, I want to send a message in response to a particular light being turned on, and despite that condition going TRUE reliably, the process fails with a “Failed SSL Wrap” warning (see log) every time.
During several hours of troubleshooting, I tried the following steps to cure, without any luck:
- Created a new Reactor device to house this logic exclusively (was in subgroup before);
- Renewed (i.e. removed and regenerated) Google-issued App Password for this project;
- Scrutinized (agonizingly) relevant SMTP entries in main Reactor’s Advanced > Variables
- Populated the normally blank variables below, then modified ‘Options’ per documentation for fw > 7.30 (will try < 7.30 alternatives momentarily):
- SMTPSSLProtocol = any
- SMTPSSLMode = client
- SMTPSSLVerify = none
- SMTPSSLOptions = all,no_sslv3
- Double-checked that GMail messages weren’t hiding in ‘Spam’ folder or ‘All Mail’ (due to aliasing);
- Tried ports 465 and 587 (but never 25) (then reverted to 465), and also actual GMail password (then reverted back to 16-character App pw);
Am plum out of ideas now. - Libra
NOTE: Am intentionally redacting email address below, with my assurance that it’s the same in all three fields (Sender, Recipient and Username);
*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
Version: 3.5 config 20017 cdata 20045 ui 20045 pluginDevice 175 LuaXP not loaded
System: Vera version 1.7.4453 (pre-7.30) on Sercomm G450 ID nil (unknown); loadtime 1582032627; systemReady 1582032644; Lua 5.1; JSON dkjson 1.2; UnsafeLua=1
Local time: 2020-02-18T07:37:50-0600; DST=0; New Orleans, Louisiana United States; formats %Y-%m-%d %H:%M:%S
House mode: plugin 1; system 1; tracking on
Sun data: { "source": "int", "civdawn": 1582028027, "nautdawn": 1582026346, "sunset": 1582069856, "nautdusk": 1582072999, "stamp": 2020049, "latitude": 29.9657, "astrodusk": 1582074668, "longitude": -90.1064, "civdusk": 1582071319, "astrodawn": 1582024677, "sunrise": 1582029489 }
Geofence: not running
************************************************************************************************************************************
Reactor (Messaging) (#191)
Version 20045.4 02/18/20 07:35:55
Message/status: Not tripped
Condition group "Notify User" (AND) false as of 07:37:10 <root>
&-?-comment "Testing GMail 2-Factor Authentication Method" <cond0>
&-F-service Fireplace Light (110) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [1 => 0 at 07:37:10; F/F as of 07:37:10/07:37:10] <condo84xbot>
Activity root.true
Notify method SM nid 1: users message "This message is to notify you about something."; SMTPServer="smtp.gmail.com"; SMTPPort="465"; SMTPSender="t+++s@gmail.com"; SMTPDefaultRecipient="t+++s@gmail.com"; SMTPDefaultSubject="Alert from Vera Plus"; SMTPUsername="t+++s@gmail.com"; SMTPPassword="****"; SSL opt { "verify": "none", "mode": "client", "protocol": "any", "options": [ "all", "no_sslv3" ] }
Events
2020-02-18 07:30:39: Reactor startup (Luup reload)
2020-02-18 07:30:39: Starting (Luup Startup/Reload)
2020-02-18 07:34:47: Configuration changed!
2020-02-18 07:34:47: Condition condo84xbot test state changed from (nil) to false
2020-02-18 07:34:47: Condition condo84xbot evaluation state changed from (nil) to false
2020-02-18 07:34:47: Group Notify User test state changed from (nil) to false
2020-02-18 07:34:47: Group Notify User evaluation state changed from (nil) to false
2020-02-18 07:34:47: Changing RS tripped state to false
2020-02-18 07:35:40: Configuration changed!
2020-02-18 07:35:55: Configuration changed!
2020-02-18 07:36:42: Device Fireplace Light (#110) urn:upnp-org:serviceId:SwitchPower1/Status changed from "0" to "1"
2020-02-18 07:36:42: Condition condo84xbot test state changed from false to true
2020-02-18 07:36:42: Condition condo84xbot evaluation state changed from false to true
2020-02-18 07:36:42: Group Notify User test state changed from false to true
2020-02-18 07:36:42: Group Notify User evaluation state changed from false to true
2020-02-18 07:36:42: Launching Notify User.true activity
2020-02-18 07:36:42: Launching scene/activity root.true
2020-02-18 07:36:42: Starting "root.true" group 1
2020-02-18 07:36:42: { dev=191, warning="[string \"--[[...\"]:2218: Failed SSL wrap", scene="root.true", sceneName="root.true", index=1, event="runscene", group=1 }
2020-02-18 07:36:42: Activity "root.true" finished
2020-02-18 07:36:42: Changing RS tripped state to true
2020-02-18 07:37:10: Device Fireplace Light (#110) urn:upnp-org:serviceId:SwitchPower1/Status changed from "1" to "0"
2020-02-18 07:37:10: Condition condo84xbot test state changed from true to false
2020-02-18 07:37:10: Condition condo84xbot evaluation state changed from true to false
2020-02-18 07:37:10: Group Notify User test state changed from true to false
2020-02-18 07:37:10: Group Notify User evaluation state changed from true to false
2020-02-18 07:37:10: Changing RS tripped state to false
Devices
Fireplace Light (110) urn:schemas-micasaverde-com:device:PhilipsHueLamp:1 (2/-1); parent 94; plugin -; mfg model ; dev D_PhilipsHueLamp2.xml impl
Hue Lights (94) urn:schemas-micasaverde-com:device:PhilipsHue:1 (26/-1); parent 0; plugin 8162; mfg Philips model hue; dev D_PhilipsHue2.xml impl I_PhilipsHue2.xml
Watches
Device #110 Fireplace Light service urn:upnp-org:serviceId:SwitchPower1 variable Status
Device #191 Reactor (Messaging) service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
Device #191 Reactor (Messaging) service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
Device #191 Reactor (Messaging) service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
Special Configuration
UseReactorScenes = 1
LogEventsToFile = 0
Retrigger = 0
FailOnTrouble = 0
ContinuousTimer = 0