I’m a newbie to Home Assistant so bear with me if I post in wrong category.
I have managed to get notifications to my mobile when the temperature in the refrigerator pass certain thresholds. In the first version I got a notification that in english would be:
Temperature warning!
The temperature in the refrigerator is below/over 6/8 degrees!
The code for this is:
- alias: Kyl High 6
trigger:
platform: numeric_state
entity_id: sensor.kyl_temperature
above: 6
action:
service: ifttt.trigger
data: {“event”:“TelldusTermometer”, “value1”:“kylen”, “value2”:“varmare”, “value3”:“6”}
Now it would be nicer if the notification included the actual temperature, so I modified the code to this:
- alias: Kyl test
trigger:
platform: numeric_state
entity_id: sensor.kyl_temperature
below: 30
action:- data_template:
event: TelldusTermometer
value1: “kylen”
value2: " "
value3: ‘{{states.sensor.kyl_temperature}}’
service: ifttt.trigger
- data_template:
The notification includes the actual temperature but how do I get rid of all the junk in the notification?
I notice that my - in the code above somehow get substituted in the post, however I don’t see how I get rid of that…