Custom integration for Home Assistant that exposes room occupancy status from SmartPMS (by Smartness).
- A SmartPMS account with API access
- An API key provided by Smartness for the public v2 API
- At least one property configured in your SmartPMS account
- Open HACS in Home Assistant
- Go to Integrations → three-dot menu → Custom repositories
- Add
https://github.com/smartpricing/homeassistant-smartpmsas type Integration - Search for SmartPMS and install
- Restart Home Assistant
- Copy the
custom_components/smartpms/folder into your Home Assistantconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for SmartPMS
- Enter your credentials:
- Email – your SmartPMS account email
- Password – account password
- API Key – the v2 API key from Smartness
- Select the property to monitor (if your account has more than one)
- Give the property a friendly name
After setup, go to Settings → Devices & Services → SmartPMS → Configure to change:
| Option | Default | Range | Description |
|---|---|---|---|
| Update interval | 300 s | 60–3600 s | How often unit status is polled |
For each unit in the selected property a sensor is created:
| Attribute | Value |
|---|---|
| Entity ID | sensor.smartpms_<property_id>_<unit_id> |
| State | free, occupied, or blocked |
| Icon | mdi:door-open / mdi:bed / mdi:wrench |
| Extra attributes | unit_id, unit_name, property_id |
All sensors are grouped under a single device named after your property.
Download integration diagnostics from Settings → Devices & Services → SmartPMS → three-dot menu → Download diagnostics. Sensitive fields (email, password, API key) are automatically redacted.
| Error | Cause | Fix |
|---|---|---|
auth_failed |
Invalid email, password, or API key | Double-check credentials; ensure the API key matches the account |
cannot_connect |
Network issue or API downtime | Verify internet connectivity; retry later |
no_properties |
Account has no properties | Ensure at least one property is configured in SmartPMS |
| Reauth notification | Token expired or credentials changed | Click the notification and re-enter valid credentials |
MIT – Copyright Smartpricing