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