Wiki source code of WTEC Partition Configuration Sample
Last modified by Mark Kohlmann on 2023/02/12 05:12
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | Requires showrunner version 3.022 and WTEC Extension 1.2.0 or newer. |
| |
1.1 | 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 | } | ||
| |
2.1 | 96 | ], |
| 97 | "LightingControllers": { | ||
| 98 | "1": { | ||
| 99 | "TrackSceneRemap": {}, | ||
| 100 | "Panel": null, | ||
| 101 | "ModuleId": null, | ||
| 102 | "Properties": [ | ||
| 103 | { | ||
| 104 | "Name": "ID", | ||
| 105 | "Value": "1" | ||
| 106 | }, | ||
| 107 | { | ||
| 108 | "Name": "IPAddressOrHostname", | ||
| 109 | "Value": "10.44.5.200" | ||
| 110 | }, | ||
| 111 | { | ||
| 112 | "Name": "Port", | ||
| 113 | "Value": "443" | ||
| 114 | }, | ||
| 115 | { | ||
| 116 | "Name": "Username", | ||
| 117 | "Value": "admin" | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | "Name": "Password", | ||
| 121 | "Value": "smartengine" | ||
| 122 | } | ||
| 123 | ], | ||
| 124 | "TrackAreaScene": false, | ||
| 125 | "TrackAreaSceneAreaIds": [], | ||
| 126 | "Loads": [], | ||
| 127 | "Model": "WTECSMARTENGINE", | ||
| 128 | "HostDevice": null, | ||
| 129 | "HostPort": 0, | ||
| 130 | "DeviceHostId": null, | ||
| 131 | "DeviceHostBranch": 0, | ||
| 132 | "DeviceConnectionId": "1", | ||
| 133 | "RemoteDevice": null, | ||
| 134 | "DeviceId": { | ||
| 135 | "SerialNumber": "", | ||
| 136 | "TSID": null | ||
| 137 | }, | ||
| 138 | "VisualizationsByMap": {}, | ||
| 139 | "Active": true, | ||
| 140 | "ContractorLabel": null, | ||
| 141 | "Enabled": true, | ||
| 142 | "GlobalId": 1, | ||
| 143 | "Id": 1, | ||
| 144 | "Name": "SmartEngine Master", | ||
| 145 | "UniqueId": "f4cdc2bd-b9c6-4fdc-b981-072e76d7d4e4" | ||
| 146 | },}}} |