homebridge-smartone
v1.1.13
Published
Homebridge plugin for SmartOne devices
Maintainers
Readme
Homebridge SmartOne
An unofficial Homebridge plugin for controlling SmartOne devices connected to WallPad, providing HomeKit integration for thermostats and door locks.
Features
- Thermostat Control: Temperature, HVAC mode (Heat/Cool/Ventilation), fan speed control and Away mode
- Door Lock Control: Lock/unlock functionality via HomeKit
- Real-time Updates: Device status updates every 30 seconds
Installation
Search for "SmartOne" on the plugin screen of Homebridge Config UI X
Find:
homebridge-smartoneClick Install
Add the plugin to your Homebridge configuration
Configuration
Add the following to your Homebridge config.json:
{
"platforms": [
{
"platform": "SmartOne",
"name": "SmartOne",
"credentials": {
"refreshToken": "YOUR_REFRESH_TOKEN_HERE", // Only required while setting up
"authUrl": "https://auth-us-east-1.smartone-solutions.com/connect/token",
"apiBaseUrl": "https://api-us-east-1.smartone-solutions.com"
},
"devices": [
{
"type": "thermostat",
"name": "Thermostat"
},
{
"type": "doorlock",
"name": "FrontDoor Lock"
}
]
}
]
}Configuration Parameters
refreshToken: Your SmartOne API refresh token (required)- Use
Streamor other app to capture network traffic - Start
Sniffand open ONE! app to login Stopcapture and viewSniff History- Find
POST https://auth-us-east-1.smartone-solutions.com/connect/token - Go to response, find
refresh_tokenand copy to the config json - Close and uninstall the ONE! app then install again / wait for 10 mins before open it again (So that the refresh token keeps alive)
- Use
HomeKit Accessories
Thermostat
The thermostat appears as three accessories:
Thermostat:
- Temperature control (14°C - 25°C)
- HVAC mode (Heat / Cool / Vent[Off])
- Current temperature display
Fan:
- Fan speed control (Auto[Off] / Low / Medium / High)
Away Mode Switch:
- Toggle between Normal and Away scenes
Door Lock
The door lock appears as a switch accessory:
- Lock/unlock control
Token Storage
Tokens are automatically stored in Homebridge's storage directory:
- Location:
~/.homebridge/smartone-tokens.json - If
refreshTokenis expired, edit or remove~/.homebridge/smartone-tokens.jsonfile then set token inconfig.jsonagain
Development
# Install dependencies
npm install
# Link for development
npm link