Skip to content

GPIO auf Raspberry Pi 3 #31506

Description

@JoernHei

Describe the bug

Nach Update von 0.302.1 auf 0.310.1 entsteht beim Start die Fehlermeldung wie im Bild gezeigt:

Image

Laut Log File hat sich ein Fehler in der Kommunikation mit dem GPIO eingeschlichen:

evcc-20260705-193145-debug.log

Ich habe ausschließlich evcc geupdatet. Weitere Programmupdates gab es nicht zur gleichen Zeit.

Das Problem ist schon beim Update auf eine frühere Version aufgetreten. Das hatte ich in der Conversation zu der entsprechenden Änderung im GPIO Ansteuerungs-Code beschrieben: #27815 (comment)
Ich glaube, dass es damit zu tun hat. Von Programmierung habe ich aber keine Ahnung. Da kam schon der Hinweis ein Issue zu eröffnen. Leider kam ich nicht früher dazu einen zu eröffnen.

Ich nutze einen Raspberry Pi 3 Model B Plus Rev 1.3

Steps to reproduce

  1. Update auf aktuellste Version
  2. Start

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: ***


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


chargers:
- type: template
  template: go-e 
  host: 192.168.178.90  
  name: wallbox3  
- name: WWWP_control
  type: switchsocket
  enabled:
    source: gpio
    function: read
    pin: 23
  enable:
    source: gpio
    function: write
    pin: 23
  features:
    - integrateddevice
    - heating
  power:
    source: mqtt
    topic: "sae/F-23071966-000000000012-00/Leistung-WP"
  icon: heater

loadpoints:
- title: Carport
  charger: wallbox3
  vehicle: vw_passat_joern
  mode: pv
  enable:
      delay: 1s
      threshold: 0
  disable:
      delay: 5m
      threshold: 500
  priority: 1
- title: Warmwasser-WP
  charger: WWWP_control
  mode: pv
  enable:
      delay: 2m
      threshold: -500
  disable:
      delay: 20m
      threshold: 0
  priority: 0

site:
  title: Zuhause
  meters:
    grid: grid1

# mqtt message broker
mqtt:
  broker: localhost:1883
  topic: evcc # root topic for publishing, set empty to disable publishing
  user: ***
  password: ***

vehicles:
  - name: vw_passat_joern
    title: Passat # Wird in der Benutzeroberfläche angezeigt (Optional)
    type: custom
    capacity: 10 # Akkukapazität in kWh (Optional) 
    phases: 1
    soc:
     source: mqtt
     topic: Wican/vw_passat_joern/soc_aufbereitet
     timeout: 8h

Log details

