ESPHome’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/esphome/esphome.io/llms.txt
Use this file to discover all available pages before exploring further.
output domain provides the lowest-level hardware abstraction layer: it represents a physical output pin or peripheral as either a binary output (on/off only) or a float output (a continuous value from 0.0 to 1.0). Higher-level components — lights, fans, and servos — are built on top of outputs. You can also control outputs directly from automations for custom applications.
There are two output categories:
- Binary outputs — can only be fully ON or fully OFF (e.g. a simple GPIO pin).
- Float outputs — accept any value between 0.0 and 1.0, typically driving PWM or DAC hardware.
Base Output Configuration
The ID used to reference this output from lights, fans, servos, or automations.
If
true, the output logic is inverted. Defaults to false.ID of a
power_supply component that is automatically switched on when this output is enabled.Float Output Only
The minimum output value. When the associated entity (light/fan) requests a non-zero level below this value,
min_power is used instead. Defaults to 0.The maximum output value. Requests above this level are clamped. Defaults to
1.If
true, an output level of 0.0 truly outputs 0 (not min_power). Defaults to false.min_power and max_power are automatically clamped to ensure 0.0 ≤ min_power ≤ max_power ≤ 1.0. This prevents invalid configurations.Output Actions
output.turn_on
output.turn_off
output.set_level (float outputs only)
output.set_min_power (float outputs only)
Dynamically adjust the minimum power level at runtime.
output.set_max_power (float outputs only)
Dynamically adjust the maximum power level at runtime.
Lambda Calls
Popular Output Platforms
GPIO Output
Control a digital GPIO pin directly. The fundamental binary output used by relays, LEDs, and logic circuits.
LEDC (ESP32 PWM)
ESP32’s hardware LED Controller peripheral. Provides high-frequency PWM for dimming, motor control, and fan speed.
ESP8266 PWM
Software PWM on ESP8266. Lower frequency and less accurate than ESP32 LEDC but widely used for basic dimming.
Slow PWM
Low-frequency PWM using relay on/off cycles. Ideal for resistive heaters and slow-response loads.
Sigma Delta Output
Sigma-delta modulation output for ESP32. Useful for audio and analog-like signals.
AC Dimmer
TRIAC-based AC dimmer for mains dimmable loads. Requires a zero-crossing detection circuit.
DAC Output
ESP32 internal 8-bit DAC on GPIO25/GPIO26. True analog voltage output (0–3.3 V).
PCA9685
16-channel I²C PWM LED/servo driver. Extend ESP32/8266 with 16 independent PWM channels.