How to define more then one powerMeter attribute for the same device/driver

Hello guys
I’m developing my own Edge Driver to track power consumption getting data from my Inverter.

I have a simple .yaml profile file like this one:

name: inverter.myOwnInverter.v1
components:
- id: main
  capabilities:
  - id: energyMeter
    version: 1
  - id: powerMeter
    version: 1
  - id: battery
    version: 1
  categories:
  - name: SolarPanel

Where I defined 3 attributes :

  • energyMeter (to track daily cum energy production)
  • powerMeter (to track instant solar panel energy production)
  • battery.

Now I need to add/manage more powerMeter attributes for the same device/driver (e.g. to track the instant power consumption, placed power to grid etc…)
I was not able to find a similar device implementation on git .
Can someone give me some hints to enhance my .yaml profile?
Thanks in advance!
Roberto

You may create a new component or a child device that is virtually connected to its parent device.