homebridge-habeetat
v1.0.2
Published
Homebridge plugin for Solidmation Habeetat smart home devices via MQTT
Maintainers
Readme
homebridge-habeetat
Homebridge plugin for Solidmation Habeetat smart home devices via MQTT.
This plugin connects to the same MQTT broker used by habeetat-bridge to expose your Habeetat devices to Apple HomeKit.
Supported Devices
| Device | Model | HomeKit Service | |--------|-------|-----------------| | Switch | HPA-4133 | Switch | | Dimmer | HPA-4153, HPA-2140 | Lightbulb | | RGB Light | HPA-2160 | Lightbulb (with color) | | Cover/Curtain | HPA-4202 | WindowCovering | | Climate/HVAC | BGH-7012 | Thermostat | | Temperature Sensor | HPA-2411 | TemperatureSensor |
Prerequisites
- Homebridge v1.6.0 or later
- habeetat-bridge running and connected to MQTT
- MQTT broker (e.g., Mosquitto)
Installation
Via Homebridge Config UI X (Recommended)
- Search for
homebridge-habeetatin the Plugins tab - Click Install
- Configure the plugin in the Settings tab
Via npm
npm install -g homebridge-habeetatLocal Installation (Development)
Option 1: Using npm link
# Clone and build
git clone https://github.com/mfernandezfunes/homebridge-habeetat.git
cd homebridge-habeetat
npm install
npm run build
# Create global symlink
npm link
# Link to Homebridge (run in Homebridge directory, e.g. ~/.homebridge)
cd ~/.homebridge
npm link homebridge-habeetatOption 2: Install directly from local directory
# Clone and build
git clone https://github.com/mfernandezfunes/homebridge-habeetat.git
cd homebridge-habeetat
npm install
npm run build
# Install globally from local directory
npm install -g /path/to/homebridge-habeetatPublishing to npm (for production)
# Build and publish
npm run build
npm publishThen install from npm:
npm install -g homebridge-habeetatAfter installation, restart Homebridge to load the plugin.
Configuration
Add the following to your Homebridge config.json:
{
"platforms": [
{
"platform": "Habeetat",
"name": "Habeetat",
"mqtt": {
"broker": "localhost",
"port": 1883,
"username": "",
"password": ""
},
"baseTopic": "habeetat"
}
]
}Configuration Options
| Option | Required | Default | Description |
|--------|----------|---------|-------------|
| platform | Yes | - | Must be "Habeetat" |
| name | Yes | "Habeetat" | Platform name |
| mqtt.broker | Yes | - | MQTT broker hostname or IP |
| mqtt.port | No | 1883 | MQTT broker port |
| mqtt.username | No | - | MQTT username |
| mqtt.password | No | - | MQTT password |
| baseTopic | No | "habeetat" | Base MQTT topic |
How It Works
┌─────────────┐ ┌─────────────────┐ ┌──────────────────────┐ ┌─────────┐
│ Habeetat │────▶│ habeetat-bridge │────▶│ MQTT Broker │────▶│HomeKit │
│ Devices │◀────│ │◀────│ │◀────│(via HB) │
└─────────────┘ └─────────────────┘ └──────────────────────┘ └─────────┘
▲
│
┌─────────┴─────────┐
│homebridge-habeetat│
└───────────────────┘- habeetat-bridge communicates with your Habeetat devices (ZigBee/WiFi)
- Device states and commands are published to MQTT
- homebridge-habeetat subscribes to MQTT and creates HomeKit accessories
- You control devices via Apple Home app or Siri
Device Discovery
Devices are automatically discovered via MQTT when habeetat-bridge publishes Home Assistant discovery messages. No manual configuration is required for most setups.
Manual Device Configuration
If auto-discovery doesn't work, you can manually configure devices:
{
"platforms": [
{
"platform": "Habeetat",
"mqtt": { "broker": "localhost" },
"devices": [
{
"uniqueId": "ACCF23961A64_1",
"name": "Living Room Light",
"type": "dimmer",
"stateTopic": "habeetat/ACCF23961A64_1/state",
"commandTopic": "habeetat/ACCF23961A64_1/set"
}
]
}
]
}Development
# Clone the repository
git clone https://github.com/mfernandezfunes/homebridge-habeetat.git
cd homebridge-habeetat
# Install dependencies
npm install
# Build
npm run build
# Link for local development
npm link
# Watch mode
npm run watchTroubleshooting
Devices not appearing
- Ensure habeetat-bridge is running and connected to MQTT
- Check that the MQTT broker address is correct
- Verify the
baseTopicmatches habeetat-bridge configuration - Check Homebridge logs for connection errors
Devices not responding
- Verify habeetat-bridge can control the device directly
- Check MQTT broker logs for message delivery
- Ensure the device is online in habeetat-bridge
Enable Debug Logging
Add to your Homebridge config:
{
"bridge": {
"name": "Homebridge",
"debug": true
}
}License
MIT
Credits
- Homebridge
- habeetat-bridge
- Solidmation - Habeetat device manufacturer
