Skip to content

Settings ​

What can I change, and what does each setting do? This section lists every setting the platform block takes, what each one does, and what happens without it.

Sensors comes before this section with how each sensor switches at the levels set here, and Estimate follows it with where the reading comes from and where it stops.

Settings Reference ​

Each key comes from config.schema.json, so this reference follows the schema as it changes.

Degrees north of the equator, negative to the south

Needed Without it, the plugin starts nothing and logs the setting it lacks.

"latitude": 42.36

Degrees east of the prime meridian, negative to the west

Needed Without it, the plugin starts nothing and logs the setting it lacks.

"longitude": -71.06

The name Homebridge sets in brackets before each line the plugin logs

Optional Without it, Homebridge logs under the platform’s name.

"name": "Luxout"

The name, region, and country of the place whose coordinates the user confirmed

Optional Without it, the coordinates stand alone, as they do once typed in by hand.

"place": { "country": "United States", "name": "Boston", "region": "Massachusetts" }

The platform the block belongs to, which Homebridge reads to hand the block to the plugin

Needed Without it, Homebridge skips the block.

"platform": "Luxout"

Sensors that each switch on as the light outdoors reaches one level and off only once it passes another, holding their state across the gap between the two

Optional Without it, the plugin adds no threshold sensor.

"thresholds": [{ "name": "Dark Outside", "offLux": 662, "onLux": 2.99 }]

The name the sensor takes in the Home app, where a new name adds a new sensor in place of the old one. It starts and ends on a letter or a number, and holds only letters, numbers, spaces, apostrophes, and & ! . _ : ; ( ) / , -

Needed Without it, the entry starts no sensor and logs one line.

"name": "Dark Outside"

The reading in lux past which the sensor switches off

Optional Without it, the sensor switches off past 662 lux.

"offLux": 662

The reading in lux at which the sensor switches on. A level below the off level switches it on as the light falls, and one above it as the light rises

Optional Without it, the sensor switches on at 2.99 lux.

"onLux": 2.99
Every setting as a table
KeyTitleTypeDefaultWhat It DoesWithout It
latitudeLatitudenumberNoneDegrees north of the equator, negative to the southNeeded, and without it, the plugin starts nothing and logs the setting it lacks
longitudeLongitudenumberNoneDegrees east of the prime meridian, negative to the westNeeded, and without it, the plugin starts nothing and logs the setting it lacks
nameNamestringNoneThe name Homebridge sets in brackets before each line the plugin logsOptional, and without it, Homebridge logs under the platform’s name
placePlaceobjectNoneThe name, region, and country of the place whose coordinates the user confirmedOptional, and without it, the coordinates stand alone, as they do once typed in by hand
platformNot in the formstring"Luxout"The platform the block belongs to, which Homebridge reads to hand the block to the pluginNeeded, and without it, Homebridge skips the block
thresholdsThreshold SensorsarrayNoneSensors that each switch on as the light outdoors reaches one level and off only once it passes another, holding their state across the gap between the twoOptional, and without it, the plugin adds no threshold sensor
thresholds[].nameNamestringNoneThe name the sensor takes in the Home app, where a new name adds a new sensor in place of the old one. It starts and ends on a letter or a number, and holds only letters, numbers, spaces, apostrophes, and & ! . _ : ; ( ) / , -Needed, and without it, the entry starts no sensor and logs one line
thresholds[].offLuxOff Levelnumber662The reading in lux past which the sensor switches offOptional, and without it, the sensor switches off past 662 lux
thresholds[].onLuxOn Levelnumber2.99The reading in lux at which the sensor switches on. A level below the off level switches it on as the light falls, and one above it as the light risesOptional, and without it, the sensor switches on at 2.99 lux

The Whole Block ​

The platform block in config.json with each key set reads as follows.

json
{
  "platform": "Luxout",
  "latitude": 42.36,
  "longitude": -71.06,
  "place": {
    "country": "United States",
    "name": "Boston",
    "region": "Massachusetts"
  },
  "name": "Luxout",
  "thresholds": [
    {
      "name": "Dark Outside",
      "offLux": 662,
      "onLux": 2.99
    }
  ]
}