-
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the feature
Hi, I've noticed that https://github.com/BottlecapDave/HomeAssistant-TargetTimeframes/blob/develop/custom_components/target_timeframes/utils/data_source_data.py#L55 requires time frames in the data to be 30 minutes.
In the Netherlands, we have electricity pricing per 15 minutes.
I have some data from Nordstrom, e.g.:
{
"data": [
{
"start": "2026-01-04T23:00:00+00:00",
"end": "2026-01-04T23:15:00+00:00",
"value": 0.306,
"metadata": {}
},
{
"start": "2026-01-04T23:15:00+00:00",
"end": "2026-01-04T23:30:00+00:00",
"value": 0.282,
"metadata": {}
},
{
"start": "2026-01-04T23:30:00+00:00",
"end": "2026-01-04T23:45:00+00:00",
"value": 0.276,
"metadata": {}
},
...
As you can see, the data is specified per 15 minute blocks.
It would be nice, if the integration could be more flexible with the block length. For example, some energy suppliers still use 1 hour price blocks.
In addition, it was challenging to figure out what the issue was:
As you can see, the only feedback in the Home Assistant UI was: invalid_data_source_data.
The logs provided no further information:
2026-01-05 14:22:38.407 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: invalid_data_source_data
2026-01-05 14:22:38.408 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281472103042880]
I read the source code of the extension to figure out the problem
I'm not really a Python engineer but I am happy to support in any way I can.
Expected behaviour
Extension support 15 minute time frames.
Use Case
Electricity prices in the EU.
Confirmation
- By submitting this feature request, you agree that you have read the documentation and confirmed it does not already exist
- I am willing/able to help contribute to the solution of this feature