The CBUS 3D Interface is a web-based application designed for Clipsal CBUS Lighting Control Systems. This user-friendly interface allows users to control lights and other appliances, create scenes, and schedule actions, all within a 3D environment generated from your preferred CAD software.
-
3D Web Interface: Control your Clipsal CBUS Lighting Control System through a user-friendly and interactive 3D web-based interface.
-
Device Control: Turn lights and other appliances on/off or adjust their brightness levels using the 3D map.
-
Scene Creation: Create custom scenes to set specific lighting configurations and apply them easily with a single click.
-
Scheduling: Schedule actions for your lighting and appliances to automate their behavior based on your preferences.
-
Integration with CGate: Seamlessly interact with the CGate to gain access to your Clipsal CBUS system.
- Fix inproper lighting throughout scenes
- Allow for keypoints on each room for a close up view of all devices
- Change controls to a primary control per room and seceondary controls by clicking on each device
- Show ON/OFF or lighting dim percentage above each room (optional)
- Add-on for Google Assistant
- Ability to disable UI and configure directly through configuration files and CLI
Additon of extra devices (Including vendors outside of Cbus):
- Access Control
- Air Purifiers
- Air Quality Sensors
- Contact Sensors
- Dorbells
- Garage door opener
- Heating and Cooling controls (Including evaporative)
- Humidifier/Dehumidifier
- Irrigation systsem
- Leak Sensors
- Light Sensors
- Motion Sensors
- Power Management
- Security System
- Thermostats
- Window / Blinds control
- NPM, Download and Install from:
- NPM Modules: (Run as Administrator in Powershell or CMD)
npm install [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
- Download, Install & Setup Clipsal CGate from:
https://updates.clipsal.com/ClipsalSoftwareDownload/mainsite/cis/technical/downloads/c-gate.html
-
Download & Extract ZIP file from Github.
-
Open Powershell or CMD as Administrator and navigate to Extracted Folder
-
Run npm installation:
npm install
- Edit Configuration Files (config.js, db.json)
var config = {
cgate: {
host: '0.0.0.0',
contolport: 20023,
eventport: 20024,
statusport: 20025,
cbusname: 'STANFOR2',
network: 254,
application: 56
},
webserver: {
port: 8080,
host: '0.0.0.0'
},
location: {
latitude: '31.9523',
longitude: '115.8613',
timezone: 'Australia/Perth'
}
};
module.exports = config;
{
"tasks": [
{
"id": "1",
"enabled": true,
"name": "Turn on night lights",
"cronstring": "0 5 * * *",
"expression": "",
"commands": [
{
"type": "lighting",
"group": "30",
"level": 100,
"delay": 0,
"timeout": 28800
}
]
}
],
"rules": [
{
"id": "1",
"enabled": true,
"name": "Late night hall motion",
"expression": "group=='95' && level > 0 && (time > '22:00' || time < dawn)",
"commands": [
{
"type": "lighting",
"group": "46",
"level": 20,
"delay": 0,
"timeout": 90
}
]
}
],
"scenes": [
{
"id": "1",
"name": "Party Mode",
"commands": [
{
"type": "lighting",
"group": "20",
"level": 20,
"delay": 0,
"timeout": 0
}
]
}
],
"devices": {
"0": {
"name": "Flood",
"location": "Outdoor",
"level": 0,
"lastchange": null,
"type": "lighting",
"visible": true,
"vendor": "cbus"
}
}
}
- Run server:
node server.js
Retrieve information about the CGate interface.
GET /light-interface/cgate HTTP/1.1
Host: your-server-domain.com
Send a specific command to control the light interface.
GET /light-interface/cmd?command=turnOn&deviceID=1 HTTP/1.1
Host: your-server-domain.com
Retrieve the locations associated with the light interface.
GET /light-interface/locations HTTP/1.1
Host: your-server-domain.com
Retrieve the scenes available for the light interface.
GET /light-interface/scenes HTTP/1.1
Host: your-server-domain.com
Retrieve the devices connected to the light interface.
GET /light-interface/devices HTTP/1.1
Host: your-server-domain.com
-
The CBUS 3D Interface is an ongoing project, and future updates will bring exciting new features and improvements. Some of the planned updates include:
-
Expanded Device Control: Ability to control devices beyond lighting, such as Aircons and other logic-based appliances.
-
Web-Based Installation/Setup Wizard: Streamlined setup process with a user-friendly installation wizard.
-
RGB and DMX Fixture Control: Enhanced support for controlling RGB or DMX fixtures to provide advanced lighting options.
-
Integrated Map for Scheduling: An integrated map feature to facilitate easy scheduling of actions based on location.
-
Viewpoint Box: The addition of a viewpoint box to change views of the 3D map for better user interaction.
-
Slider for 3D Map: Implement a slider functionality to manipulate the 3D map for precise adjustments.
-
Configurable Home Camera Position: Allow users to configure the home camera position within the 3D map for personalized perspectives.
-
Day/Night Mode: Introduce a day/night mode option, including an auto mode, for adjusting the interface's appearance based on the time of day.
If you have any feedback, please raise an Issue in the Issues Tab on Github
-
API to communicate between Frontend and CGate : node-cbus
-
webGL Three.js 3D Interface web_three_interface