StephanJoubert / home_assistant_solarman

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

Smart load issue on 5Kw Deye Inverter #319

Open Joshuawo1 opened 1 year ago

Joshuawo1 commented 1 year ago

Good evening all. Looking guidance. Missing the following values.

  1. I use the smart load for my geyser. But the smart load says look up. wondering what I need to edit in order to fix this issue.
  2. time of use also says Look up
  3. My solar man card picks up the smart load as essentials
adnovea commented 1 year ago

For a Deye Sun-5k-SG03LP1-EU, I had to modify the config\custom_components\solarman\inverter_definitions\deye_hybrid.yaml as follow (no warranty it will work for you) :

LOOKUP means there is no value specified for the current state.

NOTE : The Battery status register [0x00BD] does not work for me.

...
    - name: "SmartLoad Enable Status"
      class: ""
      state_class: ""      
      uom: ""
      scale: 1
      rule: 1
      registers: [0x00C3]
      isstr: true
      lookup: 
      -  key: 16
         value: "OFF"
      -  key: 17
         value: "ON"
      icon: 'mdi:lightning-bolt-outline'
...
 - group: Inverter
   items: 
    - name: "Running Status"
      class: ""
      state_class: ""      
      uom: ""
      scale: 1
      rule: 1
      registers: [0x003B]
      isstr: true
      lookup: 
      -  key: 0
         value: "Stand-by"
      -  key: 1
         value: "Self-checking"
      -  key: 2
         value: "Normal"
      -  key: 3
         value: "FAULT"
      icon: 'mdi:home-lightning-bolt'
...
    - name: "Grid-connected Status"
      class: ""
      state_class: ""      
      uom: ""
      scale: 1
      rule: 1
      registers: [0x00C2]
      isstr: true
      lookup: 
      -  key: 0
         value: "Off-Grid"
      -  key: 1
         value: "On-Grid"

    - name: "Gen-connected Status"
      class: ""
      uom: ""
      state_class: ""      
      scale: 1
      rule: 1
      registers: [0x00A6]
      isstr: true
      lookup: 
      -  key: 0
         value: "none"
      -  key: 1
         value: "On"
...
    - name: "Time of use"
      class: ""
      state_class: ""      
      uom: ""
      scale: 1
      rule: 1
      registers: [0x00F8]
      isstr: true
      lookup: 
      -  key: 0
         value: "Disable"
      -  key: 1
         value: "Enable"
...
    - name: "Work Mode"
      class: ""
      state_class: ""      
      uom: ""
      scale: 1
      rule: 3
      registers: [0x00F4,0x00F7]
      isstr: true
      lookup: 
      -  key: 0
         value: "Selling First"
      -  key: 1
         value: "0-Export to Load"
      -  key: 2
         value: "0-Export to CT"
      -  key: 65537
         value: "0-Export to Load & Sell"
      -  key: 65538
         value: "0-Export to CT & Sell"
      icon: 'mdi:home-lightning-bolt'