Wiki source code of WTEC Partition Configuration Sample
Version 1.1 by Mark Kohlmann on 2023/02/12 05:09
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | Requires showrunner version 3.022 and WTEC Extension built on 3.022 or newer. |
| 2 | |||
| 3 | Use a virtual OutputSignal to track the Partition sensor and pass the state event to WTEC. In this example there is a GLS-PART-CN at cresnet ID 15. The WTEC SmartEngine has a partition defined with a serial number of "PARTITIONA". HostGlobalId 1 is the GlobalId of the WTEC Smart Engine (WTECSMARTENGINE) load controller. | ||
| 4 | |||
| 5 | {{{"OutputSignals": [ | ||
| 6 | { | ||
| 7 | "ContractorLabel": null, | ||
| 8 | "Id": 1, | ||
| 9 | "Name": "PartitionSensor Report to WTEC", | ||
| 10 | "HostDevice": null, | ||
| 11 | "HostPort": 0, | ||
| 12 | "DeviceHostId": null, | ||
| 13 | "DeviceHostBranch": 0, | ||
| 14 | "DeviceConnectionId": null, | ||
| 15 | "RemoteDevice": null, | ||
| 16 | "DeviceId": { | ||
| 17 | "SerialNumber": null, | ||
| 18 | "TSID": null | ||
| 19 | }, | ||
| 20 | "Invert": false, | ||
| 21 | "UniqueId": "2dbc1653-2fca-4380-973c-c3fa6485629d", | ||
| 22 | "OutputType": "Virtual", | ||
| 23 | "ActiveActions": { | ||
| 24 | "Name": "Report Partition is Combined", | ||
| 25 | "Actions": [ | ||
| 26 | { | ||
| 27 | "HostGlobalId": 1, | ||
| 28 | "ActionName": "ClearPartitionStatus", | ||
| 29 | "ActionProperties": [ | ||
| 30 | { | ||
| 31 | "Name": "SerialNum", | ||
| 32 | "Value": "PARTITIONA" | ||
| 33 | } | ||
| 34 | ] | ||
| 35 | } | ||
| 36 | ], | ||
| 37 | "FeedbackType": "AND" | ||
| 38 | }, | ||
| 39 | "InactiveActions": { | ||
| 40 | "Name": "Report Partition is Divided", | ||
| 41 | "Actions": [ | ||
| 42 | { | ||
| 43 | "HostGlobalId": 1, | ||
| 44 | "ActionName": "SetPartitionStatus", | ||
| 45 | "ActionProperties": [ | ||
| 46 | { | ||
| 47 | "Name": "SerialNum", | ||
| 48 | "Value": "PARTITIONA" | ||
| 49 | } | ||
| 50 | ] | ||
| 51 | } | ||
| 52 | ], | ||
| 53 | "FeedbackType": "AND" | ||
| 54 | }, | ||
| 55 | "ReferenceActions": { | ||
| 56 | "Name": "Partition Sensor", | ||
| 57 | "Actions": [ | ||
| 58 | { | ||
| 59 | "HostGlobalId": 12, | ||
| 60 | "ActionName": "Combined", | ||
| 61 | "ActionProperties": [] | ||
| 62 | } | ||
| 63 | ], | ||
| 64 | "FeedbackType": "OR" | ||
| 65 | }, | ||
| 66 | "ActivationDelay": "00:00:00", | ||
| 67 | "InactivationDelay": "00:00:00", | ||
| 68 | "GlobalId": 11 | ||
| 69 | } | ||
| 70 | ], | ||
| 71 | "PartitionSensors": [ | ||
| 72 | { | ||
| 73 | "ContractorLabel": "PART-2.4-1", | ||
| 74 | "Mode": "Auto", | ||
| 75 | "Id": 2401, | ||
| 76 | "Name": "PART-2.4-1", | ||
| 77 | "Model": "GLS-PART-CN", | ||
| 78 | "HostDevice": "GLS-PART-CN", | ||
| 79 | "HostPort": 0, | ||
| 80 | "DeviceHostId": null, | ||
| 81 | "DeviceHostBranch": 0, | ||
| 82 | "DeviceConnectionId": "15", | ||
| 83 | "DeviceId": { | ||
| 84 | "SerialNumber": "", | ||
| 85 | "TSID": null | ||
| 86 | }, | ||
| 87 | "HardwareDebounceTime": 5.0, | ||
| 88 | "Invert": false, | ||
| 89 | "Properties": null, | ||
| 90 | "PrimaryAreaId": 51001, | ||
| 91 | "SecondaryAreaId": 5101, | ||
| 92 | "UniqueId": "0beb8bb4-cbed-4f93-9c0a-f7f23bf182ee", | ||
| 93 | "GlobalId": 12, | ||
| 94 | "RemoteDevice": null | ||
| 95 | } | ||
| 96 | ],}}} |