Hello.
In the query, I would like to get the result for the last maximum record for the previous month for the entity sensor.tarife_p1_meter_faza3_mesecno_5
, which is a tariff sensor (in Slovenia we call this a time block, because we also have a higher and lower tariff “winter/all else”).
The current query returns me the result for the first entry of the current month (which is the first record, because this time block came into effect on 2025-03-01 at 00:00:00) instead of the query showing me null or 0 (there was no record before that).
So, I would need the data for 2025-02-28 23:59:59, which actually does not exist.
Current query:
Thanks for help.
1 post - 1 participant