pdf-icon

StamPLC Home Assistant Integration

StamPLC is an IoT programmable logic controller designed for industrial automation and remote monitoring. The product uses the Stamp-S3A control module, providing strong processing power and efficient wireless connectivity. This document explains how to integrate StamPLC into Home Assistant.

Note
Many thanks to ESPHome community contributor @Beormund for the provided configuration files. For more references, visit https://github.com/Beormund/esphome-m5stamplc

Preparations

  • A Home Assistant host
  • Install and enable the ESPHome Builder add-on in Home Assistant
Tip
In this tutorial the kit is compiled and uploaded with ESPHome 2025.10.3. If you encounter build/upload issues, consider switching ESPHome to that version.

Open ESPHome Builder in Home Assistant and create an empty configuration file:

  • Click the NEW DEVICE button at the bottom right
  • In the dialog click CONTINUE

  • Select Empty Configuration

  • (Optional) Give the file a name

  • Click EDIT on the newly created configuration file

Then copy the contents of configuration.yaml from the example repository into your config file:

Modify network or API information as needed. For example, create an API Encryption Key for authentication:

yaml
1 2 3
api:
  encryption:
    key: "Your_Encryption_Key"
Tip
If you need a key, generate one via the native api (under encryption).

You can also change the timezone setting, for example:

yaml
1 2
timezone: America/Los_Angeles # Pacific
# timezone: America/New_York # Eastern

After editing, click SAVE and then INSTALL, choose Manual download.

This will generate code and compile the project.

Tip
The first compilation may take a long time depending on your Home Assistant host and network.

When the build finishes, select Factory format to download the firmware.

Upload firmware

Open ESPHome Web in your browser to upload the firmware.

Connect StamPLC to the host via USB-C, click CONNECT and select the device.

Click INSTALL, select the previously downloaded firmware, and click INSTALL again to flash the device.

After flashing completes the device will automatically reset and boot.

Add device to Home Assistant Integrations

When the device boots it will connect to the configured Wi‑Fi. Under Settings -> Devices & services you should see the device.

Click Add to add StamPLC to Home Assistant. If you set an API Encryption Key, you may need to enter it here.

Example StamPLC dashboards:

Live device in action:

On This Page