mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
147 stars 90 forks source link

Add support to send email via script #336

Closed jkandasa closed 6 years ago

jkandasa commented 7 years ago

Source: http://forum.mycontroller.org/topic/101/battery-level-script-and-next-testing

@DaTTcz about 14 hours ago After some time I test again...

Battery level script - Your manual works. Using the timer, choose a time when the script started and it works. Can I transfer variables from script to email? Script gives me this result: { "myImports": {}, "mcResult": true, "batteryLevel": "94" }

Where is a list of variables that can be used in e-mail? I only know this, from mc-default-rule-email-template. is there more? ${notification.ruleCondition} ${notification.actualValue} ${notification.triggeredAt} ${notification.ruleName}

3.Email does not support coding, for example, instead of Czech characters "ř" I must use the entity "&rcaron" ...etc