dodana podpora za temperaturni senzor addon, pm1

dodan nlog
pinganje devicov
This commit is contained in:
David
2025-01-10 20:52:29 +01:00
parent 98bb0ae882
commit 8892044e51
7 changed files with 259 additions and 36 deletions

View File

@@ -0,0 +1,30 @@
using Newtonsoft.Json;
namespace ShellyExporter.Classes
{
internal class Pm1GetStatusResponse
{
public class Energy
{
[JsonProperty("total")]
internal string? Total { get; set; }
[JsonProperty("minute_ts")]
internal string? MinuteTimeStamp { get; set; }
}
[JsonProperty("id")]
internal string? Id { get; set; }
[JsonProperty("voltage")]
internal string? Voltage { get; set; }
[JsonProperty("current")]
internal string? Current { get; set; }
[JsonProperty("apower")]
internal string? Apower { get; set; }
[JsonProperty("freq")]
internal string? Freq { get; set; }
[JsonProperty("aenergy")]
internal Energy? Aenergy { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using Newtonsoft.Json;
namespace ShellyExporter.Classes
{
internal class TemperatureGetStatusResponse
{
[JsonProperty("id")]
internal string? Id { get; set; }
[JsonProperty("tC")]
internal string? TemperatureC { get; set; }
[JsonProperty("tF")]
internal string? TemperatureF { get; set; }
}
}