MCPcopy Index your code

hub / github.com/alexryd/homebridge-shelly-ng / functions

Functions148 in github.com/alexryd/homebridge-shelly-ng

↓ 21 callersMethoddebug
(message: string, ...parameters: unknown[])
src/utils/device-logger.ts:31
↓ 17 callersMethodsetActive
* Sets `active` to the given value. * This method can be used when chaining calls, as it returns a reference to `this`. * @param value - Whether
src/accessory.ts:91
↓ 12 callersMethoderror
(message: string, ...parameters: unknown[])
src/utils/device-logger.ts:27
↓ 10 callersMethodset
* Stores the given device info. * @param d - The device info. * @param autoSave - Whether `saveDelayed()` should be automatically invoked.
src/utils/device-cache.ts:136
↓ 7 callersMethodinfo
(message: string, ...parameters: unknown[])
src/utils/device-logger.ts:19
↓ 5 callersMethoddelete
* Deletes info about the device with the given ID from cache. * @param id - The device ID. * @param autoSave - Whether `saveDelayed()` should be
src/utils/device-cache.ts:173
↓ 5 callersMethodget
* Returns device info for the given device ID.
src/utils/device-cache.ts:127
↓ 4 callersMethoddetach
()
src/abilities/cover.ts:85
↓ 4 callersMethodlog
(level: LogLevel, message: string, ...parameters: unknown[])
src/utils/device-logger.ts:35
↓ 4 callersMethodupdate
* Updates this accessory based on whether it is active.
src/accessory.ts:99
↓ 3 callersMethodtriggerPress
* Triggers a button press event. * @param type - The type of button press to trigger.
src/abilities/stateless-programmable-switch.ts:51
↓ 2 callersMethodremoveAccessory
* Removes one or more platform accessories from this platform. * This method will also unregister the accessories from homebridge. * @param acce
src/platform.ts:240
↓ 2 callersMethodsaveDelayed
* Saves the devices to cache after a short delay. * Multiple calls to this method within the delay will be debounced.
src/utils/device-cache.ts:104
↓ 2 callersMethodsetup
()
src/device-delegates/shelly-pro-3.ts:9
↓ 2 callersMethodwarn
(message: string, ...parameters: unknown[])
src/utils/device-logger.ts:23
↓ 1 callersMethodactivate
* Activates this accessory, by creating a platform accessory and setting up all abilities.
src/accessory.ts:122
↓ 1 callersMethodaddAccessory
* Adds one or more platform accessories to this platform. * This method will also register the accessories with homebridge. * @param accessories
src/platform.ts:213
↓ 1 callersFunctioncreateCharacteristics
(api: API)
src/utils/characteristics.ts:16
↓ 1 callersMethodcreatePlatformAccessory
* Creates a new platform accessory for this accessory.
src/accessory.ts:176
↓ 1 callersFunctioncreateServices
(api: API, characteristics: CustomCharacteristics)
src/utils/services.ts:16
↓ 1 callersMethoddeactivate
* Deactivates this accessory, by destroying all abilities and the platform accessory.
src/accessory.ts:150
↓ 1 callersMethodemitDevice
* Emits a device after the configured time interval has passed.
src/platform.ts:66
↓ 1 callersMethodemitDevice
* Emits a device after the configured time interval has passed.
src/platform.ts:104
↓ 1 callersMethodgetAccessory
* Returns the platform accessory with the given UUID. * @param uuid - The UUID.
src/platform.ts:204
↓ 1 callersMethodgetDeviceOptions
* Return the configuration options for the device with the given ID. * If no options have been specified, default values will be returned. * @pa
src/config.ts:178
↓ 1 callersMethodhandleUnknownDevice
* Handles 'unknown' events from the shellies-ng library.
src/platform.ts:425
↓ 1 callersMethodinitialize
()
src/abilities/cover.ts:61
↓ 1 callersMethodload
* Loads cached devices.
src/utils/device-cache.ts:61
↓ 1 callersMethodrun
* Runs this discoverer.
src/platform.ts:51
↓ 1 callersMethodrun
* Runs this discoverer.
src/platform.ts:91
↓ 1 callersMethodrunCacheDeviceDiscoverer
* Discovers all devices found in cache.
src/platform.ts:300
↓ 1 callersMethodrunConfigDeviceDiscoverer
* Discovers all devices found in the configuration.
src/platform.ts:288
↓ 1 callersMethodsave
* Saves the devices to cache.
src/utils/device-cache.ts:89
↓ 1 callersMethodstartMdnsDeviceDiscovery
* Starts device discovery over mDNS.
src/platform.ts:312
↓ 1 callersMethodstoreDevice
* Stores info about the given device in cache. * @param device - The device. * @param autoSave - Whether `saveDelayed()` should be automatically
src/utils/device-cache.ts:149
FunctionCharacteristic
* Shorthand property.
src/abilities/base.ts:55
FunctionService
* Shorthand property.
src/abilities/base.ts:62
Method[Symbol.iterator]
* Returns a new Iterator object that contains each device.
src/utils/device-cache.ts:184
Functionactive
* Whether this ability is active. * Setting an ability to inactive will remove its HomeKit service.
src/abilities/base.ts:110
Methodactive
* Whether this accessory is active. * Setting an accessory to inactive will remove it from HoneKit.
src/accessory.ts:41
FunctionaddCover
* Creates an accessory for a cover component. * @param cover - The cover component to use. * @param opts - Options for the cover.
src/device-delegates/base.ts:206
FunctionaddService
* Returns a service for this ability. * If the platform accessory has a matching service, it will be returned. Otherwise, the service will be added
src/abilities/base.ts:198
FunctionaddSwitch
* Creates an accessory for a switch component. * @param swtch - The switch component to use. * @param opts - Options for the switch.
src/device-delegates/base.ts:178
MethodaenergyChangeHandler
* Handles changes to the `aenergy` property.
src/abilities/power-meter.ts:119
Functionapi
* A reference to the homebridge API.
src/abilities/base.ts:48
MethodapowerChangeHandler
* Handles changes to the `apower` property.
src/abilities/power-meter.ts:89
MethodapowerChangeHandler
* Handles changes to the `apower` property.
src/abilities/outlet.ts:78
MethodconfigureAccessory
* Configures cached accessories. * This method is invoked once for each cached accessory that is loaded during launch.
src/platform.ts:195
Functionconstructor
* @param serviceName - A name of the service. * @param serviceSubtype - A unique identifier for the service.
src/abilities/base.ts:127
Functionconstructor
* @param device - The device to handle. * @param options - Configuration options for the device. * @param platform - A reference to the homebrid
src/device-delegates/base.ts:107
Methodconstructor
* @param options - The platform configuration options. * @param emitInterval - The interval, in milliseconds, to wait between each emitted device.
src/platform.ts:44
Methodconstructor
* @param deviceCache - The cached devices. * @param emitInterval - The interval, in milliseconds, to wait between each emitted device.
src/platform.ts:84
Methodconstructor
* This constructor is invoked by homebridge. * @param log - A logging device for this platform. * @param config - Configuration options for this
src/platform.ts:160
Methodconstructor
* @param id - The accessory ID. * @param deviceId - The associated device ID. * @param name - A user-friendly name of the accessory. * @param
src/accessory.ts:67
Methodconstructor
* @param config - The platform configuration.
src/config.ts:144
Methodconstructor
()
src/utils/characteristics.ts:23
Methodconstructor
()
src/utils/characteristics.ts:41
Methodconstructor
()
src/utils/characteristics.ts:59
Methodconstructor
()
src/utils/characteristics.ts:77
Methodconstructor
* @param device - The device to use. * @param deviceName - A user-friendly name of the device. * @param logger - The logging device to write to.
src/utils/device-logger.ts:15
Methodconstructor
* @param storagePath - A path to the directory that the devices will be stored in. * @param log - A logging device.
src/utils/device-cache.ts:54
Methodconstructor
(displayName?: string, subtype?: string)
src/utils/services.ts:23
Methodconstructor
* @param component - The switch component to control.
src/abilities/switch.ts:10
Methodconstructor
* @param component - The input component to represent.
src/abilities/readonly-switch.ts:14
Methodconstructor
* @param component - The switch or cover component to get readings from.
src/abilities/power-meter.ts:17
Methodconstructor
* @param component - The cover component to control.
src/abilities/cover.ts:16
Methodconstructor
* @param component - The input component to control.
src/abilities/stateless-programmable-switch.ts:15
Methodconstructor
* @param component - The switch component to control.
src/abilities/outlet.ts:10
Methodconstructor
* @param namespace - The naming schema for the accessory.
src/abilities/service-label.ts:7
Methodconstructor
* @param device - The associated device.
src/abilities/accessory-information.ts:12
FunctioncreateAccessory
* Creates an accessory with the given ID. * If a matching platform accessory is not found in cache, a new one will be created. * @param id - A u
src/device-delegates/base.ts:145
MethodcurrentChangeHandler
* Handles changes to the `current` property.
src/abilities/power-meter.ts:109
MethodcurrentPosChangeHandler
* Handles changes to the `current_pos` property.
src/abilities/cover.ts:122
MethodcurrentPosition
* The current position of the cover.
src/abilities/cover.ts:50
FunctioncustomCharacteristics
* Shorthand property.
src/abilities/base.ts:69
FunctioncustomServices
* Shorthand property.
src/abilities/base.ts:76
Functiondestroy
* Removes all event listeners and all references to the platform accessory. * This method is called by the parent accessory every time it becomes i
src/abilities/base.ts:265
Functiondestroy
* Destroys this device delegate, removing all event listeners and unregistering all accessories.
src/device-delegates/base.ts:284
Functiondetach
* Removes all event listeners from this device.
src/device-delegates/base.ts:269
Methoddetach
* Removes all event listeners from this accessory.
src/accessory.ts:194
Methoddetach
()
src/abilities/switch.ts:36
Methoddetach
()
src/abilities/readonly-switch.ts:38
Methoddetach
()
src/abilities/power-meter.ts:78
Methoddetach
()
src/abilities/stateless-programmable-switch.ts:40
Methoddetach
()
src/abilities/outlet.ts:42
Methoddetach
()
src/abilities/service-label.ts:25
Methoddetach
()
src/abilities/accessory-information.ts:29
MethoddoublePushHandler
* Handles 'doublePush' events from our input component.
src/abilities/stateless-programmable-switch.ts:87
FunctiongetComponentOptions
* Retrieves configuration options for the given component from the device options. * @param component - The component. * @returns A set of optio
src/device-delegates/base.ts:134
FunctiongetDelegate
* Returns the device delegate for the given device class or model, if one has been registered. * @param deviceClsOrModel - The device class or mode
src/device-delegates/base.ts:82
MethodhandleAddedDevice
* Handles 'add' events from the shellies-ng library.
src/platform.ts:340
FunctionhandleConnect
* Handles 'connect' events from the RPC handler.
src/device-delegates/base.ts:230
FunctionhandleDisconnect
* Handles 'disconnect' events from the RPC handler.
src/device-delegates/base.ts:238
MethodhandleError
* Handles 'error' events from the shellies-ng library.
src/platform.ts:432
MethodhandleExcludedDevice
* Handles 'exclude' events from the shellies-ng library.
src/platform.ts:389
MethodhandleRemovedDevice
* Handles 'remove' events from the shellies-ng library.
src/platform.ts:377
FunctionhandleRequest
* Handles 'request' events from the RPC handler.
src/device-delegates/base.ts:262
Methodinitialize
* Initializes this platform.
src/platform.ts:257
Methodinitialize
()
src/abilities/switch.ts:21
Methodinitialize
()
src/abilities/readonly-switch.ts:25
next →1–100 of 148, ranked by callers