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

How to transfer daily collected min / max -values of a sensor into new variable

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 103369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>