Skip to content

About

Home Assistant integration for controlling Valve Index (V2) and HTC Vive (V1) base stations over Bluetooth LE. Turn them on, off or to standby, monitor their state, and automate them without SteamVR. Installable via HACS.

Topics

Resources

Stars

19 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

100 Commits

Folders and files

Repository files navigation

VR Basestation Integration for Home Assistant

GitHub Release HACS Home Assistant License

A comprehensive Home Assistant integration for managing Valve Indexยฎ Base Stations (V2) and HTC Vive Base Stations (V1) (UNTESTED) through Bluetooth Low Energy (BLE). Control power states, monitor device information, and automate your VR setup with ease.


โœจ Key Features

๐ŸŽฎ Universal VR Lighthouse Support

  • Valve Index Base Stations (V2) - Full feature support
  • HTC Vive Base Stations (V1) - UNTESTED/WIP, see #4

๐Ÿ”„ Advanced Power Management

  • Power Control - Turn base stations on/off remotely
  • Standby Mode - Energy-efficient standby for V2 base stations
  • Power State Monitoring - Real-time status tracking
  • Identify Function - Blink LEDs to locate specific base stations

๐Ÿ› ๏ธ Modern Integration Features

  • Automatic Discovery - Zero-configuration setup via Bluetooth discovery
  • Config Flow UI - Complete graphical configuration (no YAML required)
  • Device Information - Firmware, model, hardware, and manufacturer details
  • Multiple Entity Types - Switches, sensors, and buttons for comprehensive control

โš™๏ธ Professional Features

  • Connection Management - Advanced BLE connection pooling and retry logic
  • Configurable Timeouts - User-adjustable connection and scan intervals
  • Device Registry Integration - Proper Home Assistant device management
  • Translation Support - Multi-language interface
  • Options Flow - Advanced settings without reconfiguration

โ„น๏ธ How it Works

This integration communicates directly with your VR base stations using Bluetooth Low Energy (BLE).

  • Direct Connection: No SteamVR or additional software required. Home Assistant connects directly to the base stations.
  • State Polling: The integration periodically polls the base stations to check their power state (Sleep, Standby, On).
  • Command Queueing: Commands (like turning on/off) are queued and sent efficiently to minimize connection attempts.
  • Auto-Discovery: Uses Home Assistant's Bluetooth integration to automatically detect nearby base stations.

๐Ÿš€ Installation

Via HACS (Recommended)

  1. Install HACS - Ensure HACS is installed and configured.
  2. Search for Integration - Go to HACS โ†’ Integrations โ†’ Explore & Download Repositories and search for "VR Basestation".
  3. Install - Click Download on the integration card.
  4. Restart Home Assistant

Via HACS (Custom Repository)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Add Custom Repository:
    • Go to HACS โ†’ Integrations โ†’ โ‹ฎ (menu) โ†’ Custom repositories
    • Add: https://github.com/MineTech13/homeassistant-basestation
    • Category: Integration
  2. Install Integration - Find "VR Basestation" and click Install
  3. Restart Home Assistant

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Extract to custom_components/basestation/ in your Home Assistant config directory
  3. Restart Home Assistant

โšก Quick Setup

Automatic Discovery (Easiest)

  1. Navigate to Settings โ†’ Devices & Services
  2. Look for automatically discovered VR base stations
  3. Click Configure and follow the setup wizard

Manual Setup

  1. Settings โ†’ Devices & Services โ†’ Add Integration
  2. Search for "VR Basestation"
  3. Enter MAC address and device type

Finding MAC Addresses

If you need to find your base station MAC addresses manually:

# Using hcitool (Linux)
sudo hcitool lescan
# Look for devices starting with "LHB-" (V2) or "HTC BS" (V1)

# Using bluetoothctl
bluetoothctl
scan on
# Wait for devices to appear

Alternative Methods:

  • Android: Use "BLE Scanner" or "nrf Connect" app from Play Store
  • Windows: Use "Microsoft Bluetooth LE Explorer" from Windows Store
  • SteamVR: Check device serial numbers in SteamVR settings

๐Ÿ“Š Entity Overview

Each base station creates multiple entities for comprehensive control:

