Skip to content

Commit

Permalink
Cleanup plugin Configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoulson committed Dec 18, 2016
1 parent 72a425a commit 40a8788
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 90 deletions.
2 changes: 1 addition & 1 deletion MrSlim.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>0.1.1</string>
<string>0.1.2</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
80 changes: 1 addition & 79 deletions MrSlim.indigoPlugin/Contents/Server Plugin/Devices.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,11 @@
<?xml version="1.0"?>
<!-- If your plugin defines device types, you can define them here.
Devices must specify their type (via the type attribute):
relay (ON/OFF/STATUS)
dimmer (ON/OFF/DIM/BRIGHTEN/SET BRIGHTNESS/STATUS)
speedcontrol (ON/OFF/SET SPEED LEVEL/SET SPEED INDEX/INCREASE/DECREASE/STATUS)
sensor (ON/OFF/STATUS)
thermostat
sprinkler
custom
The first six inherit states, actions and events from Indigo. You can
also specify your own custom actions and additional states, if needed.
The Device example below specifies the thermostat type.
Devices must also specify a unique typeID - so, for instance, if you define
2 different thermostat type devices then your plugin can distinguish between
the two by the typeID.
-->

<Devices>
<!-- This device illustrates how a plugin can inherit Indigo's thermostat
device behavior including thermostat device states, thermostat actions,
and will support Indigo and Indigo Touch's native UI for thermostat type
devices.
-->
<Device type="thermostat" id="MrSlimThermo">
<Name>MrSlim Thermostat Module</Name>
<ConfigUI>
<!-- The ConfigUI here is just an example of the type of device
specific UI that might be needed. Here you might specify a text
field for an IP address, a serial port popup, or other device
specific options.
-->
<Field id="address" type="textfield" hidden="true" >
<Label/>
</Field>

<!-- <Field id="thermostatId" type="textfield">
<Label>Thermostat ID:</Label>
<Description>TCC Id for Thermostat.</Description>
</Field> -->
<Field id="thermostat" type="menu">
<Label>Thermostat:</Label>
<List class="self" filter="" method="thermostatList"/>
Expand All @@ -60,35 +23,9 @@
<Field type="textfield" id="ShowCoolHeatEquipmentStateUI" hidden="true">
<Label/>
</Field>
<!--<Field id="password" type="textfield" defaultValue="yourpassword">
<Label>HoneyWell TCC Password:</Label>
</Field>
By default thermostat type devices automatically inherit these
device properties which describe the characteristics of a specific
thermostat instance:
NumTemperatureInputs: should range between 1 and 3
NumHumidityInputs: should range between 0 and 3
ShowCoolHeatEquipmentStateUI: True or False
Plugins can update these properties either in device ConfigUI
(like below), or can update them from python by using the
dev.replacePluginPropsOnServer() method, most likely inside your
deviceStartComm method. Both will trigger
the Indigo Server to automatically rebuild the device's states
list based on the needed changes. Since most entry-level thermostats
have 1 temp sensor and 0 humidity sensors, those are the default
values. If your thermostat supports those, you don't need to change
anything.
-->
</ConfigUI>
<States>
<!-- <State id="macID">
<ValueType>String</ValueType>
<TriggerLabel>macID</TriggerLabel>
<ControlPageLabel>macID</ControlPageLabel>
</State>
--> <State id="name">
<State id="name">
<ValueType>String</ValueType>
<TriggerLabel>name</TriggerLabel>
<ControlPageLabel>name</ControlPageLabel>
Expand All @@ -97,16 +34,6 @@
<ValueType>String</ValueType>
<TriggerLabel>thermostatMode</TriggerLabel>
<ControlPageLabel>thermostatMode</ControlPageLabel>
</State>
<State id="fanAllowedModes">
<ValueType>String</ValueType>
<TriggerLabel>fanAllowedModes</TriggerLabel>
<ControlPageLabel>fanAllowedModes</ControlPageLabel>
</State>
<State id="fanMode">
<ValueType>String</ValueType>
<TriggerLabel>fanMode</TriggerLabel>
<ControlPageLabel>fanMode</ControlPageLabel>
</State>
<State id="maxCoolSetpoint">
<ValueType>Float</ValueType>
Expand All @@ -128,11 +55,6 @@
<TriggerLabel>minHeatSetpoint</TriggerLabel>
<ControlPageLabel>minHeatSetpoint</ControlPageLabel>
</State>
<State id="lastUpdate" hidden="true">
<ValueType>String</ValueType>
<TriggerLabel>lastUpdate</TriggerLabel>
<ControlPageLabel>lastUpdate</ControlPageLabel>
</State>
</States>
</Device>
</Devices>
8 changes: 0 additions & 8 deletions MrSlim.indigoPlugin/Contents/Server Plugin/MenuItems.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0"?>
<!-- If your plugin wants to add menu items to it's submenu off the new Extensions menu,
define them here. Each should have a unique menu id, a Name, and an Action. The last
is a method name in your python file that will be called when the user selects that
menu item. Note - nothing will be returned to the client, so if you need to communicate
back to the user you can post information into the Event Log.
-->

<MenuItems>
<MenuItem id="menu1">
<Name>Show Available Thermostats in Event Log</Name>
Expand All @@ -25,4 +18,3 @@
<CallbackMethod>forceUpdate</CallbackMethod>
</MenuItem>
</MenuItems>

4 changes: 2 additions & 2 deletions MrSlim.indigoPlugin/Contents/Server Plugin/PluginConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<Label>Total Connect Comfort MrSlim Plugin</Label>
</Field>
<Field type="textfield" id="UserID" tooltip="MrSlim User ID" visibleBindingValue="true">
<Label>MrSlim TCC User ID:</Label>
<Label>MrSlim User ID:</Label>
</Field>
<Field type="textfield" id="Password" secure="true" tooltip="MrSlim Password" visibleBindingValue="true">
<Label>MrSlim TCC Password:</Label>
<Label>MrSlim Password:</Label>
</Field>
<Field id="sep1" type="separator"/>
<Field id="updateFrequency" type="textfield" defaultValue="24">
Expand Down

0 comments on commit 40a8788

Please sign in to comment.