mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-10-12 07:22:06 -06:00
17 lines
562 B
TypeScript
17 lines
562 B
TypeScript
|
import { InclusionReportService } from "../fimp/inclusion_report";
|
||
|
import { VinculumPd7Device } from "../fimp/vinculum_pd7_device";
|
||
|
import { CMP } from "../ha/publish_device";
|
||
|
|
||
|
export function cmps_out_bin_switch(vinculumDeviceData: VinculumPd7Device, svc: InclusionReportService): { [key: string]: CMP } {
|
||
|
if (!svc.address) { return {}; }
|
||
|
|
||
|
return {
|
||
|
// [svc.address]: {
|
||
|
// p: "sensor",
|
||
|
// device_class: "temperature",
|
||
|
// unit_of_measurement: "°C",
|
||
|
// value_template: `{{ value_json['${svc.address}'].sensor }}`,
|
||
|
// },
|
||
|
};
|
||
|
}
|