homebridge-CurrentAmbientLightLevel

https plugin for homebridge

Usage no npm install needed!

<script type="module">
  import homebridgeCurrentAmbientLightLevel from 'https://cdn.skypack.dev/homebridge-CurrentAmbientLightLevel';
</script>

README

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": []
}