Email+: list index out of range

Posted on
Sun Sep 04, 2022 3:45 pm
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Email+: list index out of range

I am just catching up with 2022.1 and Email+. Created the new device but getting the error:
IndigoEmail+: SMTP server connection error: list index out of range
Any idea what that means? Thank you :)
(I am using a gmail address and created a password for the app)

Posted on
Sun Sep 04, 2022 4:48 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Email+: list index out of range

Not out of context. Enable debug logging, restart the SMTP device, wait for the error then post the log. Use the CODE tags when you do.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Sep 04, 2022 4:49 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Email+: list index out of range

Also, if you were using either the built in email or the Better Email plugin, Indigo should have created all your devices for you when it upgraded.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Sep 10, 2022 4:23 pm
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Re: Email+: list index out of range

Thank you, will learn how to do that and post the results, much appreciated :)

Posted on
Sat Mar 23, 2024 7:48 am
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Re: Email+: list index out of range

A long time ago but finally back to this topic ...
Did enable the debug, went to the device, found it in failure, reading posts, changed the encryption to StartTLS. Reloaded the plugin and assumed this would restart the device
The log is below but of course need to resolve the device failure, Does this point to the email/app specific password issue I read in posts? (I am using a dedicated gmail for Indigo)
Thank you for your help!

Log before reload
----------------------
Code: Select all
Mar 23, 2024 at 6:14:39 AM
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:15:27 AM
   Email+ Debug                    IndigoEmail+: SMTP poll, 6 items in queue
   Email+                          sending email 'Indigo watered the garden' to 'ecbouche@gmail.com,isafrance@comcast.net' using IndigoEmail+
   Email+ Debug                    IndigoEmail+: sending:
From:
Subject: Indigo watered the garden
To: ecbouche@gmail.com
Cc: isafrance@comcast.net
Date: Sat, 23 Mar 2024 06:15:27 -0700
Message-ID: <171119972793.716.4822853755503888065@128.1.168.192.in-addr.arpa>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0

Weather        condition: Mostly Cloudy
Precipitation condition: false
Sprinkler       multiplier: 0.36                               

   Email+ Error                    IndigoEmail+: SMTP server connection error: list index out of range
   Email+ Debug                    connErrorTriggerCheck: Checking Triggers for Device IndigoEmail+ (1254356183)

Mar 23, 2024 at 6:19:59 AM
   Email+ Debug                    getDeviceConfigUiValues: no change, already populated


Reload
---------
Code: Select all
Mar 23, 2024 at 6:23:28 AM
   Email+ Debug                    getDeviceConfigUiValues: no change, already populated
   Email+ Debug                    validateDeviceConfigUi
   Email+ Debug                    IndigoEmail+: Stopping device
   Email+ Debug                    IndigoEmail+: shutting down
   Email+ Debug                    IndigoEmail+: Device Version is up to date
   Email+ Debug                    IndigoEmail+: Starting device (smtpAccount)
   Email+ Debug                    IndigoEmail+: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:24:39 AM
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:25:16 AM
   Reloading plugin "Email+ 2023.2.0" using API v3.3
   Stopping plugin "Email+ 2023.2.0" (pid 716)
   Email+ Debug                    stop_concurrent_thread called
   Email+ Debug                    stop_concurrent_thread called
   Email+ Debug                    Email+ SMTP Server: Stopping device
   Email+ Debug                    Email+ SMTP Server: shutting down
   Email+ Debug                    IndigoEmail+: Stopping device
   Email+ Debug                    IndigoEmail+: shutting down
   Stopped plugin "Email+ 2023.2.0"
   Starting plugin "Email+ 2023.2.0" (pid 72048)
   Started plugin "Email+ 2023.2.0"
   Email+ Debug                    Email+ SMTP Server: Device Version is up to date
   Email+ Debug                    Email+ SMTP Server: Starting device (smtpAccount)
   Email+ Debug                    IndigoEmail+: Device Version is up to date
   Email+ Debug                    IndigoEmail+: Starting device (smtpAccount)
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue
   Email+ Debug                    IndigoEmail+: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:27:27 AM
   Email+ Debug                    getDeviceConfigUiValues: no change, already populated

Mar 23, 2024 at 6:35:34 AM
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:40:34 AM
   Email+ Debug                    IndigoEmail+: SMTP poll, 0 items in queue

Mar 23, 2024 at 6:41:43 AM
   Email+ Debug                    getDeviceConfigUiValues: no change, already populated

Mar 23, 2024 at 6:45:34 AM
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue

Error after reload
----------------------
Code: Select all
Mar 23, 2024 at 6:46:39 AM
   Schedule                        Spring Watering of Garden
   Sprinkler                       multiplying all sprinkler zone durations by 0.36
   Sprinkler                       scheduled "Sprinkler Controller" zone durations: 0.00, 3.60, 3.60, 0.00, 0.00, 0.00, 0.00
   Sprinkler                       turning "Sprinkler Controller" zone 2 on for 3.60 minutes
   Email+ Debug                    sendEmailAction errors = Item : (dict)
   Email+ Debug                    sendEmailAction queueing message 'Indigo watered the garden'
   Email+ Debug                    IndigoEmail+: SMTP poll, 1 items in queue
   Email+                          sending email 'Indigo watered the garden' to 'ecbouche@gmail.com,isafrance@comcast.net' using IndigoEmail+
   Email+ Debug                    IndigoEmail+: sending:
From:
Subject: Indigo watered the garden
To: ecbouche@gmail.com
Cc: isafrance@comcast.net
Date: Sat, 23 Mar 2024 06:46:39 -0700
Message-ID:
 <171120159994.72048.15211507152313517967@128.1.168.192.in-addr.arpa>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0

Weather        condition: Mostly Cloudy
Precipitation condition: false
Sprinkler       multiplier: 0.36                               

   Email+ Error                    IndigoEmail+: SMTP server connection error: list index out of range
   Email+ Debug                    connErrorTriggerCheck: Checking Triggers for Device IndigoEmail+ (1254356183)
   Sent X10                        "Sprinkler Controller - Left Side" on

Posted on
Sat Mar 23, 2024 8:03 am
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Email+: list index out of range

Need two things. First, right click on the SMTP device in the Indigo Client UI, select "Print Device Details to Event Log", and post the results here.

Second, post a screen clip of the action dialog that's sending that email.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Mar 24, 2024 9:48 am
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Re: Email+: list index out of range

Thank you very much for your help!
Here are the 2 elements, I hope it helps
Eric

Device print to log
==============
Code: Select all
Mar 24, 2024 at 8:37:35 AM
   Script                          address : smtp.gmail.com
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : smtpAccount
displayStateId : serverStatus
displayStateImageSel : SensorOff
displayStateValRaw : Failure
displayStateValUi : Failure
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 354471852
globalProps : MetaProps : (dict)
     com.indigodomo.email : (dict)
          address : smtp.gmail.com (string)
          devVersCount : 4 (integer)
          encryptionType : StartTLS (string)
          fromAddress :  (string)
          hostPort : 587 (integer)
          pollingFrequency : 15 (string)
          serverLogin : ---@gmail.com (string)
          serverPassword : --- (string)
id : 1254356183
lastChanged : 2024-03-24 08:26:36
lastSuccessfulComm : 2024-03-24 08:26:36
model : SMTP Server
name : IndigoEmail+
ownerProps : com.indigodomo.email : (dict)
     address : smtp.gmail.com (string)
     devVersCount : 4 (integer)
     encryptionType : StartTLS (string)
     fromAddress :  (string)
     hostPort : 587 (integer)
     pollingFrequency : 15 (string)
     serverLogin : ---@gmail.com (string)
     serverPassword : --- (string)
pluginId : com.indigodomo.email
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
     messagesToSend : 0 (integer)
     serverStatus : Failure (string)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : False
supportsStatusRequest : False
version : None

Screenshots of the schedule
====================
3 attachments (schedule, email action, email details)
Attachments
Screenshot 2024-03-24 at 8.45.23 AM.png
email detail
Screenshot 2024-03-24 at 8.45.23 AM.png (29.36 KiB) Viewed 386 times
Screenshot 2024-03-24 at 8.44.05 AM.png
email action
Screenshot 2024-03-24 at 8.44.05 AM.png (21.57 KiB) Viewed 386 times
Screenshot 2024-03-24 at 8.42.11 AM.png
schedule
Screenshot 2024-03-24 at 8.42.11 AM.png (21.15 KiB) Viewed 386 times

Posted on
Sun Mar 24, 2024 1:01 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Email+: list index out of range

Check the device config for the SMTP device. Looks like the sender address is blank.
Code: Select all
          fromAddress :  (string)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Apr 13, 2024 6:45 am
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Re: Email+: list index out of range

Thank you very much, have corrected and monitoring.
Much appreciated! (and just back home from a trip)

Posted on
Sat Apr 13, 2024 7:29 pm
Ericbo offline
Posts: 136
Joined: Sep 18, 2012

Re: Email+: list index out of range

And of course, it works, thank you very much
(I know it was pretty basic)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest