Hi,
I’m monitoring my Odroid on several specs.
When something is not OK, I get an e-mail. This works fine, except that I don’t get the values.
Must be something stupid, but I don’t know…
alias: Monitoring Odroid N2+
description: ''
trigger:
- platform: template
value_template: >-
{{ states('sensor.processor_temperature') | float >=
states('input_number.number_monitor_system_processor_temperature_max') |
float }}
for: '00:00:30'
condition: []
action:
- service: notify.gmail
data:
message: >
Systeem monitoring probleem ({{ trigger.to_state.object_id }}) :
{% if states('trigger.to_state.object_id') == "processor_temperature" %}
{{ states('sensor.processor_temperature') }} (max : {{states('input_number.number_monitor_system_processor_temperature_max') }})
{% endif %}
title: Systeem monitoring probleem ({{ trigger.to_state.object_id }}) !
This is the email :