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

Automation error trigered

$
0
0

@anarro wrote:

Hi,

I am new to the world of automation, so be patient with me. :wink:
I am trying to send a notification if any temperature sensor has a value less than the default or preset value of my input_number.tempint entity, but I have this error in the LOGS view:

Error while executing automation automation.notificar_temperatura_interior. Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined

id: '1548707669979'
  alias: Send Temperature Int
  trigger:
  - platform: template
    value_template: '{{ (states.sensor.netatmo_salon_temperature.state|float ) <= (states.input_number.valor_tempint.state|float ) }}'
  - platform: template
    value_template: '{{ (states.sensor.netatmo_papas_temperature.state|float ) <= (states.input_number.valor_tempint.state|float ) }}'
  - platform: template
    value_template: '{{ (states.sensor.netatmo_dani_temperature.state|float ) <= (states.input_number.valor_tempint.state|float ) }}'
  - platform: template
    value_template: '{{ (states.sensor.netatmo_aina_temperature.state|float ) <= (states.input_number.valor_tempint.state|float ) }}'
  condition: []
  action:
  - data:
      message: "The temperature of sensor {{ trigger.to_state.name }} is {{ state_attr(trigger.entity_id, 'state' }} 
    service: notify.telegantoni

and I like add the value of the sensor too…

What am I doing wrong?

Thks!

Posts: 6

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>