I just now looked at the values and they are way off from one another.
I would expect ‘history’ data as you are using in the Apex to at least come close to that in the energy dashboard… As you are not showing a (time)scale with apex nor the sensors you are using in the energy dash, I suspect they are not the same?
EDIT: correction, without the scale I can at least see that they have the same sizing.
Better guess: your apex shows the running total and the energy dash the one per hour, what happens when you add a Y-axis?
EDIT2: just came to thought that my response makes no sense… if they would be different on timescale then the graphs would not look identical
I wonder if anyone can help with an issue I’m having with column position or tick placement position.
I’m plotting half hourly unit prices for my electricity. The data has a start and end time aligned with half hourly blocks, and a price.
When plotted, the x axis ticks, labels, and ‘now’ annotation are plotted pointing at the middle of the column, rather than the start - which is incorrect. Ideally they’d be plotted 15m earlier (or the columns 15m later).
The ‘now’ marker is in the middle of a period, when in fact we’re at the start of a period - it’s 15min ahead. The peak time starts at 4pm, but the markers indicate it starts at 3:45pm.
I think I want something akin to the tickPlacement option - though it doesn’t appear to work in this case.
Options I’ve tried:
adding an offset to the data - this works to move the columns, though the labels are now incorrect and mention (-15min)
adding an offset in addition to a custom formatter for the xaxis tooltip and general tooltip - this works but is a lot of extra code.
Hi, excellent work - very good!
I would like to add markdown elements (here: URL’s to external pages) to a well designed custom:apexcharts-card.
Is it possible to add them directly in the YAML code? The attempt of a combination via a vertical stack card was unsuccessful?
Thanks for any support.
I am looking for a simple way to have a graph with temp and hum in one window.
Can anybody show me the correct code for x&y axis?
I didnt get it…
Is it also possible to remove the below text (red marked; it is double available with the top…)
Is it possible to show a combo graph with a binary_sensor with apex? Like this:
Actually my entity is not a binary_sensor, but a sensor with On/Off values anyway.
There is a bug with max long term statistics display on graph or I have not understand something ? It display the max value between the month and the previsous month :
type: custom:apexcharts-card
graph_span: 13month
span:
start: month
offset: '-12month'
yaxis:
- id: euro
min: 0
max: auto
series:
- entity: sensor.cost_month
type: column
yaxis_id: euro
float_precision: 2
show:
datalabels: true
statistics:
type: max
period: month
Hi!
I have this card on my home assistant dashboard. It’s very simple and serves to measure the time my children spend watching television. I created it with this tutorial by Smart Home Junkie.
It seems to work fine as far as I can tell, but I have the problem that in the header it shows the information in this format that includes hours, minutes, seconds, and milliseconds.
I would like to format it to show the information in hours or hours and minutes, but I’m not interested in seeing seconds and milliseconds. Unfortunately, I don’t know how to do it, and that’s why I’m here, in case someone could help me. Thanks in advance.
state_class: total
unit_of_measurement: s
device_class: duration
icon: mdi:measure
friendly_name: Tiempo TV_day
status: waiting for time window
prev_period: "00:00"
next_reset: "2024-03-04T03:00:00+00:00"