How to merge plots?

Hi guys, here my first steps using HA…

Actually I am collecting data (as exercise) from solar controller through modbus.

Here sample piece of my configuration.yaml:

modbus:
        - name: Solar_TemperatureEnv
          slave: 1
          address: 12342
#          input_type: holding # funzione 03
          input_type: input # funzione 04
          unit_of_measurement: °C
          device_class: temperature
          state_class: measurement 
          scale: 0.01
          offset: 0
          precision: 1
          data_type: int16
          scan_interval: 60       

        - name: Solar_TemperatureCtrl
          slave: 1
          address: 12343
#          input_type: holding # funzione 03
          input_type: input # funzione 04
          unit_of_measurement: °C
          device_class: temperature
          state_class: measurement 
          scale: 0.01
          offset: 0
          precision: 1
          data_type: int16
          scan_interval: 60       
       

Then I show different cards, e.g.:

  • Solar_TemperatureCtrl
  • Solar_TemperatureEnv

I get temperature plot when I click on card.

I would like to see both temperature plots on same window, same graph or separated.

How should I change my code?
Thanks.

If you have two sensors with SAME unit of measurement - you may display their graphs on same card:

type: history-graph
entities:
  - entity: sensor.xxx
  - entity: sensor.yyy

But it may not give a proper look if values have different ranges.
Assume sensor.xxx is changing in a range “85-90”, and sensor.yyy - in range “20-25”, and after placing both graphs on the same card you may see 2 lines with small deviations…

Mmh… ok,
I am testing several configurations but I can’t get optimal result.
If different units of measurement it works (e.g. charging status and battery voltage), but as you said look is not good for same units of measurement.
I mean I use plots for debugging, I can’t compare 40-60 Volts of solar panel to 10-15 Volts of battery in same graph…
What I need is a similar layout, is this possible?

You are using a History view which “merges” together graphs with same unit. Instead, manually add a few history-graph cards onto a dashboard where YOU will decide which graphs should be “merged”.