Looks like it has stabilised and is functioning correctly now.
Thanks.
Looks like it has stabilised and is functioning correctly now.
Thanks.
Good Morning, I seem to be getting a similar issue as Repairs I try to add Amber Electric with my API key and get an error.
4 days ago I setup my API key in dev tools and tested with curl and was getting an empty array, as I had just setup the API I thought I would just leave it as for a few days in case there is other back end stuff that has to happen for the key to work. I tried it again now and the curl command still gives me an empty array but hangs the curl command so I have to Ctrl-C to get out of it.
When I add the integration in HA I get āNo Site Providedā error.
Any help would be greatly appreciated.
Email [email protected]
Itās likely that there was a delay in your site onboarding or you are still on a basic meter (we automatically order a smart meter but they can take a few weeks), but if you email in, I can check for you. Make it attn: Myles and theyāll push it through to me.
We donāt have a smart meter yet, I thought I would still get the power costs data regardless. So it could purely be that I donāt have my smart meter yet (been a month and no word) that the API wonāt work until i do?
No, we donāt price basic meters. Because of the way we bill them, your 30-minute usage is based on a synthetic load curve, so there isnāt a huge advantage in knowing the specific price (the app actually shows you your default network tariff).
We are reviewing this though - more and more basic meter API users want the price to get a feel for what is happening even if it isnāt really reflecting their bill.
Sorry mate my writing on that was pore ā¦ I meant that if my smart meter is not installed yet does that mean my API key may not work?
I was hoping to get the Amber wholesale rates feed into HA so i could start working on automation rules for my solar & battery while i wait for my smart meterā¦ I am also looking at the emhass stuff as well as that looks good.
Yeah, thatās right.
Does anybody happen to know how to pass the custom component called forecast? From amber?
Iād like to set something to true or use it if there is a spike forecasted in the next X number of hours.
Id like to turn stuff on prior to spike ie my under tile heating before it gets expensive. Thanks
Further up in this thread there were some explanations about why HA does not support forecasting and then a user performed a Kludge using APEX cards to enable the forecast to be monitored
Suggest you read through this thread (which is what i just did)
Craig
Sorry to drag up an old post, but hoping you can help expand on this code just a touch.
My goal is to be able to ask my google assistant around the home āwhen is the cheapest power today?ā, and itās response will include the cheapest 2hr price, and at what time this begins (between current time and 10pm)
Iāve already got "what is the power price? " working, so I more need to work out a way to find the cheapest 2hr block in the time period, and what time it occurs to incorporate in.
Maybe even just a single sensor that outputs these two values which can be called upon in the script?
Cheers for any help
These binary sensors will get you half way:
- binary_sensor:
- name: "Amber Cheapest 8 hrs"
state: "{{ states('sensor.amber_feed_in_price')|float(0)
<= (state_attr('sensor.amber_feed_in_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort).15}}"
- name: "Amber Cheapest 4 hrs"
state: "{{ states('sensor.amber_feed_in_price')|float(0)
<= (state_attr('sensor.amber_feed_in_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort).7}}"
- name: "Amber Cheapest hour"
state: "{{ states('sensor.amber_feed_in_price')|float(0)
<= (state_attr('sensor.amber_feed_in_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort).1}}"
- name: highest2.5
state: "{{ states('sensor.amber_feed_in_price')|float(0)
>= (state_attr('sensor.amber_feed_in_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort(reverse=true)).4}}"
- name: lowest2.5
state: "{{ states('sensor.amber_general_price')|float(0)
<= (state_attr('sensor.amber_general_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort).4}}"
This might be the other half, although this is not going down the automation path (i.e. let the computers do the thinking/action).
This is just information that can be formatted as user accessible so it is just a list of "cheapest half hour start timesā¦
{% set cheapest_cost = (state_attr('sensor.amber_grid_general_forecast', 'forecasts') | map(attribute='per_kwh')|list|sort).0 %}
{{ cheapest_cost }}
{{state_attr('sensor.amber_grid_general_forecast', 'forecasts') | selectattr('per_kwh', "<=", cheapest_cost ) | list | pprint }}
{{state_attr('sensor.amber_grid_general_forecast', 'forecasts') | selectattr('per_kwh', "<=", cheapest_cost ) | list| map(attribute='start_time')|list|sort }}
Results:
0.16
[{'date': '2023-05-28',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T02:30:00+00:00',
'nem_date': '2023-05-28T12:30:00+10:00',
'per_kwh': 0.16,
'range_max': 0.22,
'range_min': 0.04,
'renewables': 45,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T02:00:01+00:00'},
{'date': '2023-05-28',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T03:00:00+00:00',
'nem_date': '2023-05-28T13:00:00+10:00',
'per_kwh': 0.16,
'range_max': 0.15,
'range_min': 0.01,
'renewables': 45,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T02:30:01+00:00'},
{'date': '2023-05-28',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T03:30:00+00:00',
'nem_date': '2023-05-28T13:30:00+10:00',
'per_kwh': 0.16,
'range_max': 0.15,
'range_min': 0.04,
'renewables': 43,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T03:00:01+00:00'},
{'date': '2023-05-28',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T04:00:00+00:00',
'nem_date': '2023-05-28T14:00:00+10:00',
'per_kwh': 0.16,
'range_max': 0.15,
'range_min': 0.04,
'renewables': 41,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T03:30:01+00:00'},
{'date': '2023-05-29',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T16:00:00+00:00',
'nem_date': '2023-05-29T02:00:00+10:00',
'per_kwh': 0.16,
'range_max': 0.09,
'range_min': 0.06,
'renewables': 12,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T15:30:01+00:00'},
{'date': '2023-05-29',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T16:30:00+00:00',
'nem_date': '2023-05-29T02:30:00+10:00',
'per_kwh': 0.16,
'range_max': 0.09,
'range_min': 0.06,
'renewables': 13,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T16:00:01+00:00'},
{'date': '2023-05-29',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T17:00:00+00:00',
'nem_date': '2023-05-29T03:00:00+10:00',
'per_kwh': 0.16,
'range_max': 0.07,
'range_min': 0.06,
'renewables': 13,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T16:30:01+00:00'},
{'date': '2023-05-29',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T17:30:00+00:00',
'nem_date': '2023-05-29T03:30:00+10:00',
'per_kwh': 0.16,
'range_max': 0.07,
'range_min': 0.06,
'renewables': 13,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T17:00:01+00:00'},
{'date': '2023-05-29',
'descriptor': 'very_low',
'duration': 30.0,
'end_time': '2023-05-28T18:00:00+00:00',
'nem_date': '2023-05-29T04:00:00+10:00',
'per_kwh': 0.16,
'range_max': 0.07,
'range_min': 0.06,
'renewables': 13,
'spike_status': 'none',
'spot_per_kwh': 0.07,
'start_time': '2023-05-28T17:30:01+00:00'}]
['2023-05-28T02:00:01+00:00', '2023-05-28T02:30:01+00:00', '2023-05-28T03:00:01+00:00', '2023-05-28T03:30:01+00:00', '2023-05-28T15:30:01+00:00', '2023-05-28T16:00:01+00:00', '2023-05-28T16:30:01+00:00', '2023-05-28T17:00:01+00:00', '2023-05-28T17:30:01+00:00']
Good timing in this - Iām redoing my kitchen tablet at the moment and wanted this info on there
Cheers to both of you for that - is there a simple way to limit the window in which it sorts the half hour periods to be from current time to say 11:00pm every night? (+10:00 UTC)
I presume since itās a forecast, the start time limitation is taken care of, so it just needs a limit of the end window time.
Edit: I got it to this point , but canāt find a way to limit it to say 10pm as the latest cutoff pointā¦
'alias: Speak cheapest power rate
sequence:
(That end_time of 22:00:09 was an attempt to find the cheapest in that window, but it is being ignored.)
It would be something like what you there.
Best to play in the āDeveloper Toolsā Template tab/tool.
Where it is:
selectattr('per_kwh', "<=", cheapest_cost )
In my example use the end time you are trying to get the subset for and compare to the date that you want to filter on
selectattr('nem_date', "<=", some_date_in_the_right_format )
However, this might be where you are having some issues as the date formats need to āmatchā to be comparable. Play with those in the Dev tools template editor to get quick feedback on if you are filtering properly.
I donāt know much on the time formats here but making them comparable (timestamp or ISO format) will be the challenge.
Also, for your snippet youāll want the current_time check to be >= to create your start and end of the range.
selectattr(āstart_timeā, ā<=ā, current_time) | selectattr(āstart_timeā, ā<=ā, end_time)
I hope that helps a little.
Might be out of context here,
But anyone know how to call the āPreserve Battery Energyā function from home assistant in the amber app? (looks like it holds the reserve for two hours)
so I may test, instead of
I have a automation (via home assistant) that at
3am sets the
batteries to its current reserve setting,
sets my Car charger to 32 A
5am sets the
batteries to a 5% reserve setting,
sets my Car charger to 0 A
We havenāt implemented those controls in the API yet, so unfortunately that isnāt possible.
If you have a powerwall: Iāve been using a custom Tesla add on from HACS ( GitHub - alandtse/tesla: Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.) to control my battery reserve value.
Unfortunately itās a cloud based integration rather than a local one, but it has a lot of car-specific stuff in it too (Iām not using though, I donāt own a Tesla, just a powerwall) which might help with your use case.
Has anyone elseās Amber integration stopped working?
Mine isnāt receiving any new updates from the API all day, and havenāt touched a thingā¦
Try reloading the integration