[NF] Now creating correct Senml for Linksmart

This commit is contained in:
BlubbFish 2018-05-07 14:02:57 +00:00
parent a931ed15f0
commit ca399a405c
2 changed files with 3 additions and 1 deletions

View File

@ -89,6 +89,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
return new List<Senml>() { new SenmlDouble("power", Senml.Units.Watt, this.Level) }; return new List<Senml>() { new SenmlDouble("power", Senml.Units.Watt, this.Level) };
} else if(this.Scale == "°C") { } else if(this.Scale == "°C") {
return new List<Senml>() { new SenmlDouble("temperatur", Senml.Units.Celsius, this.Level) }; return new List<Senml>() { new SenmlDouble("temperatur", Senml.Units.Celsius, this.Level) };
} else if(this.Scale == "Lux") {
return new List<Senml>() { new SenmlDouble("luminiscence", Senml.Units.Lux, this.Level) };
} }
return new List<Senml>() { }; return new List<Senml>() { };
} }

View File

@ -266,7 +266,7 @@ namespace BlubbFish.IoT.Zway.Interfaces {
} }
public String SenmlTopic() { public String SenmlTopic() {
return "/LS/v2/ZGW/" + Guid.NewGuid().ToString(); return "LS/v2/ZGW/";
} }
#endregion #endregion