Hier das Log aus der Systemausgabe: Das Log aus der Weboberfläche scheint das Problem besser zu lokalisieren. Es ist unten zu finden.
May 12 23:18:28 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:28 !! solar production: accumulate moved db:2 from 54.761 to 54.768
May 12 23:18:29 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:28 !! solar production: accumulate set db:4 40633.594kWh meter total (was: Accumulated: 40.897kWh updated: 2026-05-12 23:17:59 +0200 CEST meter: 40633.594kWh)
May 12 23:18:29 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:28 !! solar production: accumulate moved db:4 from 40.897 to 40.897
May 12 23:18:29 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:28 site power: 941W
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 charge voltages: [230 230 232]V
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 detected connected phases: 3p
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 charge total import: 7044.000kWh
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 charger status: B
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 plan: charge 31m3s between 2026-05-13 07:58:57 +0200 CEST until 2026-05-13 08:30:00 +0200 CEST (power: 3680W, avg cost: 0.000)
May 12 23:18:29 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:28 pv charge current: 0A = 0A + -4.09A (941W @ 1p)
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 ----
May 12 23:18:57 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:18:57 charge power: 0W
May 12 23:18:57 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:57 charge power: 0W
May 12 23:18:57 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:18:57 charge currents: [0 0 0]A
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 pv 2 power: 0W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 grid power: -9W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 grid powers: [348 -186 -171]W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 grid currents: [2.37 -1.37 -1.31]A
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 battery 1 power: 834W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 pv 1 power: 0W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 battery 1 soc: 58%
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 pv power: 0W
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 !! solar production: accumulate set db:2 26203.416kWh meter total (was: Accumulated: 54.768kWh updated: 2026-05-12 23:18:28 +0200 CEST meter: 26203.409kWh)
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 !! solar production: accumulate moved db:2 from 54.768 to 54.775
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 !! solar production: accumulate set db:4 40633.594kWh meter total (was: Accumulated: 40.897kWh updated: 2026-05-12 23:18:28 +0200 CEST meter: 40633.594kWh)
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 !! solar production: accumulate moved db:4 from 40.897 to 40.897
May 12 23:18:57 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:18:57 site power: 925W
May 12 23:18:57 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:18:57 charger status: B
May 12 23:18:57 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:18:57 !! plan: plan time zero
May 12 23:18:57 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:18:57 pv charge current: 0A = 0A + -4.02A (925W @ 1p)
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 ----
May 12 23:19:26 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:19:26 charge power: 0W
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 charge power: 0W
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 charge currents: [0 0 0]A
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 pv 2 power: 0W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 grid power: -2W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 grid powers: [350 -184 -169]W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 grid currents: [2.39 -1.37 -1.31]A
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 battery 1 power: 833W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 battery 1 soc: 58%
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 pv 1 power: 0W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 pv power: 0W
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 !! solar production: accumulate set db:2 26203.423kWh meter total (was: Accumulated: 54.775kWh updated: 2026-05-12 23:18:57 +0200 CEST meter: 26203.416kWh)
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 !! solar production: accumulate moved db:2 from 54.775 to 54.782
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 !! solar production: accumulate set db:4 40633.594kWh meter total (was: Accumulated: 40.897kWh updated: 2026-05-12 23:18:57 +0200 CEST meter: 40633.594kWh)
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 !! solar production: accumulate moved db:4 from 40.897 to 40.897
May 12 23:19:26 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:26 site power: 930W
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 charge voltages: [230 231 232]V
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 detected connected phases: 3p
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 charge total import: 7044.000kWh
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 charger status: B
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 plan: charge 31m3s between 2026-05-13 07:58:57 +0200 CEST until 2026-05-13 08:30:00 +0200 CEST (power: 3680W, avg cost: 0.000)
May 12 23:19:26 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:26 pv charge current: 0A = 0A + -4.05A (930W @ 1p)
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 ----
May 12 23:19:55 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:19:55 charge power: 0W
May 12 23:19:55 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:55 charge power: 0W
May 12 23:19:55 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:19:55 charge currents: [0 0 0]A
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 pv 2 power: 0W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 grid power: -6W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 grid powers: [349 -186 -168]W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 grid currents: [2.38 -1.37 -1.31]A
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 battery 1 power: 821W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 pv 1 power: 0W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 battery 1 soc: 58%
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 pv power: 0W
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 !! solar production: accumulate set db:2 26203.429kWh meter total (was: Accumulated: 54.782kWh updated: 2026-05-12 23:19:26 +0200 CEST meter: 26203.423kWh)
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 !! solar production: accumulate moved db:2 from 54.782 to 54.788
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 !! solar production: accumulate set db:4 40633.594kWh meter total (was: Accumulated: 40.897kWh updated: 2026-05-12 23:19:26 +0200 CEST meter: 40633.594kWh)
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 !! solar production: accumulate moved db:4 from 40.897 to 40.897
May 12 23:19:55 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:19:55 site power: 915W
May 12 23:19:55 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:19:55 charger status: B
May 12 23:19:55 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:19:55 !! plan: plan time zero
May 12 23:19:55 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:19:55 pv charge current: 0A = 0A + -3.98A (915W @ 1p)
May 12 23:20:24 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:20:24 ----
May 12 23:20:24 raspberrypi evcc[7019]: [lp-2  ] DEBUG 2026/05/12 23:20:24 charge power: 0W
May 12 23:20:24 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:20:24 charge power: 0W
May 12 23:20:24 raspberrypi evcc[7019]: [lp-1  ] DEBUG 2026/05/12 23:20:24 charge currents: [0 0 0]A
May 12 23:20:24 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:20:24 grid power: 2W
May 12 23:20:24 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:20:24 grid powers: [231 -123 -106]W
May 12 23:20:24 raspberrypi evcc[7019]: [site  ] DEBUG 2026/05/12 23:20:24 pv 2 power: 0W

Log File aus der Weboberfläche:
Suchen

DEBUG
Alle Bereiche
[main ] INFO 2026/07/05 19:59:00 evcc 0.310.1
[main ] INFO 2026/07/05 19:59:00 using config file: /etc/evcc.yaml
[main ] INFO 2026/07/05 19:59:00 using sqlite database: /var/lib/evcc/evcc.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
[mqtt ] INFO 2026/07/05 19:59:01 connecting evcc-1381529543 at tcp://localhost:1883
[mqtt ] DEBUG 2026/07/05 19:59:01 tcp://localhost:1883 connected
[eebus ] INFO 2026/07/05 19:59:01 Local SKI: cf292f2dd13b0b5442f81259c8e903272d055027
[main ] INFO 2026/07/05 19:59:01 OCPP local url: ws://127.0.0.1:8887/<stationId>
[main ] INFO 2026/07/05 19:59:01 UI local url: http://127.0.0.1:7070
[lp-1 ] DEBUG 2026/07/05 19:59:02 charge total import: 7270.000kWh
[main ] FATAL 2026/07/05 19:59:02 charger [WWWP_control] cannot create charger 'WWWP_control': cannot create charger type 'switchsocket': failed to open GPIO: device or resource busy loadpoint [lp-2] missing charger instance
[main ] FATAL 2026/07/05 19:59:02 will attempt restart in: 15m0s

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

Linux

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

evcc version 0.310.1

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions