[BF] v1.3.4.0 Fixing Json Names

[NF] v1.2.2.0 Mqtt can now get and set values
This commit is contained in:
BlubbFish 2017-12-19 20:18:30 +00:00
parent b29e1d2a14
commit 0834e09178
13 changed files with 31 additions and 31 deletions

View File

@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
}; };
} }
} }

View File

@ -78,8 +78,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "scene", this.Scene }, { "Scene", this.Scene },
{ "key", this.Key }, { "Key", this.Key },
}; };
} }
} }

View File

@ -61,8 +61,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
{ "size", this.Size }, { "Size", this.Size },
}; };
} }
} }

View File

@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
{ "type", this.Type }, { "Type", this.Type },
{ "scale", this.Scale }, { "Scale", this.Scale },
}; };
} }
} }

View File

@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
{ "type", this.Type }, { "Type", this.Type },
{ "scale", this.Scale }, { "Scale", this.Scale },
}; };
} }
} }

View File

@ -82,12 +82,12 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
{ "type", this.Type }, { "Type", this.Type },
{ "scale", this.Scale }, { "Scale", this.Scale },
{ "tempmax", this.TempMax }, { "TempMax", this.TempMax },
{ "tempmin", this.TempMin }, { "TempMin", this.TempMin },
{ "hasminmax", this.HasMinMax }, { "HasMinMax", this.HasMinMax },
}; };
} }
} }

View File

@ -50,7 +50,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
}; };
} }
} }

View File

@ -51,7 +51,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level } { "Level", this.Level }
}; };
} }
} }

View File

@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{ "level", this.Level } { "Level", this.Level }
}; };
} }
} }

View File

@ -71,8 +71,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
modes.Add(item.Key.ToString(), item.Value); modes.Add(item.Key.ToString(), item.Value);
} }
Dictionary<String, Object> json = new Dictionary<String, Object> { Dictionary<String, Object> json = new Dictionary<String, Object> {
{ "level", this.Level }, { "Level", this.Level },
{ "modes", modes } { "ValidModes", modes }
}; };
return json; return json;
} }

View File

@ -124,13 +124,13 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses {
public override Dictionary<String, Object> ToDictionary() { public override Dictionary<String, Object> ToDictionary() {
return new Dictionary<String, Object> { return new Dictionary<String, Object> {
{"interval", this.Interval }, { "Interval", this.Interval },
{"againstnode", this.AgainstNode }, { "AgainstNode", this.AgainstNode },
{ "wakeupmin", this.WakeupMin }, { "WakeupMin", this.WakeupMin },
{ "wakeupmax", this.WakeupMax }, { "WakeupMax", this.WakeupMax },
{ "wakeupdefault", this.WakeupDefault }, { "WakeupDefault", this.WakeupDefault },
{ "lastwakeup", this.LastWakeup.ToString() }, { "LastWakeup", this.LastWakeup.ToString() },
{ "lastsleep", this.LastSleep.ToString() } { "LastSleep", this.LastSleep.ToString() }
}; };
} }
} }

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, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.3.0")] [assembly: AssemblyVersion("1.3.4.0")]
[assembly: AssemblyFileVersion("1.3.3.0")] [assembly: AssemblyFileVersion("1.3.4.0")]

Binary file not shown.