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

State change before less than 168 hour

$
0
0

Hello, I have switch (I can make a template sensor) which holds off/peek tariff. I need to know next (future) change. Same changes repeats every work day and another but same every weekend day.
Recorder is configured to store 8 days.
Best way looks like to “look back” less than 168 hours to find (past/future) change.
I use (new) statistics sensor. But I have no data from it.
If I use state_characteristic: count, value is 0
If I use state_characteristic: change, value is unknown

How to get value before 168h? How to get newer value and time change than 168h?

- platform: statistics
  name: "sw_tarif_20_test"
  entity_id: switch.g_global_sw_tarif20_723
  state_characteristic: count
  sampling_size: 99999999
  max_age:
    hours: 168

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106113

Trending Articles



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