About
Virtual Components is an integration that adds virtual entities to Home Assistant for testing setups. It provides virtual binary sensors, covers, presence, fans, lights, locks, numbers, sensors, switches and valves, and it works locally. Actions let a binary sensor be turned on, turned off or toggled, a sensor value be set, an entity's availability be changed, and a device tracker be moved to a new location. Devices are defined in a YAML file, and the integration can be added several times with devices spread across separate files. A device can group several entities, for example a motion detector with a motion entity and a battery entity. It is added through the Home Assistant interface and needs the Marketplace, or HACS on 2026.10 and older.
Automatic summary of the README and code of twrecked/hass-virtual. Something wrong, or are you the maintainer and want your own text here? Get in touch
Supports
Works locally Talks to your devices on your own network. No vendor cloud in between.
From the Marketplace Installed through the Marketplace, formerly HACS.
Actively maintained Its author released or pushed a change in the last six months.
Provides
- Lights
- Fans
- Covers
- Valves
- Locks
- Switches
- Sensors
- Presence
Setting it up
Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.
Virtual Database
- Group
- File
Texts from the code of twrecked/hass-virtual.
Actions
- Turn OnTurn on a binary sensor.Fields: Entity Id
- Turn OffTurn off a binary sensor.Fields: Entity Id
- ToggleToggle a binary sensor.Fields: Entity Id
- SetSet the value of a sensor.Fields: Entity Id, Value
- Set AvailabilitySet availability of an entity.Fields: Value
- MoveMove a device tracker to a new location.Fields: Location, GPS, GPS accuracy
From the README
Virtual is a component that provides virtual entities for Home Assistant.
Shows in Vulpo
Light card, Quick Toggle card, Cover card, Fan card, Apple Watch, Control Center.Information
- Installs
- 661 sharing analytics
- GitHub stars
- 229
- Connection
- Works locally
- Upkeep
- Updated in the last 6 months
- Version
- v0.9.5,
- Category
- Helpers, Store a value
- Kind
- Marketplace integration
- Needs
- Needs the Marketplace (HACS on 2026.10 and older)
- Domain
virtual- Issues
- Report an issue












