Configuration problem with Telldus Thermometer IFTTT notifications

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

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…

When you post code, to get it to format properly, precede the code with a line that contains just three “back tick” characters, and follow the code with another line that contains just three back tick characters. The back tick character looks like this: `

You should change the value3 line to:

value3: '{{ states.sensor.kyl_temperature.state }}'

or:

value3: "{{ states('sensor.kyl_temperature') }}"

Perfect!
Just some cleaning to do but it works perfect!

Thanks lot!
And also thanks for the tip regarding the backpacks…

1 Like