mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-01-18 15:45:38 +00:00
Add support for unpairing devices
This commit is contained in:
@@ -7,7 +7,7 @@ import { haUpdateState, haUpdateStateValueReport } from './ha/update_state';
|
||||
import { VinculumPd7Device } from './fimp/vinculum_pd7_device';
|
||||
import { haUpdateAvailability } from './ha/update_availability';
|
||||
import { delay } from './utils';
|
||||
import { exposeSmarthubTools, handleInclusionStatusReport } from './ha/admin';
|
||||
import { exposeSmarthubTools, handleExclusionReport, handleExclusionStatusReport, handleInclusionStatusReport } from './ha/admin';
|
||||
import { pollVinculum } from './fimp/vinculum';
|
||||
|
||||
(async () => {
|
||||
@@ -146,8 +146,11 @@ import { pollVinculum } from './fimp/vinculum';
|
||||
const result = haPublishDevice({
|
||||
hubId,
|
||||
demoMode,
|
||||
hubIp,
|
||||
vinculumDeviceData,
|
||||
deviceInclusionReport,
|
||||
thingsplexUsername,
|
||||
thingsplexPassword,
|
||||
});
|
||||
await delay(50);
|
||||
|
||||
@@ -255,6 +258,16 @@ import { pollVinculum } from './fimp/vinculum';
|
||||
handleInclusionStatusReport(hubId, msg);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'evt.thing.exclusion_status_report': {
|
||||
handleExclusionStatusReport(hubId, msg);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'evt.thing.exclusion_report': {
|
||||
handleExclusionReport();
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
// Handle any event that matches the pattern: evt.<something>.report
|
||||
|
||||
Reference in New Issue
Block a user