Skip to content

Huawei Luna2000 - kein AC-Laden, wenn eingestellter Preis erreicht ist #25197

@dieterlind

Description

@dieterlind

Describe the bug

Hallo!
Ist mir jetzt schon in ein paar Nächten aufgefallen:
Ich setze einen Preis, damit die Batterie in der Nacht vom Netz geladen wird.

Das wäre zwischen 00:00 und 02:00 Uhr und zwischen 03:00 Uhr und 05:00 Uhr gewesen.
Dennoch hat die Batterie nicht geladen.

Im Log steht
um 00:00:17 set battery mode: charge bzw. um 02.00:17 set battery mode: normal
um 03:00:29 set battery mode: charge bzw. um 05:00:26 set battery mode: normal

Warum wurde die Batterie nicht wie geplant geladen??

Danke!

evcc_log.txt

Steps to reproduce

...

Configuration details

Network:

  schema: http
  host: xxx.xxx.xxx.xxx # IP vom Home Assistant 
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 15s # control cycle interval

sponsortoken: 

# log settings
log: debug
levels:
  site: debug
  lp-1: debug
  lp-2: debug

# meter definitions
meters:
- name: grid1
  type: template
  template: huawei-sun2000
  usage: grid
  modbus: tcpip
  id: 1
  host: xxx.xxx.xxx.xxx # Hostname
  port: 502 # Port
  timeout: 15s # optional  
- name: pv1
  type: template
  template: huawei-sun2000
  usage: pv
  modbus: tcpip
  id: 1
  host: xxx.xxx.xxx.xxx # Hostname
  port: 502 # Port
  timeout: 15s # optional
- name: pv2
  type: template
  template: sma-inverter-speedwire
  usage: pv
  host: xxx.xxx.xxx.xxx
  password: 
- name: battery
  type: template
  template: huawei-sun2000
  usage: battery
  modbus: tcpip
  id: 1
  host: xxx.xxx.xxx.xxx # Hostname
  port: 502 # Port
  capacity: 15
  maxchargepower: 5000
  maxdischargepower: 5000
  maxacpower: 5000
  minsoc: 5
  maxsoc: 100
  timeout: 15s # optional

chargers:
  - name: go-e-Tesla
    type: template
    template: go-e-v3
    host: xxx.xxx.xxx.xxx # IP-Adresse oder Hostname
  - name: go-e-Skoda
    type: template
    template: go-e-v3
    host: xxx.xxx.xxx.xxx # IP-Adresse oder Hostname
  - name: WP_charger
    type: switchsocket
    enabled: # is switch enabled?
      source: const
      value: true
    enable: # enable/disable switch
      source: js
      script: console.log(enable)
    power: # charge power reading in W
      source: modbus
      id: 1
      uri: xxx.xxx.xxx.xxx:502
      register:
        address: 4122
        type: holding
        decode: float32s
      scale: 1000
      timeout: 15s # optional
    standbypower: 20 # in W, below values will be treaded as inactive
    features:
      - heating # treat as a heating device
      - integrateddevice # no charging sessions, no connected vehicles
    icon: heater # icon for UI purpose only
    soc: # meter reading in kWh
      source: modbus
      id: 1
      uri: xxx.xxx.xxx.xxx:502
      register:
        address: 1012
        type: holding
        decode: float32s        
      timeout: 15s # optional  

vehicles:
  - name: ModelY
    type: template
    template: tesla
    clientID: 
    accessToken: 
    refreshToken: 
    capacity: 60
    icon: car
  - name: Enyaq
    type: template
    template: enyaq
    user: 
    password: 
    capacity: 77
    icon: car

circuits:
  - name: main 
    title: Hauptstromkreis 
    maxCurrent: 35
    maxPower: 24000
    meter: grid1
  - name: garage
    title: Garage
    maxCurrent: 16.5
    parent: main    

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
    grid: grid1 # grid meter
    pv:
      - pv1
      - pv2
    battery: 
      - battery # battery meter
  residualPower: 100

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: go-e Tesla # display name for UI
    charger: go-e-Tesla # charger    
    vehicle: ModelY
    circuit: garage
    priority: 1
    enable:
      delay: 1m
      threshold: 0
    disable:
      delay: 3m
      threshold: 0
  - title: go-e Skoda # display name for UI
    charger: go-e-Skoda # charger
    vehicle: Enyaq
    circuit: garage
  - title: Wärmepumpe # display name for UI
    charger: WP_charger # charger
    circuit: main    
    priority: 2

# tariffs are the fixed or variable tariffs
# cheap (tibber/awattar) can be used to define a tariff rate considered cheap enough for charging
tariffs:
  grid:
    type: template
    template: awattar
    region: AT
    charges: 0.13611129
    tax: 0.2
    formula: math.Max((price + charges) * (1 + tax), 0.0)    
  feedin:
    type: fixed
    price: 0.06    
  solar:
  - type: template
    template: solcast
    site: 
    token: 
    from: 5
    to: 20
    interval: 4h      
  - type: template
    template: solcast
    site: 
    token: 
    from: 5
    to: 20
    interval: 4h      
    
mqtt:
  broker: xxx.xxx.xxx.xxx:xxxxx
  topic: evcc
  clientid: evcc
  user: 
  password: 

modbusproxy:
- port: 5021
  uri: xxx.xxx.xxx.xxx:502 # Huawei WR
- port: 5023
  uri: xxx.xxx.xxx.xxx:502    # WP
  
influx:
  url: http://xxx.xxx.xxx.xxx:8086
  database: evcc
  token: 
  org:

Log details

see logfile

What type of operating system or environment does evcc run on?

Docker container

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.209.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions