But PIO project configurator error

Try the tasmota fork. This has Arduino 3.x implemented. See