GithubHelp home page GithubHelp logo

homebridge-daylight's Introduction

homebridge-daylight

Daylight plugin for Homebridge that publishes a HomeKit accessory that emits an approximation of the expected amount of daylight according to the sunrise and sunset schedule for the configured location.

Time Period Current Light Level
Before Sunrise 0.0001lux
During Sunrise 0.0001lux to 100000.000lux (gradual)
Between Sunrise & Sunset 100000.000lux
During Sunset 100000.000lux to 0.0001lux (gradual)
After Sunset 0.0001lux

This is intended for use in triggering scenes using sunrise and sunset.

Installation

  1. Install Homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-daylight
  3. Use the Google Geocoder Tool to get your location coordinates.
  4. Update your Homebridge config.json using the sample below.

Configuration

{
  "accessory": "Daylight",
  "location": {
    "lat": 37.3316936,
    "lng": -122.0302191
  },
  "name": "Daylight Sensor"
}

Fields:

  • accessory must be "Daylight" (required).
  • location contains your location coordinates (required).
  • name is the name of the published accessory (required).

homebridge-daylight's People

Contributors

yungsters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

homebridge-daylight's Issues

Probably wrong sun times

The module calculates lux based on the time difference between i.e. sunsetStart and sunset, which is i.e. in Central Europe a time span of 3 mins. I suggest that you change the time period from sunsetStart to dusk resp. dawn to sunriseEnd

Feaure Request: Offset

Hey, I was wondering if it would be possible to specify an offset time. It starts to get dark in my house around 1 hour before sunset. So it would be great if the lux transition started 60 minutes before sunset started still ending after sunset.

Would this be possible? Alternatively I wonder if making it start with goldenHour would do the same thing.

Use as a Trigger in HomeKit

Hi,

thanks for sharing this plugin with us. I tried to set it up in Homebridge and so far everything seems to work fine. Homebridge knows the plugin and the Home app knows the service and shows the correct lux values. However I tried to set up a trigger based on this service (if lux value = 0.0001, then turn on the lights) and this does not seem to work.

Were you successful in using this service as a trigger?

Thanks in advance.

Doesn't Work, Missing Platform Name

I believe this plugin is deprecated due to not implementing the newest API for Homebridge. There is no platform name implemented and specifying it in the config doesn't do any good since the code doesn't use any such value.

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.