Help with automations whit two snesors

Tags: #<Tag:0x00007f326a96ce60> #<Tag:0x00007f326a96ccd0> #<Tag:0x00007f326a96cc08> #<Tag:0x00007f326a96cb18>

HI! I need help creating an automation that has to meet two conditions of differents sensors and then send a message.

For example if sensor one turn to off and sensor two turn to on, send a message.

i have created one automation thats send a message when its turn to on or off, but it has one sensor

Sensor names:
1: sensor.generador
2: binary_sensor.hp6040_fondo

CODE:

- id: '1604972840840'
  alias: ALIAS
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.hp6040_fondo
    to: 'on'
  condition:
  - condition: template
    value_template: '{{ not is_state(''input_select.mode'', ''on'') }}'
  action:
  - service: notify.telegram_group
    data:
      message: MENSAJE
  mode: single

Im going to appreciate.

thanks

think your problem is with your single Quotes

the way I deal with something like this

use the " to open close it and then the ’ mark it.

try

'{{ not is_state(''input_select.mode'', ''on'') }}'

to

"{{ not is_state('input_select.mode', 'on') }}"

also

the remember the Developer Tools TEMPLATE is your friend

Hi myle that was because i copy paste from automation.yalm, i will give a try to templates tools.
thanks