Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Problem with Automation data_template :/

$
0
0

@Rollo wrote:

Hello, I get an error message and do not know what to do and need help pls:

Message malformed: expected a dictionary for dictionary value @ data[‘action’][0][‘data_template’]

data_template: >-
  {% if is_state('binary_sensor.khlschrank', 'off') %}
    message: 'Kühlschrank geschlossen'
  title: 'ENTWARNUNG!'
  {% else %}
    message: 'Kühlschrank offen'
  title: 'WARNUNG!'
  {% endif %}
service: notify.notify

Posts: 7

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>