Skip to content

Add devcontainer and automations configuration#24600

Open
Thomas1208 wants to merge 1 commit intoarendst:developmentfrom
Thomas1208:devcontainer-setup
Open

Add devcontainer and automations configuration#24600
Thomas1208 wants to merge 1 commit intoarendst:developmentfrom
Thomas1208:devcontainer-setup

Conversation

@Thomas1208
Copy link
Copy Markdown

Sets up a reproducible development environment using the Ona devcontainer format.

devcontainer.json

  • Base image: mcr.microsoft.com/devcontainers/python:3 (Python is the PlatformIO runtime)
  • VS Code extension: platformio.platformio-ide

.ona/automations.yaml

  • install-platformio: installs PlatformIO CLI via pip on postDevcontainerStart
  • build: manual task running pio run -e ${PIO_ENV:-tasmota}; defaults to the ESP8266 tasmota variant, override with PIO_ENV=tasmota32 etc.

- devcontainer.json: use mcr.microsoft.com/devcontainers/python:3 as
  base image (Python is the PlatformIO runtime) with the platformio-ide
  VS Code extension
- automations.yaml: install PlatformIO via pip on postDevcontainerStart;
  manual build task runs pio run -e ${PIO_ENV:-tasmota}

Co-authored-by: Ona <no-reply@ona.com>
@Jason2866
Copy link
Copy Markdown
Collaborator

Jason2866 commented Mar 29, 2026

With the change it is everytime needed to click away the Message window if it should start in devcontainer. Furthermore Tasmota is optimized for use with VSC extension pioarduino.

Does ONA provide the possibility to use without providing any payment data?

Furthermore the used Tasmota Platform espressif32 does not use pip. The use of pip is deprecated. The Platform uses uv only. Tasmota uses the fork pioarduino for the pio core. Not Platformio core. Some features will not work correctly using Platformio core.
See the Tasmota Github Actions how to setup the build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants