Skip to content

Commit 62cd73c

Browse files
committed
Minor fixes, plus Screen crash fix that are going in 047
1 parent d44b9ff commit 62cd73c

3 files changed

Lines changed: 181 additions & 151 deletions

File tree

Plugins/OSAE.CM11A/install.sql

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ CALL osae_sp_object_type_method_add('CM11A','RESET','Reset the CM11A','','','','
1010
CALL osae_sp_object_type_method_add('CM11A','SET POLL RATE','Set CM11a Poll Rate','Rate in ms','','30000','');
1111
CALL osae_sp_object_type_method_add('CM11A','SET LEARNING MODE','Set Learning Mode','TRUE/FALSE','','TRUE','');
1212
CALL osae_sp_object_type_property_add('CM11A','Port','Integer','','',0);
13-
CALL osae_sp_object_type_property_add('CM11A','Poll Rate','Integer','120','',0);
14-
CALL osae_sp_object_type_property_add('CM11A','Learning Mode','Boolean','TRUE','',0);
15-
CALL osae_sp_object_type_property_add('CM11A','System Plugin','Boolean','FALSE','',0);
13+
CALL osae_sp_object_type_property_add('CM11A','Poll Rate','Integer','','120',0);
14+
CALL osae_sp_object_type_property_add('CM11A','Learning Mode','Boolean',',','TRUE',0);
15+
CALL osae_sp_object_type_property_add('CM11A','System Plugin','Boolean','','FALSE',0);
16+
17+
CALL osae_sp_object_type_add ('X10 DIMMER','X10 Dimmer','','SWITCH',0,0,0,0);
18+
CALL osae_sp_object_type_state_add('X10 DIMMER','ON','On');
19+
CALL osae_sp_object_type_state_add('X10 DIMMER','OFF','Off');
20+
CALL osae_sp_object_type_event_add('X10 DIMMER','ON','On');
21+
CALL osae_sp_object_type_event_add('X10 DIMMER','OFF','Off');
22+
CALL osae_sp_object_type_method_add('X10 DIMMER','ON','On','Dim Level in %','','100','');
23+
CALL osae_sp_object_type_method_add('X10 DIMMER','OFF','Off','','','','');
24+
CALL osae_sp_object_type_method_add('X10 DIMMER','BRIGHT','Bright','','','','');
25+
CALL osae_sp_object_type_method_add('X10 DIMMER','DIM','Dim','','','','');
26+
CALL osae_sp_object_type_property_add('X10 DIMMER','Off Timer','Integer','','',0);
27+
CALL osae_sp_object_type_property_add('X10 DIMMER','Level','Integer','','',0);
28+
29+
CALL osae_sp_object_type_add ('X10 RELAY','X10 Relay','','SWITCH',0,0,0,0);
30+
CALL osae_sp_object_type_state_add('X10 RELAY','ON','On');
31+
CALL osae_sp_object_type_state_add('X10 RELAY','OFF','Off');
32+
CALL osae_sp_object_type_event_add('X10 RELAY','ON','On');
33+
CALL osae_sp_object_type_event_add('X10 RELAY','OFF','Off');
34+
CALL osae_sp_object_type_method_add('X10 RELAY','ON','On','','','100','');
35+
CALL osae_sp_object_type_method_add('X10 RELAY','OFF','Off','','','','');
36+
CALL osae_sp_object_type_property_add('X10 RELAY','Off Timer','Integer','','',0);
37+
38+
39+

UI/OSAE.UI.Controls/AddControlTimerLabel.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public AddControlTimerLabel(string screen, string controlName = "")
4343
}
4444
if (controlName == "")
4545
{
46-
sWorkingName = currentScreen + " - New State Image";
46+
sWorkingName = currentScreen + " - New Off Timer Label";
4747
DataSet dsScreenControl = OSAESql.RunSQL("SELECT COUNT(object_name) FROM osae_v_object where object_name = '" + sWorkingName + "'");
4848
int iCount = 0;
4949

5050
while (dsScreenControl.Tables[0].Rows[0][0].ToString() == "1")
5151
{
5252
// We have a duplicate name, we must get a unique name
5353
iCount += 1;
54-
sWorkingName = currentScreen + " - New State Image" + iCount;
54+
sWorkingName = currentScreen + " - New Off Timer Label " + iCount;
5555
dsScreenControl = OSAESql.RunSQL("SELECT COUNT(object_name) FROM osae_v_object where object_name = '" + sWorkingName + "'");
5656
}
5757
controlName = sWorkingName;
@@ -116,6 +116,7 @@ private void txtFont_MouseLeftButtonUp(object sender, System.Windows.Input.Mouse
116116
private void btnAdd_Click(object sender, RoutedEventArgs e)
117117
{
118118
string sName = txtControlName.Text;
119+
119120
OSAEObjectManager.ObjectAdd(sName, sName, sName, "CONTROL TIMER LABEL", "", currentScreen, true);
120121
OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Name", txtFont.Text, "GUI");
121122
OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Size", txtSize.Text, "GUI");

0 commit comments

Comments
 (0)