StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
510 stars 190 forks source link

Some extra attributes for sofar_wifikit.yaml #432

Open rpooley opened 8 months ago

rpooley commented 8 months ago

Would it be possible to add the following for the sofar_wifikit.yaml:

    - name: "Battery Total Energy Charged"
      class: "energy"
      state_class: "total"
      uom: "kWh"
      scale: 1
      rule: 1
      registers: [0x0227]
      icon: 'mdi:battery-clock'

    - name: "Battery Total Energy Dischaged"
      class: "energy"
      state_class: "total"
      uom: "kWh"
      scale: 1
      rule: 1
      registers: [0x0229]
      icon: 'mdi:battery-clock-outline'

    - name: "Battery Total Charge"
      class: "energy"
      state_class: "total"
      uom: "KWh"
      scale: 1
      rule: 3
      registers: [0x0227,0x0226]
      icon: 'mdi:battery'

    - name: "Battery Total Discharge"
      class: "energy"
      state_class: "total"
      uom: "KWh"
      scale: 1
      rule: 3
      registers: [0x0229,0x0228]
      icon: 'mdi:battery'

    - name: "Battery Cycles"
      class: ""
      state_class: ""
      uom: "Charges"
      scale: 1
      rule: 1
      registers: [0x022C]
      icon: 'mdi:battery-check-outline'