[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() {
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() {
return new Dictionary<String, Object> {
{ "scene", this.Scene },
{ "key", this.Key },
{ "Scene", this.Scene },
{ "Key", this.Key },
};
}
}

View File

@ -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 },
};
}
}

View File

@ -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 },
};
}
}

View File

@ -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 },
};
}
}

View File

@ -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 },
};
}
}

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 },
};
}
}

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 }
};
}
}

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 }
};
}
}

View File

@ -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;
}

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() }
};
}
}

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.3.0")]
[assembly: AssemblyFileVersion("1.3.3.0")]
[assembly: AssemblyVersion("1.3.4.0")]
[assembly: AssemblyFileVersion("1.3.4.0")]

Binary file not shown.