/// <summary> /// /// </summary> /// <param name="client"></param> /// <param name="logger"></param> /// <param name="options"></param> public MeterValues(IInitialStateClient client, ILogger <MeterValues> logger, IOptions <AppSettings> options) : base(logger) { _client = client; _settings = options.Value; _logger?.LogDebug("MeterValues()"); }
/// <summary> /// Initializes a new instance of the <see cref="WallboxValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public WallboxValues(IInitialStateClient client, ILogger <WallboxValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.Wallbox), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "Wallbox Charging State" }); Values.Add(new InitialStateValue() { Key = "Wallbox Power" }); Values.Add(new InitialStateValue() { Key = "Wallbox Current L1" }); Values.Add(new InitialStateValue() { Key = "Wallbox Current L2" }); Values.Add(new InitialStateValue() { Key = "Wallbox Current L3" }); Values.Add(new InitialStateValue() { Key = "Wallbox Voltage L1" }); Values.Add(new InitialStateValue() { Key = "Wallbox Voltage L2" }); Values.Add(new InitialStateValue() { Key = "Wallbox Voltage L3" }); Values.Add(new InitialStateValue() { Key = "Wallbox Power Factor" }); Values.Add(new InitialStateValue() { Key = "Wallbox Present Energy" }); Values.Add(new InitialStateValue() { Key = "Wallbox Total Energy" }); }
/// <summary> /// Initializes a new instance of the <see cref="KWLEC200Values"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public KWLEC200Values(IInitialStateClient client, ILogger <KWLEC200Values> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.KWLEC200), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "KWLEC200 Temperature Outdoor" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Temperature Exhaust" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Temperature Extract" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Temperature Supply" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Ventilation Level" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Supply Fan Speed" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 Exhaust Fan Speed" }); Values.Add(new InitialStateValue() { Key = "KWLEC200 TemperatureChannel" }); }
/// <summary> /// Initializes a new instance of the <see cref="FroniusValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public FroniusValues(IInitialStateClient client, ILogger <FroniusValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.Fronius), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "Fronius Voltage DC" }); Values.Add(new InitialStateValue() { Key = "Fronius Current DC" }); Values.Add(new InitialStateValue() { Key = "Fronius Voltage AC" }); Values.Add(new InitialStateValue() { Key = "Fronius Current AC" }); Values.Add(new InitialStateValue() { Key = "Fronius Power AC" }); Values.Add(new InitialStateValue() { Key = "Fronius Daily Energy" }); Values.Add(new InitialStateValue() { Key = "Fronius Yearly Energy" }); Values.Add(new InitialStateValue() { Key = "Fronius Current L1" }); Values.Add(new InitialStateValue() { Key = "Fronius Current L2" }); Values.Add(new InitialStateValue() { Key = "Fronius Current L3" }); Values.Add(new InitialStateValue() { Key = "Fronius Voltage L1N" }); Values.Add(new InitialStateValue() { Key = "Fronius Voltage L2N" }); Values.Add(new InitialStateValue() { Key = "Fronius Voltage L3N" }); }
/// <summary> /// Initializes a new instance of the <see cref="ETAPU11Values"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public ETAPU11Values(IInitialStateClient client, ILogger <ETAPU11Values> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.ETAPU11), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "ETAPU11 Boiler Pressur" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Boiler Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Hotwater Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Heating Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Room Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Boiler Target" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Boiler Bottom" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Fluegas Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Draught Fan Speed" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Residual O2" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Room Target" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Flow Temperature" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Bin Content" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Stock Content" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Hotwater Target" }); Values.Add(new InitialStateValue() { Key = "ETAPU11 Outside Temperature" }); }
/// <summary> /// Initializes a new instance of the <see cref="HomeDataValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public HomeDataValues(IInitialStateClient client, ILogger <HomeDataValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.HomeData), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "HomeData Load" }); Values.Add(new InitialStateValue() { Key = "HomeData Demand" }); Values.Add(new InitialStateValue() { Key = "HomeData Generation" }); Values.Add(new InitialStateValue() { Key = "HomeData Surplus" }); Values.Add(new InitialStateValue() { Key = "HomeData Load L1" }); Values.Add(new InitialStateValue() { Key = "HomeData Demand L1" }); Values.Add(new InitialStateValue() { Key = "HomeData Generation L1" }); Values.Add(new InitialStateValue() { Key = "HomeData Surplus L1" }); Values.Add(new InitialStateValue() { Key = "HomeData Load L2" }); Values.Add(new InitialStateValue() { Key = "HomeData Demand L2" }); Values.Add(new InitialStateValue() { Key = "HomeData Generation L2" }); Values.Add(new InitialStateValue() { Key = "HomeData Surplus L2" }); Values.Add(new InitialStateValue() { Key = "HomeData Load L3" }); Values.Add(new InitialStateValue() { Key = "HomeData Demand L3" }); Values.Add(new InitialStateValue() { Key = "HomeData Generation L3" }); Values.Add(new InitialStateValue() { Key = "HomeData Surplus L3" }); }
/// <summary> /// Initializes a new instance of the <see cref="ZipatoValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public ZipatoValues(IInitialStateClient client, ILogger <ZipatoValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.Zipato), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "Zipato Plug 1" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 2" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 3" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 4" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 5" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 6" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 7" }); Values.Add(new InitialStateValue() { Key = "Zipato Plug 8" }); Values.Add(new InitialStateValue() { Key = "Zipato Heavy Duty Switch" }); Values.Add(new InitialStateValue() { Key = "Zipato Thermostat 1" }); Values.Add(new InitialStateValue() { Key = "Zipato Thermostat 2" }); Values.Add(new InitialStateValue() { Key = "Zipato Thermostat 3" }); Values.Add(new InitialStateValue() { Key = "Zipato Thermostat 4" }); Values.Add(new InitialStateValue() { Key = "Zipato Smoke Sensor" }); Values.Add(new InitialStateValue() { Key = "Zipato Flood Sensor" }); }
/// <summary> /// Initializes a new instance of the <see cref="NetatmoValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public NetatmoValues(IInitialStateClient client, ILogger <NetatmoValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.Netatmo), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "Netatmo Temperature" }); Values.Add(new InitialStateValue() { Key = "Netatmo Pressure" }); Values.Add(new InitialStateValue() { Key = "Netatmo Humidity" }); Values.Add(new InitialStateValue() { Key = "Netatmo Min. Temperature" }); Values.Add(new InitialStateValue() { Key = "Netatmo Max. Temperature" }); Values.Add(new InitialStateValue() { Key = "Netatmo Rain" }); Values.Add(new InitialStateValue() { Key = "Netatmo Sum Rain 1h" }); Values.Add(new InitialStateValue() { Key = "Netatmo Sum Rain 24h" }); Values.Add(new InitialStateValue() { Key = "Netatmo Wind Strength" }); Values.Add(new InitialStateValue() { Key = "Netatmo Wind Angle" }); Values.Add(new InitialStateValue() { Key = "Netatmo Gust Strength" }); Values.Add(new InitialStateValue() { Key = "Netatmo Gust Angle" }); Values.Add(new InitialStateValue() { Key = "Netatmo Max. Wind Strength" }); Values.Add(new InitialStateValue() { Key = "Netatmo Max. Wind Angle" }); Values.Add(new InitialStateValue() { Key = "Netatmo Temperature Main" }); Values.Add(new InitialStateValue() { Key = "Netatmo Humidity Main" }); Values.Add(new InitialStateValue() { Key = "Netatmo Noise" }); Values.Add(new InitialStateValue() { Key = "Netatmo CO2 Main" }); Values.Add(new InitialStateValue() { Key = "Netatmo Temperature Module 1" }); Values.Add(new InitialStateValue() { Key = "Netatmo Humidity Module 1" }); Values.Add(new InitialStateValue() { Key = "Netatmo CO2 Module 1" }); Values.Add(new InitialStateValue() { Key = "Netatmo Temperature Module 2" }); Values.Add(new InitialStateValue() { Key = "Netatmo Humidity Module 2" }); Values.Add(new InitialStateValue() { Key = "Netatmo CO2 Module 2" }); Values.Add(new InitialStateValue() { Key = "Netatmo Temperature Module 3" }); Values.Add(new InitialStateValue() { Key = "Netatmo Humidity Module 3" }); Values.Add(new InitialStateValue() { Key = "Netatmo CO2 Module 3" }); }
/// <summary> /// Initializes a new instance of the <see cref="EM300LRValues"/> class. /// </summary> /// <param name="client">The Initial State client instance.</param> /// <param name="logger">The logger instance.</param> /// <param name="options">The setting options instance.</param> public EM300LRValues(IInitialStateClient client, ILogger <EM300LRValues> logger, IOptions <AppSettings> options) : base(client, logger, options) { _client = new HttpClient() { BaseAddress = new Uri(_settings.Servers.EM300LR), Timeout = TimeSpan.FromSeconds(_settings.Timeout) }; Values.Add(new InitialStateValue() { Key = "EM300LR Frequency" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power+" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power+ L1" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power+ L2" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power+ L3" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power-" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power- L1" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power- L2" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power- L3" }); Values.Add(new InitialStateValue() { Key = "EM300LR Current L1" }); Values.Add(new InitialStateValue() { Key = "EM300LR Current L2" }); Values.Add(new InitialStateValue() { Key = "EM300LR Current L3" }); Values.Add(new InitialStateValue() { Key = "EM300LR Voltage L1" }); Values.Add(new InitialStateValue() { Key = "EM300LR Voltage L2" }); Values.Add(new InitialStateValue() { Key = "EM300LR Voltage L3" }); Values.Add(new InitialStateValue() { Key = "EM300LR Power Factor" }); }