2025-07-22 23:21:34 +02:00
|
|
|
import { InclusionReportService } from "../fimp/inclusion_report";
|
|
|
|
import { VinculumPd7Device } from "../fimp/vinculum_pd7_device";
|
2025-07-23 13:06:54 +02:00
|
|
|
import { HaComponent } from "../ha/publish_device";
|
2025-07-22 23:21:34 +02:00
|
|
|
|
2025-07-23 13:06:54 +02:00
|
|
|
export function out_bin_switch__components(vinculumDeviceData: VinculumPd7Device, svc: InclusionReportService): { [key: string]: HaComponent } {
|
2025-07-22 23:21:34 +02:00
|
|
|
if (!svc.address) { return {}; }
|
|
|
|
|
|
|
|
return {
|
|
|
|
// [svc.address]: {
|
|
|
|
// p: "sensor",
|
|
|
|
// device_class: "temperature",
|
|
|
|
// unit_of_measurement: "°C",
|
|
|
|
// value_template: `{{ value_json['${svc.address}'].sensor }}`,
|
|
|
|
// },
|
|
|
|
};
|
|
|
|
}
|