Better Email plugin discussion thread

greenbergm0625
Posts: 22
Joined: Mon Jan 04, 2016 5:46 pm

Sending emails with variables

Post by greenbergm0625 »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Sending emails with variables

Post by FlyingDiver »

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
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Better Email plugin discussion thread

Post by norcoscia »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

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
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Better Email plugin discussion thread

Post by norcoscia »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

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
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Better Email plugin discussion thread

Post by norcoscia »

It was set to zero - if you mean the poll email servers every (min) setting - I was only using it to send email
_______
Norm
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

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
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Better Email plugin discussion thread

Post by norcoscia »

OK, thanks I'll give it a try sometime today :D
_______
Norm
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Better Email plugin discussion thread

Post by Different Computers »

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.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

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
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Better Email plugin discussion thread

Post by Different Computers »

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:
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

Re: Better Email plugin discussion thread

Post by Bollar »

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 5908 times
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

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
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

Re: Better Email plugin discussion thread

Post by Bollar »

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
Locked

Return to “Better Email”