Hello everybody
I’m trying to build up a very easy automation to check the voltage of a couple the batteries using variables, but I can get ride of it. Here the code
alias: Test1
description: ""'
trigger:
- platform: numeric_state
entity_id: sensor.d1_pro_voltage
below: '2.6'
variables:
trigger_message: "D1 Battery low"
- platform: numeric_state
entity_id: sensor.mini_voltage
below: '2.6'
variables:
trigger_message: "Mini Battery low"
action:
- service: notify.mybot
data:
message: ' {{ trigger_message }} '
mode: single
Could you give me any lead? I have used the same structure for the state platform (with binary sensors) and works perfectly.