Hi, i collecting a min / max value of a sensor (battery level) and want at midnight to save this max / min value in a new variable. I managed to set up automation with fixed value, but not with the sensors values…
alias: lday SOC min
description: ''
trigger:
- platform: time
at: '00:00:05'
condition: []
action:
- service: var.set
data:
entity_id: var.lday_soc_min
value: 999
mode: single
but want to have the value not to be fixed but as the sensors value (called: sensor.dly_soc_min" ) . I learned about input_numner, about variables, but its not working. Any advices ??
1 post - 1 participant