npm

Need private packages and team management tools?Check out npm Orgs. »

homebridge-CurrentAmbientLightLevel

0.0.1 • Public • Published

homebridge-CurrentAmbientLightLevel

Creates a Light Sensor Accessory for iOS Home app/Homekit via Homebridge.

CAUTION: this plugin crashes Homebridge upon launch, anytime the "accessory": "PhotoCell", is in config.json. It is not working yet. Please feel free to fix it, I am a copy/paste type of programmer and my skills are meager and limited.

This is a feeble attempt at a work in progress. Most of the code is stolen from other authors, will update as I go. the basic idea here is to rip off https://github.com/lucacri/homebridge-http-temperature-humidity, but change the Accessory/Service info for CurrentAmbientLightLevel instead of CurrentTemperature, and then mess with returning as a % or not for the Home app icon.

Once this is complete, basically all sorts of input sensors become available to us .... The list of possible sensor types are here: https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js I imagine that soon HomeKit will include all kinds of options for automation based on input sensors. ie: "when its dark, turn on the light" etc...

{

"bridge": {
"name": "HomeBridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},

"description": "",


    "accessories": [
    {
        "accessory": "PhotoCell",
        "name": "Light Sensor",
        "url": "http://192.168.1.210/light",
        "sendimmediately": "",
        "http_method": "GET"
    }
]

"platforms": []
}

install

npm i homebridge-CurrentAmbientLightLevel

Downloadsweekly downloads

1

version

0.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability