Better Email plugin discussion thread

Posted on
Thu Jun 02, 2016 5:43 pm
greenbergm0625 offline
Posts: 22
Joined: Jan 04, 2016

Sending emails with variables

I would like to be able to send emails as notifications with variable values - state of sensors, time/date stamps. etc.

Is this the right tool or is there some other method for this ?

Thanks

Posted on
Thu Jun 02, 2016 6:31 pm
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Sending emails with variables

greenbergm0625 wrote:
I would like to be able to send emails as notifications with variable values - state of sensors, time/date stamps. etc.

Is this the right tool or is there some other method for this ?

Thanks


BetterEmail does this fine. You just need to use the appropriate variable or device state substitution strings in the text of the outgoing message's subject and body. There's some examples earlier in the thread.

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

Posted on
Tue Jun 07, 2016 4:25 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Better Email plugin discussion thread

Hi Joe, this AM my log was full of the below text - it was repeated many times -

Do you see anything wrong that I might try to fix to avoid all the red?

Thanks in advance for any help....

Jun 7, 2016, 1:47:50 AM
Netatmo Plugin Error Plugin stopping. Reason = <urlopen error [Errno 8] nodename nor servname provided, or not known>
Netatmo Plugin Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Better Email Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 517, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 86, in checkForUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 173, in _prepareForUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 95, in getUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 115, in getLatestRelease
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 143, in _GET
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 920, in request
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 957, in _send_request
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 914, in endheaders
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 786, in _send_output
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 745, in send
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 1118, in connect
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 547, in create_connection
gaierror: [Errno 8] nodename nor servname provided, or not known

Better Email Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Jun 7, 2016, 1:48:30 AM
Netatmo Plugin Error Plugin stopping. Reason = <urlopen error [Errno 8] nodename nor servname provided, or not known>
Netatmo Plugin Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Better Email Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 517, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 86, in checkForUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 173, in _prepareForUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 95, in getUpdate
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 115, in getLatestRelease
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Better Email.indigoPlugin/Contents/Server Plugin/ghpu.py", line 143, in _GET
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 920, in request
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 957, in _send_request
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 914, in endheaders
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 786, in _send_output
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 745, in send
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 1118, in connect
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 547, in create_connection
gaierror: [Errno 8] nodename nor servname provided, or not known

Better Email Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

_______
Norm

Posted on
Tue Jun 07, 2016 5:13 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Since you're having problems with both the BetterEmail and netatmo plugins, I'm guessing some sort of DNS problem on the server machine.

See: http://stackoverflow.com/questions/1193 ... -not-known

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

Posted on
Tue Jun 07, 2016 5:55 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Better Email plugin discussion thread

I also started to see this in my log today - it just started - but Better Email should not be sending any email today unless a get a new high wind gust (which I have not)

Jun 7, 2016, 4:12:01 AM
Better Email Error API rate limit exceeded for 71.193.252.83. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

_______
Norm

Posted on
Tue Jun 07, 2016 5:59 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

It's trying to connect to GitHub to see if there's a more recent version available. What do you have the update check frequency set to in the plugin config?

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

Posted on
Tue Jun 07, 2016 6:04 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Better Email plugin discussion thread

It was set to zero - if you mean the poll email servers every (min) setting - I was only using it to send email

_______
Norm

Posted on
Tue Jun 07, 2016 6:14 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

I thought the config dialog had two settings, but maybe not in the version you have.

I just posted V1.2.6 which I should have done a while back, I just forgot.

https://github.com/FlyingDiver/BetterEm ... v1.2.6.zip

That one definitely lets you set the update interval separate from any polling interval. Polling interval is set per-device now.

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

Posted on
Tue Jun 07, 2016 6:37 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Better Email plugin discussion thread

OK, thanks I'll give it a try sometime today :D

_______
Norm

Posted on
Tue Jun 07, 2016 6:47 am
Different Computers offline
User avatar
Posts: 2549
Joined: Jan 02, 2016
Location: East Coast

Re: Better Email plugin discussion thread

Is anyone using this with IFTTT? Specifically, to have IFTTT talk to Indigo. The Maker channel works perfectly going the other way.

I'm particularly interested in the speed of response.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Jun 07, 2016 6:50 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Different Computers wrote:
Is anyone using this with IFTTT? Specifically, to have IFTTT talk to Indigo. The Maker channel works perfectly going the other way.

I'm particularly interested in the speed of response.


In my testing, with an IMAP server that support IDLE, Indigo triggers within a couple seconds of the email message getting to the IMAP server. How long that takes is anyone's guess.

No, I have not tried it with IFTTT. I don't use external cloud services for automation if it can be avoided.

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

Posted on
Tue Jun 07, 2016 8:06 am
Different Computers offline
User avatar
Posts: 2549
Joined: Jan 02, 2016
Location: East Coast

Re: Better Email plugin discussion thread

FlyingDiver wrote:
No, I have not tried it with IFTTT. I don't use external cloud services for automation if it can be avoided.


I know where you're coming from and appreciate the concern. It's just I've got some legacy zigbee devices that I can't get talking to Indigo, and it would be nice to use them. (Until someone writes a Zigbee plugin of course. :wink:

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Jun 07, 2016 8:52 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Better Email plugin discussion thread

I am using the plug-in for the first time (v. 1.2.6). and couldn't complete the configuration, as you can see from the attached screen.

Also, the log shows the following error:
Code: Select all
  Better Email Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 659, in runConcurrentThread
KeyError: 'key updateFrequency not found in dict'

  Better Email Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Attachments
emailplugin.tiff
emailplugin.tiff (112.73 KiB) Viewed 4971 times

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Tue Jun 07, 2016 9:19 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

My bad. Forgot to update the plugin configuration validation routine. Update to v1.2.7 should fix that.

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

Posted on
Tue Jun 07, 2016 9:25 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Better Email plugin discussion thread

FlyingDiver wrote:
My bad. Forgot to update the plugin configuration validation routine. Update to v1.2.7 should fix that.

I had to change the plugin-version in the new download to 1.2.7 and got past the initial error. Now I have this one:

Code: Select all
  Better Email Error              Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 699, in validateDeviceConfigUi
NameError: global name 'errorsDict' is not defined

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Page 5 of 9 1, 2, 3, 4, 5, 6, 7, 8, 9

Who is online

Users browsing this forum: No registered users and 5 guests