Browse Source

Better output of temperature notifier scenario

parent
commit
d6cec7331d
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      scenarios/temperature_notifier.json

+ 3
- 2
scenarios/temperature_notifier.json View File

@@ -28,8 +28,9 @@
28 28
             "alias": "FormattingAgent",
29 29
             "comment": "Extract and format temperature.",
30 30
             "settings": {
31
-                "msg": "{% if payload.temperature > settings.threshold %} System is too hot! {% endif %}",
32
-                "threshold": 0.0
31
+                "msg": "{% if payload.temperature > settings.threshold %} System {{ settings.hostname }} is too hot: {{ payload.temperature }}°C! {% endif %}",
32
+                "threshold": 0.0,
33
+                "hostname": "`hostname`"
33 34
             }
34 35
         },
35 36
         {