Giter Club home page Giter Club logo

ambilightsinric's Introduction

AmbilightSinric

Allows you to control your Ambilight HyperHDR directly via Google Home, the Google Assistant, Alexa, IFTT, or Samsung Smarthings.

What can you do with it :

  • Turn off / Turn on the ambilight
  • Set a fixed color using your voice or the app of your choice
  • Use the ambilight as a regular connected lamp
  • Change the luminiosity of the rgb strip

When a color is selected, you will have to stop / start or use the keyword "restart Ambilight" to return the Amblight mode.

Usage

To make this project work, you will need to use the service named Sinric.

1. Setting up the link with Sinric

  • Start by opening an account on Sinric

  • Then create a RGB lamp in the tab Devices > Add Device and choose Smart Light Bulb. You can give it a name, a description, and a room (but this is not important).

  • Once the lamp is created, go back to the Devices page and copy the lamp ID

  • Duplicate the .env.example template and name it .env

  • Paste the lamp ID value after SINRIC_DEVICE= (be careful with spaces)

  • Go back to the Sinric website and go to the Credentials tab, you will find your APP KEY and APP SECRET, then copy them into your .env file

  • Then you have to fill in the IP address and the port of the management panel of your Hyperion instance in the .env file

2. Start the project

Use with docker on Raspberry Pi

By default, the image used is build for the architecture of a Raspberry Pi 3.

You can change the nodejs image used in the first line of the Dockerfile.

To start, you need to build the image in the local repository :

docker build . -t ambilightsinric

Then, start the service with the following command:

docker run -d --restart always --name ambilightsinric --env-file ./.env ambilightsinric

You can see the logs with the following command:

docker logs ambilightsinric

3. Linking Sinric <> Google Home

  1. Open the Google Home application on your phone
  2. Click on the + icon
  3. Go to Set up a device.
  4. Click on Work with Google.
  5. Click on Sinric Pro in the list
  6. Finish linking to your account
  7. Sinric devices will appear in the application

4. Linking Sinric <> Samsung SmartThings

  1. Open the Samsung SmartThings application on your phone
  2. Click on the + icon
  3. Go to Device.
  4. Click on By Brand.
  5. Click on Sinric Pro in the list
  6. Finish linking to your account
  7. Sinric devices will appear in the application

ambilightsinric's People

Contributors

n-rocher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.