Inspiration
Every smart device comes with its own app. To increase the sound in a speaker you unlock your phone, find the right app, wait for it to connect, and dig for the slider, even though the speaker is right in front of you. We wanted the controls to live where the device lives: point your phone at the speaker, and its controls appear beside it. We also wanted to create an app where all different devices could be controlled at one place, since existing methods require you to open the manufacturer specific app to control the device. We wanted to create an app for smart glasses and AR/VR devices that provides the most minimal, sleek interface to control all the smart devices in your house as easily as possible so that it's easy to access and not disruptive in your daily life. We address some of the challenges that existing AR/VR headsets and glasses and Smart home systems have as well.
What it does
GhostUI gives a physical device a minimal control panel that appears next to it in augmented reality, and lets you adjust it with hand gestures or a slider.
- GhostUI checks what a device can actually control, with its real range and current value.
- You pinch or drag to change a value. GhostUI sends the command, reads the device back, and confirms the change.
We control [a WLED/NeoPixel ring light] with gestures today. Through our Home Assistant adapter, the same interface is designed to reach lights, speakers and fans from the thousands of brands Home Assistant supports, without writing an adapter per brand.
HOW IS IT DIFFERENT??
Usual AR/VR systems open up whole screens for bringing up the apps to control separate smart devices. With existing smart home assistants like Alexa, it depends upon lack of noise in the environment. With GhostUI, you have one interface for getting a minimalistic control of all different types of devices from lights to speakers. Further, it's more accessible to the deaf compared to something audible like alexa.
How we built it
Every device plugs into GhostUI through one shared adapter contract, so the server, phone app and gestures treat all devices the same way. We built adapters for [the WLED/NeoPixel ring light] and for Home Assistant, which maps a light's brightness, a speaker's volume or a fan's speed onto a single 0 to 100 control.
Gemini designs each panel from the device's verified capabilities. It only decides presentation and never writes device commands. After every change, GhostUI reads the device back for up to 2 seconds to confirm the new value.
We backed it with a 41-test automated suite and a simulated Home Assistant server, so the adapter could be built and demoed without hardware.
GhostUI establishes a connection to the device (through BLE or WIFI depending upon the protocol the device uses), and using the info from the connection, calls to a Gemini API, looks up pre-existing adapter API's or info regarding the device and it's API from online and generates a new Adapter API WITHIN THE APP. Using the controls that the object exposes, gemini then creates an AR interface which the user can interact with. The user has to 'register' an object with the app so that it's able to recognize it in repeated instances. After the registration is done, all the user has to do is point at the smart object, pinch to view available controls (volume, bass, treble for a speaker and brightness for lights), and tweak them as they wish.
Challenges we ran into
Controls that lie: Some lights are on/off only and some fans have three fixed speeds, so a smooth slider would show a value the device can't hold. We made the adapter refuse those devices instead of faking it.
Unit mismatches: Our controls run 0 to 100 while Home Assistant uses 0 to 255 for brightness and 0.0 to 1.0 for volume. We tested every value from 0 to 100 to make sure none drift on the way back.
Building without hardware: We didn't have every device on hand, so we built a stand-in server that imitates Home Assistant's API.
making sure that different types of objects work with the same interface, making code to generalize adapters across different devices includign proprietary.
Some of the objects required the use of a local network between jsut two or three devices, this was new but also difficult to navigate. Object tracking and recognition and the finger gestures after tracking were definitely difficult to accomplish... so proud of that.
Accomplishments that we're proud of
- One adapter that opens the door to thousands of devices through Home Assistant and centralizes this idea.
- An interface that stays honest: verified capabilities in, confirmed state out, and clear error messages when something is wrong.
- Keeping security simple: the access token stays on the laptop and the phone never sees it.
- Object tracking and recognition and the finger gestures after tracking were definitely difficult to accomplish... so proud of that.
- The gamification of smart objects in your house. If you've played video games you know that when you enter into a room ,interactable objects look different compared to other objects. Following that same philosophy, GhostUI gives a glow to registered smart devices to let you know that you can interact and tweak with it.
- Getting it to work with different types of devices.
What we learned
- Recognizing a device is the easy part. Knowing how to control it correctly is the hard part.
- Generated interfaces need guardrails. Separating what the model designs from what the system executes kept things reliable.
- A shared adapter contract let three people add devices in parallel without touching each other's code.
- A good simulator is worth building early.
- how to decouple parts of a system to make scalability better down the road
What's next for Ghost UI
- Verifying the Home Assistant adapter against a live Home Assistant instance with real devices.
- More than one control per device: color, play and pause, on/off switches.
- Several devices in one session instead of one per server.
- Visual recognition that picks the device you're pointing at.
- The initial goal for GhostUI was to integrate into AR/VR glasses since it would make more sense. There would be less visual clutter and it would give you the easiest and cleanest way to intereact with your smart objects, but we chose to focus on the software.
Built With
- augmented-reality
- css
- esp32
- gemini
- html
- javascript
- python
- swift
- ultralytics
- unittest
- yoloe