Skip to content

Commit

Permalink
Remove HMD activity being exposed over MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Aug 15, 2024
1 parent 9ed4ac4 commit 91d348c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src-ui/app/services/mqtt/integrations/hmd-data.mqtt-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,9 @@ export class HMDDataMqttIntegrationService {
value: 'off',
available: false,
});
await this.mqtt.initProperty({
type: 'SENSOR',
id: 'debugHmdActivity',
topicPath: 'debugHmdActivity',
displayName: 'VR HMD Activity (DEBUG)',
value: 'null',
available: false,
});
this.openvr.status.subscribe((status) => {
this.mqtt.setPropertyAvailability('hmdModel', status === 'INITIALIZED');
this.mqtt.setPropertyAvailability('hmdOnHead', status === 'INITIALIZED');
this.mqtt.setPropertyAvailability('debugHmdActivity', status === 'INITIALIZED');
});
this.openvr.devices
.pipe(map((devices) => devices.find((d) => d.class === 'HMD')))
Expand All @@ -47,7 +38,6 @@ export class HMDDataMqttIntegrationService {
[device?.manufacturerName, device?.modelNumber].filter(Boolean).join(' ') ?? 'null';
this.mqtt.setSensorPropertyValue('hmdModel', name);
this.mqtt.setSensorPropertyValue('hmdOnHead', device?.hmdOnHead ? 'on' : 'off');
this.mqtt.setSensorPropertyValue('debugHmdActivity', device?.debugHmdActivity ?? 'null');
});
}
}

0 comments on commit 91d348c

Please sign in to comment.