I have a bunch of events that send out notifications. Depending on the event it goes to different email addresses and they might change in the future. So instead of hardcoding the "To" field with particular email addresses, is it possible to use replacement variables instead? I know there is a default email address. Also there are scripts to send emails but I don't want to revert to scripts. I just want to check if maybe there is a simple way to use the HS built in email action and use a replacement variable for the "To:" field.
Announcement
Collapse
No announcement yet.
Sending Email: Use Replacement Variable for Email Address
Collapse
X
-
Did you get an answer on this? I know you can put $$DSR:xxx: in the body and it will return the string associateed with device xxx (replace xxx with your device ID) Also, $$DVR:xxx: will add the value. Make sure to get the trailing colon ( as most issues seem to be the result of missing that.Karl S
HS4Pro on Windows 10
1070 Devices
56 Z-Wave Nodes
104 Events
HSTouch Clients: 3 Android, 1 iOS
Google Home: 3 Mini units, 1 Pair Audios, 2 Displays
-
I would find this useful as well (ability to specify a single e-mail address for alerts somewhere). It also would be nice if there were values for device names, instead of just values so I could template more e-mails. For example, having a single e-mail alert for all of my door locks when the battery is low, the e-mail could contain the name of the device. Right now I have separate events set up for each door.
Comment
-
Originally posted by windracer View PostI would find this useful as well (ability to specify a single e-mail address for alerts somewhere). It also would be nice if there were values for device names, instead of just values so I could template more e-mails. For example, having a single e-mail alert for all of my door locks when the battery is low, the e-mail could contain the name of the device. Right now I have separate events set up for each door.Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
Originally posted by windracer View PostI would find this useful as well (ability to specify a single e-mail address for alerts somewhere). It also would be nice if there were values for device names, instead of just values so I could template more e-mails. For example, having a single e-mail alert for all of my door locks when the battery is low, the e-mail could contain the name of the device. Right now I have separate events set up for each door.
Comment
-
Guest
Maybe ultrajonsmtp could do that (if this never works natively from hs email ) ? I never tried the plugin
Comment
-
Guest
If this does not work with ultrajones smtp plugin.
A more hacky method would be to send the ‘’content’’of the replacement variable to nodered , and use the native nodered email package. (I would do this with mcsmqtt free plugin, it is easy to send an mqtt paylod with a global variable to a topic.
https://flows.nodered.org/node/node-red-node-email
Just a thought . I know you didn’t want to use scripting, so maybe that is a to much hacky way to do it.
Comment
Comment