matterbridge-dyson-robot
Version:
A Matterbridge plugin that connects Dyson robot vacuums and air treatment devices to the Matter smart home ecosystem via their local or cloud MQTT APIs.
35 lines • 1.25 kB
JavaScript
// Matterbridge plugin for Dyson robot vacuum and air treatment devices
// Copyright © 2025 Alexander Thoukydides
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const PACKAGE_JSON = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
const PACKAGE = JSON.parse(readFileSync(PACKAGE_JSON, 'utf-8'));
// Platform identifiers
export const ENGINES = PACKAGE.engines;
export const PLUGIN_NAME = PACKAGE.name;
export const PLATFORM_NAME = PACKAGE.displayName;
export const PLUGIN_VERSION = PACKAGE.version;
export const PLUGIN_URL = PACKAGE.homepage;
// Default configuration options
export const DEFAULT_CONFIG = {
whiteList: [],
blackList: [],
entityWhiteList: [],
entityBlackList: ['Composed Air Purifier', 'Humidity Sensor', 'Temperature Sensor'],
deviceEntityBlackList: {},
provisioningMethod: 'Remote Account',
...(process.env.DYSON_TOKEN && {
dysonAccount: {
china: false,
token: process.env.DYSON_TOKEN
}
}),
wildcardTopic: false,
debug: false,
debugFeatures: [],
unregisterOnShutdown: false
};
// Vendor name
export const VENDOR_NAME = 'Dyson';
//# sourceMappingURL=settings.js.map