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

Automation with both service and data_template fails

$
0
0

@TheStigh wrote:

Hi,

Been trying to get the data_template to work in this automation (works fine with ‘data’ only and without the {{…}} )

- id: ac_off
  alias: Varmepumpe AV basert på temperatur
  trigger:
  - entity_id: binary_sensor.high_temp_input
    platform: state
    to: 'on'
  - event: start
    platform: homeassistant
  action:
  - entity_id: climate.hytta
    service: climate.turn_off
  - data_template:
      message: "Stua hytta er over {{ input_number.high_temp_stue }} grader, skrur av varmepumpe!"
    service: notify.stigh

The Automation works but no message is pushed… How am I using data_template wrong?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95513

Trending Articles



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