Homebridge People MQTT plugin
This plugin is used to detect occupancy using network devices like phones, watches and others. It syncs the state in a MQTT broker.
This is for my personnal use, but I let the repo public if it could be of use to someone else.
Config
You'll find the most up to date config in src/config.ts
.
This is the basic config you should provide to this plugin to work.
interface INetworkDevice {
name: string;
ip: string;
mac: string;
}
interface IPeopleMqttConfig extends PlatformConfig {
brokerClientOptions: IClientOptions;
devices: Array<INetworkDevice>;
enableAnySensor?: boolean; // defaults to false
enableNoneSensor?: boolean; // defaults to false
pollingIntervalMs?: number; // defaults to 5 minutes
}
Note: You will find the IClientOptions on the MQTT library's documentation