Skip to content

Instantly share code, notes, and snippets.

View DMontgomery40's full-sized avatar

David Montgomery DMontgomery40

View GitHub Profile
@DMontgomery40
DMontgomery40 / extension_toggler.ts
Last active January 30, 2024 06:47
Toggle Scrypted Extensions On/Off
class ExtensionToggler extends ScryptedDeviceBase implements Settings, OnOff {
async getSettings(): Promise<Setting[]> {
return [
{
key: 'devices',
type: 'device',
title: 'Devices',
description: 'The devices on which the extension will be toggled.',
multiple: true,
value: this.getJSON('devices'),