I’m looking for some help with some complex templating.
My Solar Inverter has “time of use” support, which uses periods of time to determine how much energy to import/export from the grid.
Integration provided entities look like:
number.prog1_capacity : 20%
sensor.time_slot_2 : 1:00 Pm
number.prog2_capacity : 10%
sensor.time_slot_3 : 5:00Pm
number.prog3_capacity : 20%
sensor.time_slot_4 : 11:00Pm
number.prog4_capacity : 100%
Request: I’m looking for help answering the question: What is the current target capacity?
IE, Take the current system time, determine the correct program time, then extract the capacity.
I don’t think I’ve seen a similar templating example. Any Jinja Ninjas who can help?
2 posts - 2 participants