Skip to content

@pumpkin-plugins/dynamic-lights-pumpkin API / config/load / loadPluginConfig

Function: loadPluginConfig() ​

loadPluginConfig(files, report): object

Defined in: packages/dynamic-lights-pumpkin/src/config/load.ts:7

Loads settings from the plugin data folder, leaving an invalid file untouched for the user to fix.

Parameters ​

files ​

DataFiles

report ​

(level, message) => void

Returns ​

object

entities ​

entities: SectionValues<{ enabled: Field<boolean>; refresh_interval_ticks: Field<number>; }>

entity_sources ​

entity_sources: TableValues<{ light_level: Field<number | undefined>; }>

sources ​

sources: TableValues<{ light_level: Field<number | undefined>; }>

Pumpkin Plugins documentation