From 0834e091780aebe20c87b8da66ba7d72417dcdd8 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Tue, 19 Dec 2017 20:18:30 +0000 Subject: [PATCH] [BF] v1.3.4.0 Fixing Json Names [NF] v1.2.2.0 Mqtt can now get and set values --- Zway/Devices/CommandClasses/Battery.cs | 2 +- Zway/Devices/CommandClasses/CentralScene.cs | 4 ++-- .../CommandClassSubs/Configurationsub.cs | 4 ++-- .../CommandClassSubs/MeterSub.cs | 6 +++--- .../CommandClassSubs/SensorMultilevelSub.cs | 6 +++--- .../CommandClassSubs/ThermostatSetPointSub.cs | 12 ++++++------ Zway/Devices/CommandClasses/Indicator.cs | 2 +- Zway/Devices/CommandClasses/SwitchBinary.cs | 2 +- .../CommandClasses/SwitchMultilevel.cs | 2 +- Zway/Devices/CommandClasses/ThermostatMode.cs | 4 ++-- Zway/Devices/CommandClasses/Wakeup.cs | 14 +++++++------- Zway/Properties/AssemblyInfo.cs | 4 ++-- Zway/bin/Release/Zway.dll | Bin 49664 -> 49664 bytes 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Zway/Devices/CommandClasses/Battery.cs b/Zway/Devices/CommandClasses/Battery.cs index 459fe8e..71f5f1b 100644 --- a/Zway/Devices/CommandClasses/Battery.cs +++ b/Zway/Devices/CommandClasses/Battery.cs @@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level }, + { "Level", this.Level }, }; } } diff --git a/Zway/Devices/CommandClasses/CentralScene.cs b/Zway/Devices/CommandClasses/CentralScene.cs index 8ab5db7..55e475f 100644 --- a/Zway/Devices/CommandClasses/CentralScene.cs +++ b/Zway/Devices/CommandClasses/CentralScene.cs @@ -78,8 +78,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - { "scene", this.Scene }, - { "key", this.Key }, + { "Scene", this.Scene }, + { "Key", this.Key }, }; } } diff --git a/Zway/Devices/CommandClasses/CommandClassSubs/Configurationsub.cs b/Zway/Devices/CommandClasses/CommandClassSubs/Configurationsub.cs index 00571b7..bcc3b89 100644 --- a/Zway/Devices/CommandClasses/CommandClassSubs/Configurationsub.cs +++ b/Zway/Devices/CommandClasses/CommandClassSubs/Configurationsub.cs @@ -61,8 +61,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level }, - { "size", this.Size }, + { "Level", this.Level }, + { "Size", this.Size }, }; } } diff --git a/Zway/Devices/CommandClasses/CommandClassSubs/MeterSub.cs b/Zway/Devices/CommandClasses/CommandClassSubs/MeterSub.cs index 5e96d75..562510d 100644 --- a/Zway/Devices/CommandClasses/CommandClassSubs/MeterSub.cs +++ b/Zway/Devices/CommandClasses/CommandClassSubs/MeterSub.cs @@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level }, - { "type", this.Type }, - { "scale", this.Scale }, + { "Level", this.Level }, + { "Type", this.Type }, + { "Scale", this.Scale }, }; } } diff --git a/Zway/Devices/CommandClasses/CommandClassSubs/SensorMultilevelSub.cs b/Zway/Devices/CommandClasses/CommandClassSubs/SensorMultilevelSub.cs index de1104e..0423e02 100644 --- a/Zway/Devices/CommandClasses/CommandClassSubs/SensorMultilevelSub.cs +++ b/Zway/Devices/CommandClasses/CommandClassSubs/SensorMultilevelSub.cs @@ -52,9 +52,9 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level }, - { "type", this.Type }, - { "scale", this.Scale }, + { "Level", this.Level }, + { "Type", this.Type }, + { "Scale", this.Scale }, }; } } diff --git a/Zway/Devices/CommandClasses/CommandClassSubs/ThermostatSetPointSub.cs b/Zway/Devices/CommandClasses/CommandClassSubs/ThermostatSetPointSub.cs index 50d970d..cb9c139 100644 --- a/Zway/Devices/CommandClasses/CommandClassSubs/ThermostatSetPointSub.cs +++ b/Zway/Devices/CommandClasses/CommandClassSubs/ThermostatSetPointSub.cs @@ -82,12 +82,12 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs { public override Dictionary ToDictionary() { return new Dictionary { - { "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 }, }; } } diff --git a/Zway/Devices/CommandClasses/Indicator.cs b/Zway/Devices/CommandClasses/Indicator.cs index f0444b2..6ffc536 100644 --- a/Zway/Devices/CommandClasses/Indicator.cs +++ b/Zway/Devices/CommandClasses/Indicator.cs @@ -50,7 +50,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level }, + { "Level", this.Level }, }; } } diff --git a/Zway/Devices/CommandClasses/SwitchBinary.cs b/Zway/Devices/CommandClasses/SwitchBinary.cs index f965b02..2dedcfa 100644 --- a/Zway/Devices/CommandClasses/SwitchBinary.cs +++ b/Zway/Devices/CommandClasses/SwitchBinary.cs @@ -51,7 +51,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level } + { "Level", this.Level } }; } } diff --git a/Zway/Devices/CommandClasses/SwitchMultilevel.cs b/Zway/Devices/CommandClasses/SwitchMultilevel.cs index c42caf4..d663771 100644 --- a/Zway/Devices/CommandClasses/SwitchMultilevel.cs +++ b/Zway/Devices/CommandClasses/SwitchMultilevel.cs @@ -54,7 +54,7 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - { "level", this.Level } + { "Level", this.Level } }; } } diff --git a/Zway/Devices/CommandClasses/ThermostatMode.cs b/Zway/Devices/CommandClasses/ThermostatMode.cs index 75cc9f4..b83a4bd 100644 --- a/Zway/Devices/CommandClasses/ThermostatMode.cs +++ b/Zway/Devices/CommandClasses/ThermostatMode.cs @@ -71,8 +71,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { modes.Add(item.Key.ToString(), item.Value); } Dictionary json = new Dictionary { - { "level", this.Level }, - { "modes", modes } + { "Level", this.Level }, + { "ValidModes", modes } }; return json; } diff --git a/Zway/Devices/CommandClasses/Wakeup.cs b/Zway/Devices/CommandClasses/Wakeup.cs index 8f1b197..509505b 100644 --- a/Zway/Devices/CommandClasses/Wakeup.cs +++ b/Zway/Devices/CommandClasses/Wakeup.cs @@ -124,13 +124,13 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses { public override Dictionary ToDictionary() { return new Dictionary { - {"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() } }; } } diff --git a/Zway/Properties/AssemblyInfo.cs b/Zway/Properties/AssemblyInfo.cs index 3902101..e206ba6 100644 --- a/Zway/Properties/AssemblyInfo.cs +++ b/Zway/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Zway/bin/Release/Zway.dll b/Zway/bin/Release/Zway.dll index 5af08107fb3d22dfbc89723d0e23102968b14467..875a364208a00b626527197cb18287a6c04dd245 100644 GIT binary patch delta 1518 zcmZ9Me@s(X6vxlKuav$bc9fLD0H-0uZgd6+P@fq=p{Q62#TFTC#F*)b5iJ&VQ)dbr z$$sb}-HCCFF%12~DTBJ*CF@WEOSWuTvMnSgbJ>rK#BB4A#gN6!g)Hpc_gYHYX(Aj0u$D)nI=z%ZFY5Gi2A$C9SO%Td>39bH zNvBtdTJ7K(1yHTYj*B>0yTr3BI8fKhD#T2k!dM4>?s3rl2hS#JhXn@0TgjY?Rqc*! zG6CjD2l_V`TElU|?$gHO647R1!fxWcon z`kqBwJ-o~+60LnKZ)FMEeL7bq;={_eF8e~tuQsgH1*7TBHj}X`Cw|-J=0vH#u(#*1 zymZB@ZnMR%+KWt~A7rOuDh8q0Qcws>iLU(`O=UCB)1{8{G{tW{jQ(Ziy7 zEpP;m!2yWC3D^hy0M2dDN6|szgEZ3yVc1Xekl#i05Jksf0Q~xVCff%u0~D{$^HTnc zRCk<|j{!JZDVD0K9Get_{1gu2nGgTS4Z;glc0@MK_TkaVbu0%*CQq($?4jy@>bxKP zxI8&(QG@hw3J&1gQx#1iI7wPmlOyY8BE_~4-4E-Ab#tqpK!bGT-=pC*$?84F&X1JbbGg*WMmdO`re?fk|Avtua<3=4YB{ XK*y|y?*7?Z{5MVH%{^eT%IyCEz4eRj delta 1498 zcmZ8hZ%kWN6hHSqXn92`ZByC}P!_V#X(5ztbX_2wrMR&GB`e6l8Q18X#CEL(+$Pa> ziiv+_Mt4G#5rfPR>N5UhSL0wKY~M7|EPQfCjWIJO`!p9ms38W=eXj-5ChxxUe)sn~ z=XcJ1ujx@GJ*teo%bPkf??1+_WWMZWN0G6b!m7If6}W@Dv5(cTc|6Bb>^w4VD?Ic( z0K?xGy`qaxHl$_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