History Graph: Strange behaviour with a sensor

Hi,

I have two Fibaro Motion Sensors and I want to have both temperature sensors in a history graph.
If I create one history graph with both sensors, then one sensor is shown as a XY-Graph but the other one as a Bar.

If I have them in seperate History Graphs, then both sensors are shown as XY-Graph.

I have both versions in the config below:

 dach:
    name: Temperatur Dachzimmer
    entities:
      - sensor.kinderzimmer_dominik_temperature
      - sensor.fibaro_system_fgms001zw5_motion_sensor_temperature
    hours_to_show: 72
    refresh: 300
  dach2:
    name: Temperatur Dachzimmer2
    entities:
      - sensor.fibaro_system_fgms001zw5_motion_sensor_temperature
    hours_to_show: 72
    refresh: 300     

Here the groups definition:

group_Dachfenster:
default_view:
  view: yes
  name: Dach
  entities:
    - group.group_Dachzimmer_Graphen
    - group.group_Dachfenster_All
    - group.group_Dachfenster_West
    - group.group_Dachfenster_Ost
    - group.group_Dachfenster_Mitte
    - group.group_Dachfenster_Automation
    
group_Dachzimmer_Graphen:
  name: Dachzimmer Temperatur
  view: no
  entities:
    - history_graph.temperatur_dachzimmer
    - history_graph.temperatur_dachzimmer2

This is the result:

Br,
Johannes

Add unit_of_measurement to both sensor configurations and it should fix the problem. HA sees your sensor state as a string and not a number, adding a unit let’s HA know it’s a number all the time

Hi Johannes,
Can you advise where you place “Dach” – is that in your configuration.yaml?

~Bryan

from what he posted, his dach and dach2 sensors are in the history_graph sensor component:

https://www.home-assistant.io/components/history_graph/

and group_Dachfenster, and group_Dachzimmer_Graphen are in the group component:

100% Correct

Br,
Johannes