Getting error message after adding RPi systemmonitor

Note that the following two integrations does not have anything to do with each other. It’s just that I cannot get both of them to work at the same time. Probably due to some coding error, since I am failrly new to HA configuration.

I had this line in configuration.yaml to load a sensor with current HVAC status from the thermostat.

image

I had this section in sensors.yaml:

image

The above worked fine by itself
I then wanted to integrate the parameters from by RPi to get CPU temperature, CPU utilization, Memory utilization and Disk usage. I was adviced to put the following in configuration.yaml:

image

After doing this I get the following error message:

image

I wanted to test if that systemmonitor is working OK, so I removed the hvac_status sensor from sensors.yaml. After doing this I get no error messages and the systemmonitor works. Data from RPi can be seen.

However, how do I get both of these two work at the same time? :tired_face:
What is the conflict? Is there a way I can set these two up differently?

The conflict is that you in fact are now using two sensor: entries in your configuration.yaml file, one for the !include: statement and one to add the systemmonitor sensors.
Since you decided to split-up your configuration, using the !include: statement and moving the sensor: definitions to a separate yaml file sensors.yaml, it is best to put all your sensor definitions in this same file.
So just move the systemmonitor sensor definition to the sensors.yaml file.
But if you do that be sure to leave out the sensor: statement in the sensors.yaml file, so only add this to sensors.yaml:

  - platform: systemmonitor
    resources:
      - type: disk_use_percent
      - arg: /config
      - type: disk_use
      - etc...