I’ve been experimenting with optimizing my heating costs by scheduling my hot water tank and heating cables during the cheapest hours of the day. While this approach works well, I’ve noticed that it heavily focuses on nighttime hours, even when daytime prices are only slightly higher. To balance this, I’m considering a weighting system for each hour to distribute heating more evenly throughout the day while still minimizing costs.
I stumbled upon a Python script called hass_entities.py that allows editing attributes of Home Assistant entities. I’ve managed to use it for single-value attributes, but my Nordpool sensor stores prices as a list within a single attribute called raw_today. This makes it a bit tricky to apply my weighting idea directly.
Does anyone have experience with manipulating list attributes in Home Assistant? Specifically, is there a way to multiply each value in raw_today with a corresponding weighting factor from another list? I’d love to hear if others have tackled similar challenges or have insights on the effectiveness of this approach for heating control.
This project has been a fascinating way to combine scripting with practical home automation, and I’m excited to see how it evolves. Any advice or alternative strategies would be greatly appreciated!