Attiny24 configuration and programming

Hello everyone.
I have problems programming my Attiny24.
I use an Arduino Nano as an ISP Programmer.
If i use the Arduino IDE with the code:

int ledPin = PB0;
void setup() {
  pinMode(ledPin, OUTPUT);
}
void loop() {
  digitalWrite(ledPin, LOW); 
  delay(1000);
  digitalWrite(ledPin, HIGH); 
  delay(1000);
}

Everything works as expected.
But if i use the “same” code in VSC / PlatformIO:

#include <Arduino.h>
int ledPin = PB0;
void setup() {
  pinMode(ledPin, OUTPUT);
}
void loop() {
  digitalWrite(ledPin, LOW); 
  delay(1000);
  digitalWrite(ledPin, HIGH); 
  delay(1000);
}

The Led does not blink.
Here is the output while programming:

Processing attiny24 (platform: atmelavr; board: attiny24; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/attiny24.html
PLATFORM: Atmel AVR (3.4.0) > Generic ATtiny24
HARDWARE: ATTINY24 8MHz, 128B RAM, 2KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES:
 - framework-arduino-avr-attiny @ 1.5.2
 - tool-avrdude @ 1.60300.200527 (6.3.0)
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\attiny24\src\main.cpp.o
Linking .pio\build\attiny24\firmware.elf
Checking size .pio\build\attiny24\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]   7.0% (used 9 bytes from 128 bytes)
Flash: [===       ]  30.0% (used 614 bytes from 2048 bytes)
Building .pio\build\attiny24\firmware.hex
Configuring upload protocol...
AVAILABLE: stk500v1
CURRENT: upload_protocol = stk500v1
Looking for upload port...
Uploading .pio\build\attiny24\firmware.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e910b (probably t24)
avrdude: erasing chip
avrdude: reading input file ".pio\build\attiny24\firmware.hex"
avrdude: writing flash (614 bytes):

Writing | ################################################## | 100% 1.29s

avrdude: 614 bytes of flash written
avrdude: verifying flash memory against .pio\build\attiny24\firmware.hex:
avrdude: load data flash data from input file .pio\build\attiny24\firmware.hex:
avrdude: input file .pio\build\attiny24\firmware.hex contains 614 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.53s

avrdude: verifying ...
avrdude: 614 bytes of flash verified

avrdude: safemode: Fuses OK (E:FF, H:DF, L:E2)

avrdude done.  Thank you.

=============================================================================== [SUCCESS] Took 4.96 seconds ===============================================================================
 *  Terminal will be reused by tasks, press any key to close it.

I can see no issues. platformio.ini is:

[env:attiny24]
platform = atmelavr
board = attiny24
board_build.mcu = attiny24
framework = arduino
upload_protocol = stk500v1
upload_flags =
	-P$UPLOAD_PORT
	-b$UPLOAD_SPEED
upload_port = COM26
upload_speed = 19200

board_build.f_cpu = 8000000L
board_fuses.lfuse = 0xE2
board_fuses.hfuse = 0xDF
board_fuses.efuse = 0xFF

Initially the fuses were set to 1Mhz but i was able set the fuses to 8Mhz with PlatformIO. Due to everything works with the Arduino IDE, it cannot be any hardware problem. It must be something in the settings of PlatformIO.
I was already able to program an Attiny85 with PlatformIO, no problems here. But the Attiny24 wont work…
Anyone has an idea?