Registry / devops / esphome-device-builder

esphome-device-builder

JSON →
library0.1.0b100pypypi✓ verified 81d ago

A beta Python library (0.1.0b100) for building ESPHome device configurations programmatically. Provides a high-level API to generate and manage ESPHome YAML configurations with Python models. Under active development with breaking changes expected.

pip install esphome-device-builder
INSTALL
IMPORT
SIG · ESPHOME-DEVICE-BUI
E
esphome-device-builder
devopspythonv0.1.0b100
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Device
import esphome_device_builder
from esphome_device_builder import Device

Create a basic ESPHome device configuration with WiFi and a DHT temperature sensor, then export to YAML.

from esphome_device_builder import Device from esphome_device_builder.components import WiFi, Sensor device = Device(name='test-device') device.add_component(WiFi(ssid='MyWiFi', password=os.environ.get('WIFI_PASS', ''))) device.add_component(Sensor(name='temperature', platform='dht', pin=4)) yaml = device.to_yaml() print(yaml)
Debug
Known issues
breakingBeta library: API is unstable and may change without notice. Pin to exact version in production.
fix
Pin version in requirements: esphome-device-builder==0.1.0b100
affects: >=0.1.0b1
gotchaComponents must be imported from the `components` subpackage, not the main `esphome_device_builder`.
fix
Use `from esphome_device_builder.components import Sensor` instead of `from esphome_device_builder import Sensor`.
affects: >=0.1.0b1
deprecatedThe `to_yaml` method may be renamed to `render` in future versions.
fix
Check changelog before upgrading; prepare to use `device.render()`.
affects: 0.1.0b50-0.1.0b100
Upgrade
Version history
0.1.0b100latest on PyPI · released Jun 7, 2026
Audit
Dependencies
esphomerequiredRequired for YAML generation and validation. Always install same version.
Agent activity
2 hits · last 30 days
node
2
Resources
esphome-device-builder — pip install esphome-device-builder · libregistry