๐Ÿ”˜ Switches

  • Power Switch - Main on/off control
  • Standby Switch (V2 only) - Energy-efficient standby mode

๐Ÿ“ˆ Sensors (Optional)

  • Firmware Version - Current firmware information
  • Model Number - Device model details
  • Hardware Version - Hardware revision
  • Manufacturer - Device manufacturer
  • Channel (V2 only) - Communication channel
  • Power State (V2 only) - Detailed power status
  • Pair ID (V1 only) - Pair identification

๐Ÿ”ต Buttons

  • Identify Button (V2 only) - Blink LED for device identification

๐Ÿ”ง Advanced Configuration

Device Options

Access advanced settings via Settings โ†’ Devices & Services โ†’ VR Basestation โ†’ Configure:

  • Device Name - Custom friendly name
  • Scan Intervals - Adjust update frequencies
  • Connection Timeout - BLE connection timeout
  • Sensor Control - Enable/disable specific sensors
  • Power State Monitoring - Control detailed state tracking

Automation Integration

# Example: Turn on base stations when lights turn on
automation:
  - alias: "VR Room Activated"
    trigger:
      - platform: state
        entity_id: light.vr_room
        to: "on"
    action:
      - service: switch.turn_on
        target:
          entity_id:
            - switch.valve_basestation_1
            - switch.valve_basestation_2

# Example: Auto-standby after 30 minutes of inactivity
  - alias: "VR Auto Standby"
    trigger:
      - platform: state
        entity_id: binary_sensor.vr_room_motion
        to: "off"
        for: "00:30:00"
    action:
      - service: switch.turn_on
        target:
          entity_id:
            - switch.valve_basestation_1_standby_mode
            - switch.valve_basestation_2_standby_mode

Grouping Base Stations

Create groups for easy control:

  1. Settings โ†’ Devices & Services โ†’ Helpers
  2. Create Helper โ†’ Group
  3. Add all base station switches
  4. Control all base stations with one entity

๐Ÿ› ๏ธ Troubleshooting

Common Issues

Base stations not discovered:

  • Ensure Bluetooth is enabled and working
  • Check base stations are powered and not in sleep mode
  • Verify Home Assistant has Bluetooth access

Connection timeouts:

  • Increase connection timeout in device options
  • Check Bluetooth adapter range and interference
  • Ensure base stations aren't in use by SteamVR

๐Ÿ’ก Automation Ideas

Transform your VR setup with smart automations:

  • ๐ŸŒก๏ธ Climate Control - Auto-adjust AC when VR session starts
  • ๐Ÿ’ก Lighting - Sync base stations with room lighting
  • ๐Ÿ  Presence Detection - Turn off when leaving home
  • ๐Ÿ’ป System Integration - Wake PC, start SteamVR, control displays
  • โฐ Scheduled Power - Auto-standby during sleep hours
  • ๐Ÿ”‹ Energy Management - Smart power saving based on usage patterns

๐Ÿ† Credits & Acknowledgments

Primary Developers

  • @MineTech13 - Complete v2.0 architecture, config flow, device abstraction, and feature development
  • @Invisi - V2.0 development collaboration and testing

Original Foundation

  • @jariz - Original basic implementation and BLE communication foundation
  • @TCL987 - Early improvements and community contributions
  • @Azelphur - Patches and compatibility fixes

Technical References


๐Ÿ“„ License

This project is licensed under the GNU General Public License v3.0 (or later) - see LICENSE for the full text.

Copyright (C) 2026 MineTech13 and contributors.


๐Ÿ“ Technical Notes

  • BLE Range Limitation - Bluetooth Low Energy has limited range; consider BLE proxies for extended coverage
  • Power Management - V2 base stations support multiple power states (On, Standby, Sleep)
  • Concurrent Access - Base stations can only be controlled by one application at a time
  • Firmware Updates - Update base station firmware through SteamVR for best compatibility

๐Ÿ”— Links


Transform your VR setup into a smart, automated experience with the VR Basestation Integration! ๐ŸŽฎโœจ

About

Home Assistant integration for controlling Valve Index (V2) and HTC Vive (V1) base stations over Bluetooth LE. Turn them on, off or to standby, monitor their state, and automate them without SteamVR. Installable via HACS.

Topics

Resources

Stars

19 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages