3 Commits
Author SHA1 Message Date
BlubbFish 0834e09178 [BF] v1.3.4.0 Fixing Json Names
[NF] v1.2.2.0 Mqtt can now get and set values
2017-12-19 20:18:30 +00:00
BlubbFish b29e1d2a14 [BF] v.1.3.3 fixing polling once bug 2017-12-19 17:33:31 +00:00
BlubbFish d9dfe7d63a [BF] v1.3.1.0 Forgot some settings, now configuration setting also works again 2017-12-18 16:02:18 +00:00
14 changed files with 42 additions and 37 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "Level", this.Level },
};
}
}
+2 -2
View File
@@ -78,8 +78,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "scene", this.Scene },
{ "key", this.Key },
{ "Scene", this.Scene },
{ "Key", this.Key },
};
}
}
@@ -17,11 +17,11 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
}
set {
if (this.Size == 1 && Int16.TryParse(value.ToString(), out Int16 value16)) {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + this.Commandclass + "].Set(" + this.SensorId + "," + value16 + ",1)");
this.SetTriple(this.SensorId, value16, 1);
} else if(this.Size == 2 && Int32.TryParse(value.ToString(), out Int32 value32)) {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + this.Commandclass + "].Set(" + this.SensorId + "," + value32 + ",2)");
this.SetTriple(this.SensorId, value32, 2);
} else if(this.Size == 4) {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + this.Commandclass + "].Set(" + this.SensorId + "," + value + ",4)");
this.SetTriple(this.SensorId, value, 4);
}
}
}
@@ -61,8 +61,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "size", this.Size },
{ "Level", this.Level },
{ "Size", this.Size },
};
}
}
@@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "type", this.Type },
{ "scale", this.Scale },
{ "Level", this.Level },
{ "Type", this.Type },
{ "Scale", this.Scale },
};
}
}
@@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "type", this.Type },
{ "scale", this.Scale },
{ "Level", this.Level },
{ "Type", this.Type },
{ "Scale", this.Scale },
};
}
}
@@ -82,12 +82,12 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "type", this.Type },
{ "scale", this.Scale },
{ "tempmax", this.TempMax },
{ "tempmin", this.TempMin },
{ "hasminmax", this.HasMinMax },
{ "Level", this.Level },
{ "Type", this.Type },
{ "Scale", this.Scale },
{ "TempMax", this.TempMax },
{ "TempMin", this.TempMin },
{ "HasMinMax", this.HasMinMax },
};
}
}
+1 -1
View File
@@ -50,7 +50,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level },
{ "Level", this.Level },
};
}
}
+1 -1
View File
@@ -51,7 +51,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level }
{ "Level", this.Level }
};
}
}
@@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{ "level", this.Level }
{ "Level", this.Level }
};
}
}
@@ -71,8 +71,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
modes.Add(item.Key.ToString(), item.Value);
}
Dictionary<String, Object> json = new Dictionary<String, Object> {
{ "level", this.Level },
{ "modes", modes }
{ "Level", this.Level },
{ "ValidModes", modes }
};
return json;
}
+7 -7
View File
@@ -124,13 +124,13 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> {
{"interval", this.Interval },
{"againstnode", this.AgainstNode },
{ "wakeupmin", this.WakeupMin },
{ "wakeupmax", this.WakeupMax },
{ "wakeupdefault", this.WakeupDefault },
{ "lastwakeup", this.LastWakeup.ToString() },
{ "lastsleep", this.LastSleep.ToString() }
{ "Interval", this.Interval },
{ "AgainstNode", this.AgainstNode },
{ "WakeupMin", this.WakeupMin },
{ "WakeupMax", this.WakeupMax },
{ "WakeupDefault", this.WakeupDefault },
{ "LastWakeup", this.LastWakeup.ToString() },
{ "LastSleep", this.LastSleep.ToString() }
};
}
}
+8 -3
View File
@@ -153,13 +153,16 @@ namespace BlubbFish.IoT.Zway.Interfaces {
protected void PollSubGlobal() {
Boolean poll = false;
Boolean pollonce = false;
foreach (KeyValuePair<Int32, ACommandClass> item in this.Sub) {
if (item.Value.Polling) {
poll = true;
break;
}
if(item.Value.PollOnce) {
pollonce = true;
}
}
if (poll) {
if (poll || pollonce) {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + ((Int32)this.Commandclass).ToString() + "].Get()");
}
}
@@ -176,7 +179,9 @@ namespace BlubbFish.IoT.Zway.Interfaces {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + ((Int32)this.Commandclass).ToString() + "].Set(" + value1 + "," + value2 + ")");
}
protected void SetTuple(Int32 v1, Int32 v2) => this.SetTuple(v1, (Double)v2);
protected void SetTriple(Double v1, Double v2, Double v3) {
this.http.GetVoid("ZWave.zway/Run/devices[" + this.DeviceId + "].instances[" + this.Instance + "].commandClasses[" + ((Int32)this.Commandclass).ToString() + "].Set(" + v1 + "," + v2 + "," + v3 + ")");
}
protected Boolean CheckSetUpdateTime(JsonData json) {
if (json.Keys.Contains("updateTime") && (json["updateTime"].IsInt || json["updateTime"].IsLong)) {
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]
[assembly: AssemblyVersion("1.3.4.0")]
[assembly: AssemblyFileVersion("1.3.4.0")]
Binary file not shown.