hey folks, wondering if there are any YAML experts here. I am trying to learn on YouTube as much as I can, but I’m stumped on this one.
I’m in Ontario (Canada) and have the Ontario energy Board Integration loaded. In that, my electricity provider is listed with my time of use rates. I have put in the following YAML code to try to get an hourly cost breakdown for each day of the electricity I use. I got this off of a YouTube video.
It doesn’t error on me, but it says “loading” and has said so all day. My totally uneducated guess is that the attributes in my Provider, do not match that in the line of code. I am guessing it is in the data generator area?
Anyway, if anyone can help I’d appreciate it. Below is the YAML code I have, and below that I will try to put the attributes of my electricity company in HA, as well as the “loading” screen.
**Edit: My apologies, I did not read the posting rules (been a long day). I have edited below. This has not yet worked for me, I am trying it for the first time. Nothing appears in the logs (likely as I am not getting an error).
Thanks.
Here is the YAML
type: custom:apexcharts-card
graph_span: 24h
header:
title: Energy Price Today
show: true
span:
start: day
now:
show: true
label: Now
series:
- entity: sensor.westario_power_inc_residential_rate
color: green
type: column
float_precision: 2
data_generator: |
return entity.attributes.times.map((time, index) => {
return {new Date(time).getTime(), entity.attributes.prices
});
yaxis:
- decimals: 2
apex_config:
tickAmount: 10;