Skip to content

absolutelyNothing9/iobroker_alexa_sunrise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Sunrise alarm with Philips Hue and Amazon Alexa

This script starts a sunrise with your Hue light bulbs 30 mintes before the alarm of your Alexa device triggers. So you can just say "Alexa, wake me up at 6 o'clock" and the sunrise will start at 5:30.

How does it work?

The script is triggered every five minutes and uses the Alexa2 adapter to collect the enabled alarm times from the Alexa device configured as "alexaDevice". These alarm times are stored in a list. Once the current time reaches one of the alarm times minus the "durationInMinutes", the sunrise will be triggered. Currently the sunrise is set up for Hue White Ambience bulbs and just sets the brightness and temperature of the light. For Hue Color bulbs the sunrise may have to be configured differently.

Installation

Prerequisites

Installation procedure

  • Just add a new script to you Javascript-Adapter and paste the contents of the sunrise.js to it.
  • Set the variable "alexaDevice" to the id of the Alexa device to be used for the alarm.
  • Set the variable "hueDevice" to the id of the Hue device or group to be used for the sunrise.
  • Optional: Set the durationInMinutes if you want to configure a different duration for the sunrise.
  • Press the "play" button to start the script.

About

Start a sunrise before the Alexa alarm triggers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%