Skip to content

Smart house hub for Phillips Hue, Comfort Cloud & Sync Box

Notifications You must be signed in to change notification settings

imp-dance/smart-house-hub

Repository files navigation

Smart house hub (Hue, Sync box, Comfort Cloud)

Capabilities

  • Control lights (Hue)
    • On/Off
    • Color
    • Brightness
  • Set TV channel (Sync box)
  • Control heat pump (Phillips Comfort Cloud)
    • Temperature
    • Mode
    • Fan speed

Prerequisites

Launching the project

  1. Clone the project. git clone [email protected]:imp-dance/hue-remix-testing.git
    • Alternatively, download the project source directly through Github
  2. Navigate into the project. cd hue-remix-testing
  3. Start the dev server. npm run dev

You will need to pair your device(s) before opening the root route.

Pairing with your own devices

  1. Create a .env file in the root of the project.
  2. Install the dependencies npm i
  3. Launch the dev server. npm run dev The terminal will show you the localhost url for the project.
  4. Navigate to the localhost:<port>/connect route.

Screenshot 2024-09-21 at 14 29 53

Finding your connection IP

Bridge

  1. Open up the Hue app on your phone.
  2. Go to the settings menu in the app.
  3. Go to Hue Bridges.
  4. Select your bridge. The ip address of the bridge will show.

Sync box

  1. Open up the Hue Sync app on your phone.
  2. Go to the settings menu in the app.
  3. Go to sync boxes
  4. Select your sync box. The ip address of the sync box will show.

Pairing the bridge

  1. Enter the IP of your bridge into the relevant input on the /connect route.
  2. Go to your physical hue bridge device. Click the sync button and hold it down for just a couple of seconds.
  3. Click Sync with Bridge.
  4. Copy the credentials into your .env file as prompted.

Pairing the sync box

  1. Enter the IP of your sync box into the relevant input on the /connect route.
  2. Go to your physical sync box device. Hold down the main button for 5 seconds until it blinks.
  3. Click Sync with sync Box.
  4. Copy the credentials into your .env file as prompted.

Local hosting

To host the website on your local network, run the dev command with the --host flag, and optionally the --port [port] flag to specify which port you want to expose.