Two entities in a lovelace history graph display separately

Hi all

I have one history card in my lovelace that is displaying its contents strangely. Generally (and as expected) most of my history cards plot multiple entries on the same axis (within a single card)—like this:
history1

However, I have one card that creates a separate set of axis for each entity—like this:

I note that the configuration is virtually identical for both cards (and I have tested to see whether using plain sensor string rather than entities makes any difference—it doesn’t).

Truncated config is as follows (its actual part of a vertical stack—and I’m using the Config UI rather than lovelace.yaml, hence the weird order):

  - entities:
      - entity: sensor.daily_power_solar
        name: Solar
      - entity: sensor.daily_power_solcast
        name: SolCast
    hours_to_show: 168
    refresh_interval: 120
    type: history-graph

Does anyone have suggestions as to what might be causing this?

You entities have different unit_of_measurements (kw and kwh).

4 Likes

Good catch! Much appreciated–it should be same units; I’m check my sensor setup to try to fix it.