Global Variables
core
globals Store persistent values that can be accessed across automations
Official Documentation
📚 ESPHome Documentation →Overview
Global variables allow you to store values in memory that persist during device runtime and can be accessed or modified by automations, scripts, and lambdas.
Notes
This component works with all ESPHome-compatible devices.