-
Notifications
You must be signed in to change notification settings - Fork 0
/
MenuItems.xml
104 lines (97 loc) · 5.56 KB
/
MenuItems.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0"?>
<MenuItems>
<!--
<MenuItem id="configureGHomeDevices">
<Name>Configure Google Home Devices</Name>
<ConfigUI>
<Field id="configGHomeSubTitleLabel" type="label" fontSize="medium">
<Label>Select the device you wish to publish to Google Home/Assistant or whose definition that you want to modify.</Label>
</Field>
<Field id="publishedDevice" type="menu" dynamicReload="true">
<Label>Device:</Label>
<List class="self" method="get_google_home_device_list" />
<CallbackMethod>published_home_device_selected</CallbackMethod>
</Field>
<Field id="simpleSeparator0" type="separator" />
<Field id="enableDeviceDetailUI" type="checkbox" defaultValue="false" hidden="yes" />
<Field id="publishToGoogle" type="checkbox" enabledBindingId="enableDeviceDetailUI">
<Label>Publish device:</Label>
<Description>Make this device available to Google Home/Assistant.</Description>
</Field>
<Field id="deviceDetailsPublishedType" type="menu" enabledBindingId="enableDeviceDetailUI">
<Label>Type:</Label>
<List class="self" method="get_google_device_types" dynamicReload="true" />
</Field>
<Field id="deviceTypeInstructions" type="label" fontSize="small" alignWithControl="True">
<Label>We've selected the subtype that we believe is the most appropriate for your device. However, you can change that here. This will determine how you control it via the Assistant and how it appears in the Google Home app.</Label>
</Field>
<Field id="deviceDetailsPublishedName" type="textfield" enabledBindingId="enableDeviceDetailUI">
<Label>Alternate Name:</Label>
</Field>
<Field id="alternateInstrLabel" type="label" fontSize="small" alignWithControl="True">
<Label>Use this value as the name of the device in Google rather than the Indigo name. Leave blank to use the Indigo device name. Note that names can only contain letters, numbers, and spaces.</Label>
</Field>
<Field id="sendUpdatesToGoogle" type="checkbox" enabledBindingId="enableDeviceDetailUI">
<Label>Send State Updates:</Label>
</Field>
<Field id="sendUpdatesToGoogleInstr" type="label" fontSize="small" alignWithControl="True">
<Label>If enabled, the local state (such as on/off status) of devices will be reflected in Google Home; this speeds up the display on screen such as the Nest Hub.</Label>
</Field>
<Field id="deviceDetailsPINCode" type="textfield" enabledBindingId="enableDeviceDetailUI">
<Label>PIN</Label>
</Field>
<Field id="pinCodeInstr" type="label" fontSize="small" alignWithControl="True">
<Label>If entered, this PIN code will be required for the Google Assistant to execute an action against the device. Only numbers are supported.</Label>
</Field>
<Field id="deviceDetailsSaveChanges" type="button" enabledBindingId="enableDeviceDetailUI">
<Title>Save</Title>
<CallbackMethod>published_home_devices_update</CallbackMethod>
</Field>
<Field id="saveChangesWarning" type="label" fontSize="small" fontColor="orange" alignWithControl="True">
<Label>NOTE: changes are not saved if you switch devices or close this dialog without saving first.</Label>
</Field>
</ConfigUI>
</MenuItem>
<MenuItem id="requestResync">
<Name>Re-Synchronize Devices with Google</Name>
<CallbackMethod>request_resync_with_google</CallbackMethod>
</MenuItem>
-->
<MenuItem id="debugSectionSeparator" />
<MenuItem id="toggleDebug">
<Name>Toggle Debugging On/Off</Name>
<CallbackMethod>toggle_debug_enabled</CallbackMethod>
</MenuItem>
<MenuItem id="debugDumpDeviceDetails">
<Name>Log Device Details</Name>
<CallbackMethod>dump_device_details_to_log</CallbackMethod>
<ButtonTitle>Output</ButtonTitle>
<ConfigUI>
<Field id="dumpDeviceDetailsToLog_Title" type="label" fontColor="darkGray">
<Label>DEVICE DETAILS DEBUG</Label>
</Field>
<Field id="dumpDeviceDetailsToLog_TitleSeparator" type="separator" />
<Field type="label" id="dumpDeviceDetailsToLogInstructions" fontSize="small">
<Label>This function will dump the details of a plugin device to the Indigo Event Log to aid in debugging and forum posts.</Label>
</Field>
<Field id="devicesToDump" type="list">
<Label>Devices to Log:</Label>
<List class="indigo.devices" filter="self" />
</Field>
</ConfigUI>
</MenuItem>
<MenuItem id="licenseSectionSeparator" />
<MenuItem id="viewLicense">
<Name>View License...</Name>
<ConfigUI>
<Field id="licenseText" type="label" fontSize="small">
<Label>MIT License
Copyright (c) [2013 - Present] [Adam A. (@RogueProeliator)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</Label>
</Field>
</ConfigUI>
</MenuItem>
</MenuItems>