ha-virtual-climate is a small Home Assistant custom integration that exposes
virtual climate entities and paired helper sensors for development, testing,
and UI prototyping.
It is intended for situations where you need realistic thermostat-like entities without depending on cloud APIs, physical devices, or vendor bridges.
- UI config flow
- Multiple virtual climate entities from one integration entry
- Adjustable target temperature and HVAC mode
- Paired current-temperature and humidity sensors per virtual climate
- Paired window-contact binary sensor per virtual climate
- Simulated current temperature
- Toggle entity availability for failure-path testing
- HACS-compatible repository structure
- Open HACS in Home Assistant.
- Go to the three-dot menu and choose Custom repositories.
- Add the repository URL and choose type Integration.
- Install
Virtual Climate. - Restart Home Assistant.
- Copy
custom_components/virtual_climateinto your Home Assistantcustom_components/directory. - Restart Home Assistant.
- Go to Settings > Devices & services.
- Add integration Virtual Climate.
- Enter a display name and a comma-separated list of climate names.
- Finish setup.
The integration registers helper services:
virtual_climate.set_current_temperaturevirtual_climate.set_availabilityvirtual_climate.set_humidityvirtual_climate.set_window_open
These can be used to simulate changing room conditions or unavailable devices.
- Test custom dashboards against
climateentities - Validate automations without touching real thermostats
- Develop integrations such as ClimateRelay against stable local entities
uv sync --locked --group dev
uv run ruff format --check .
uv run ruff check .
uv run pytest
uv run python -m buildThe repository uses lightweight semantic versioning with:
- manual alpha pre-releases from selected refs
- automatic beta pre-releases from
main - manual stable releases from
main
See docs/release-policy.md for the release rules.