evcc-io / evcc

Solar Charging β˜€οΈπŸš˜
https://evcc.io
MIT License
3.67k stars 687 forks source link

Fehler bei der Kommunikation mit Tibber #10545

Closed joba642 closed 1 year ago

joba642 commented 1 year ago

Describe the bug

Im WebUI sind ist keine Preisinformation von Tibber sichtbar - es gibt einen Fehler beim Starten von evcc.

Steps to reproduce

  1. restart evcc
  2. see log

Configuration details

network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: xxxxxxxxx

interval: 60s # control cycle interval

sponsortoken: 
xxxxxxxxxxxxxxxx

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true

meters:
- type: template
  template: huawei-dongle-powersensor 
  id: 2  
  host: x.y.z.135  
  port: 502  
  usage: grid  
  modbus: tcpip  
  name: grid1
- type: template
  template: huawei-dongle-powersensor 
  id: 2  
  host: x.y.z.135  
  port: 502  
  usage: pv  
  modbus: tcpip  
  name: pv2
- name: pv3
  type: template
  template: solarman
  usage: pv
  host: x.y.z.129 # IP-Adresse oder Hostname
- name: pv4
  type: template
  template: solarman
  usage: pv
  host: x.y.z.134
- name: pv5
  type: template
  template: solarman
  usage: pv
  host: x.y.z.136

chargers:
- type: template
  template: go-e 
  host: x.y.z.137  
  name: wallbox4

loadpoints:
- title: Carport
  charger: wallbox4
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: true

site:
  title: BatHome
  meters:
    grid: grid1
    #- grid
    pv:
    - pv2
    - pv3
    - pv4
    - pv5
  smartCostLimit: 0.24 
  residualPower: 100

modbusproxy:
  - port: 5021
    uri: x.y.z.1:502

tariffs:
  grid:
    type: tibber
    token: "xxxxxxx" # access token

vehicles:
  - type: template
    template: offline
    title: Polestar 2
    name: polestar
    capacity: 75 # kWh

Log details

`[main  ] INFO 2023/10/29 05:35:58 evcc 0.121.2
[main  ] INFO 2023/10/29 05:35:58 using config file: /etc/evcc.yaml
[main  ] INFO 2023/10/29 05:35:58 starting ui and api at :7070
[db    ] INFO 2023/10/29 05:36:08 using sqlite database: /root/.evcc/evcc.db
[proxy-5021] DEBUG 2023/10/29 05:36:08 modbus proxy for x.y.z.135:502 listening at :5021
[main  ] ERROR 2023/10/29 05:36:13 failed configuring grid tariff: cannot create tariff 'tibber': Message: Post "https://api.tibber.com/v1-beta/gql": dial tcp: lookup api.tibber.com: i/o timeout, Locations: [], Extensions: map[code:request_error]
[site  ] INFO 2023/10/29 05:36:13 site config:
[site  ] INFO 2023/10/29 05:36:13   meters:      grid βœ“ pv βœ“ battery βœ—
[site  ] INFO 2023/10/29 05:36:13     grid:      power βœ“ energy βœ“ currents βœ“
[site  ] INFO 2023/10/29 05:36:13     pv 1:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2023/10/29 05:36:13     pv 2:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2023/10/29 05:36:13     pv 3:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2023/10/29 05:36:13     pv 4:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2023/10/29 05:36:13   vehicles:
[site  ] INFO 2023/10/29 05:36:13     vehicle 1: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—
[lp-1  ] INFO 2023/10/29 05:36:13 loadpoint 1:
[lp-1  ] INFO 2023/10/29 05:36:13   mode:        pv
[lp-1  ] INFO 2023/10/29 05:36:13   charger:     power βœ“ energy βœ“ currents βœ“ phases βœ— wakeup βœ—
[lp-1  ] INFO 2023/10/29 05:36:13   meters:      charge βœ“
[lp-1  ] INFO 2023/10/29 05:36:13     charge:    power βœ“ energy βœ“ currents βœ“
`

What type of operating system are you running?

Docker container

Version

v0.121.2

joba642 commented 1 year ago

Inzwischen habe ich herausgefunden, dass es kein evcc-Bug ist sondern im Container kein DNS verfΓΌgbar ist.