//------------------------------------------------------------------------------
//
// Generated using NetDaemon CodeGenerator nd-codegen v26.11.0.0
// At: 2026-03-31T22:16:06.7505553+03:00
//
// *** Make sure the version of the codegen tool and your nugets NetDaemon.* have the same version.***
// You can use following command to keep it up to date with the latest version:
// dotnet tool update NetDaemon.HassModel.CodeGen
//
// To update this file with latest entities run this command in your project directory:
// dotnet tool run nd-codegen
//
// In the template projects we provided a convenience powershell script that will update
// the codegen and nugets to latest versions update_all_dependencies.ps1.
//
// For more information: https://netdaemon.xyz/docs/user/hass_model/hass_model_codegen
// For more information about NetDaemon: https://netdaemon.xyz/
//
//------------------------------------------------------------------------------
#nullable enable
using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using System.Text.Json;
using System.Text.Json.Serialization;
using NetDaemon.HassModel;
using NetDaemon.HassModel.Entities;
using NetDaemon.HassModel.Entities.Core;
namespace HomeAssistantGenerated;
public static class GeneratedExtensions
{
///Registers all injectable generated types in the serviceCollection
public static IServiceCollection AddHomeAssistantGenerated(this IServiceCollection serviceCollection)
{
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
serviceCollection.AddTransient();
return serviceCollection;
}
}
///
/// Allows HassModel to instantiate the correct generated Entity types
///
public class GeneratedEntityFactory : IEntityFactory
{
public Entity CreateEntity(IHaContext haContext, string entityId)
{
var dot = entityId.IndexOf('.', StringComparison.Ordinal);
var domain = dot < 0 ? entityId.AsSpan() : entityId[..dot];
return domain switch
{
"automation" => new AutomationEntity(haContext, entityId),
"binary_sensor" => new BinarySensorEntity(haContext, entityId),
"button" => new ButtonEntity(haContext, entityId),
"climate" => new ClimateEntity(haContext, entityId),
"conversation" => new ConversationEntity(haContext, entityId),
"counter" => new CounterEntity(haContext, entityId),
"device_tracker" => new DeviceTrackerEntity(haContext, entityId),
"event" => new EventEntity(haContext, entityId),
"fan" => new FanEntity(haContext, entityId),
"humidifier" => new HumidifierEntity(haContext, entityId),
"input_boolean" => new InputBooleanEntity(haContext, entityId),
"input_datetime" => new InputDatetimeEntity(haContext, entityId),
"input_number" => new InputNumberEntity(haContext, entityId),
"light" => new LightEntity(haContext, entityId),
"media_player" => new MediaPlayerEntity(haContext, entityId),
"number" => new NumberEntity(haContext, entityId),
"person" => new PersonEntity(haContext, entityId),
"remote" => new RemoteEntity(haContext, entityId),
"script" => new ScriptEntity(haContext, entityId),
"select" => new SelectEntity(haContext, entityId),
"sensor" when IsNumeric() => new NumericSensorEntity(haContext, entityId),
"sensor" => new SensorEntity(haContext, entityId),
"sun" => new SunEntity(haContext, entityId),
"switch" => new SwitchEntity(haContext, entityId),
"text" => new TextEntity(haContext, entityId),
"tts" => new TtsEntity(haContext, entityId),
"update" => new UpdateEntity(haContext, entityId),
"weather" => new WeatherEntity(haContext, entityId),
"zone" => new ZoneEntity(haContext, entityId),
_ => new Entity(haContext, entityId)};
bool IsNumeric() => haContext.GetState(entityId)?.AttributesJson?.TryGetProperty("unit_of_measurement", out _) ?? false;
}
}
public interface IEntities
{
LightEntities Light { get; }
MediaPlayerEntities MediaPlayer { get; }
AutomationEntities Automation { get; }
BinarySensorEntities BinarySensor { get; }
ButtonEntities Button { get; }
ClimateEntities Climate { get; }
ConversationEntities Conversation { get; }
CounterEntities Counter { get; }
DeviceTrackerEntities DeviceTracker { get; }
EventEntities Event { get; }
FanEntities Fan { get; }
HumidifierEntities Humidifier { get; }
InputBooleanEntities InputBoolean { get; }
InputDatetimeEntities InputDatetime { get; }
InputNumberEntities InputNumber { get; }
NumberEntities Number { get; }
PersonEntities Person { get; }
RemoteEntities Remote { get; }
ScriptEntities Script { get; }
SelectEntities Select { get; }
SensorEntities Sensor { get; }
SunEntities Sun { get; }
SwitchEntities Switch { get; }
TextEntities Text { get; }
TtsEntities Tts { get; }
UpdateEntities Update { get; }
WeatherEntities Weather { get; }
ZoneEntities Zone { get; }
}
public partial class Entities : IEntities
{
private readonly IHaContext _haContext;
public Entities(IHaContext haContext)
{
_haContext = haContext;
}
public LightEntities Light => new(_haContext);
public MediaPlayerEntities MediaPlayer => new(_haContext);
public AutomationEntities Automation => new(_haContext);
public BinarySensorEntities BinarySensor => new(_haContext);
public ButtonEntities Button => new(_haContext);
public ClimateEntities Climate => new(_haContext);
public ConversationEntities Conversation => new(_haContext);
public CounterEntities Counter => new(_haContext);
public DeviceTrackerEntities DeviceTracker => new(_haContext);
public EventEntities Event => new(_haContext);
public FanEntities Fan => new(_haContext);
public HumidifierEntities Humidifier => new(_haContext);
public InputBooleanEntities InputBoolean => new(_haContext);
public InputDatetimeEntities InputDatetime => new(_haContext);
public InputNumberEntities InputNumber => new(_haContext);
public NumberEntities Number => new(_haContext);
public PersonEntities Person => new(_haContext);
public RemoteEntities Remote => new(_haContext);
public ScriptEntities Script => new(_haContext);
public SelectEntities Select => new(_haContext);
public SensorEntities Sensor => new(_haContext);
public SunEntities Sun => new(_haContext);
public SwitchEntities Switch => new(_haContext);
public TextEntities Text => new(_haContext);
public TtsEntities Tts => new(_haContext);
public UpdateEntities Update => new(_haContext);
public WeatherEntities Weather => new(_haContext);
public ZoneEntities Zone => new(_haContext);
}
public partial class LightEntities
{
private readonly IHaContext _haContext;
public LightEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all light entities currently registered (at runtime) in Home Assistant as LightEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("light.")).Select(e => new LightEntity(e));
///Edge LED
public LightEntity Sonoff1002214d40 => new(_haContext, "light.sonoff_1002214d40");
}
public partial class MediaPlayerEntities
{
private readonly IHaContext _haContext;
public MediaPlayerEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all media_player entities currently registered (at runtime) in Home Assistant as MediaPlayerEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("media_player.")).Select(e => new MediaPlayerEntity(e));
public MediaPlayerEntity _123prasaunenuplyskQe75q77datxxh => new(_haContext, "media_player.123prasaunenuplysk_qe75q77datxxh");
///123PrasauNenuplysk (QE75Q77DATXXH)
public MediaPlayerEntity _123prasaunenuplyskQe75q77datxxh2 => new(_haContext, "media_player.123prasaunenuplysk_qe75q77datxxh_2");
}
public partial class AutomationEntities
{
private readonly IHaContext _haContext;
public AutomationEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all automation entities currently registered (at runtime) in Home Assistant as AutomationEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("automation.")).Select(e => new AutomationEntity(e));
///AC cool on
public AutomationEntity AcCoolOn => new(_haContext, "automation.ac_cool_on");
///AC tun off
public AutomationEntity AcTunOff => new(_haContext, "automation.ac_tun_off");
///Auto turn off boiler
public AutomationEntity AutoTurnOffBoiler => new(_haContext, "automation.auto_turn_off_boiler");
///Boiler turn on counter
public AutomationEntity BoilerTurnOnCounter => new(_haContext, "automation.boiler_turn_on_counter");
///Christmas lights sync
public AutomationEntity ChristmasLightsSync => new(_haContext, "automation.christmas_lights_sync");
///Christmas lights sync v2
public AutomationEntity ChristmasLightsSyncV2 => new(_haContext, "automation.christmas_lights_sync_v2");
///Dehumidifier on counter
public AutomationEntity DehumidifierOnOffCounter => new(_haContext, "automation.dehumidifier_on_off_counter");
///Lamp sync off
public AutomationEntity LampSyncOff => new(_haContext, "automation.lamp_sync_off");
///Lamp sync on
public AutomationEntity LampSyncOn => new(_haContext, "automation.lamp_sync_on");
///Turn off dehumidifier
public AutomationEntity TurnOfDehumidifier => new(_haContext, "automation.turn_of_dehumidifier");
///Turn Off all lights
public AutomationEntity TurnOffAllLights => new(_haContext, "automation.turn_off_all_lights");
///TurnOn Dehumidifier then not at home
public AutomationEntity TurnonDehumidifierThenNotAtHome => new(_haContext, "automation.turnon_dehumidifier_then_not_at_home");
}
public partial class BinarySensorEntities
{
private readonly IHaContext _haContext;
public BinarySensorEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all binary_sensor entities currently registered (at runtime) in Home Assistant as BinarySensorEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("binary_sensor.")).Select(e => new BinarySensorEntity(e));
///Aquarium leak sensor
public BinarySensorEntity AquariumLeakSensor => new(_haContext, "binary_sensor.aquarium_leak_sensor");
///Boiler Moisture
public BinarySensorEntity BoilerMoisture => new(_haContext, "binary_sensor.boiler_moisture");
///Boiler Monitor Budget exhausted
public BinarySensorEntity BoilermonitorBudgetExhausted => new(_haContext, "binary_sensor.boilermonitor_budget_exhausted");
///Low Storage
public BinarySensorEntity LowStorage => new(_haContext, "binary_sensor.low_storage");
///Marius Watch Is charging
public BinarySensorEntity MariusWatchIsCharging => new(_haContext, "binary_sensor.marius_watch_is_charging");
///Marius Watch On body sensor
public BinarySensorEntity MariusWatchOnBodySensor => new(_haContext, "binary_sensor.marius_watch_on_body_sensor");
///Marius Phone Is charging
public BinarySensorEntity SmS936bIsCharging => new(_haContext, "binary_sensor.sm_s936b_is_charging");
///Marius Phone Mobile data
public BinarySensorEntity SmS936bMobileData => new(_haContext, "binary_sensor.sm_s936b_mobile_data");
///Marius Phone Wi-Fi state
public BinarySensorEntity SmS936bWiFiState => new(_haContext, "binary_sensor.sm_s936b_wi_fi_state");
///Connection State
public BinarySensorEntity WellbeingAirPurifier2Connectionstate => new(_haContext, "binary_sensor.wellbeing_air_purifier_2_connectionstate");
///Ionizer
public BinarySensorEntity WellbeingAirPurifier2Ionizer => new(_haContext, "binary_sensor.wellbeing_air_purifier_2_ionizer");
///Safety Lock
public BinarySensorEntity WellbeingAirPurifier2Safetylock => new(_haContext, "binary_sensor.wellbeing_air_purifier_2_safetylock");
///Status
public BinarySensorEntity WellbeingAirPurifier2Status => new(_haContext, "binary_sensor.wellbeing_air_purifier_2_status");
///UI Light
public BinarySensorEntity WellbeingAirPurifier2Uilight => new(_haContext, "binary_sensor.wellbeing_air_purifier_2_uilight");
}
public partial class ButtonEntities
{
private readonly IHaContext _haContext;
public ButtonEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all button entities currently registered (at runtime) in Home Assistant as ButtonEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("button.")).Select(e => new ButtonEntity(e));
///Boiler Moisture Identify
public ButtonEntity BoilerMoistureIdentify => new(_haContext, "button.boiler_moisture_identify");
///Boiler room Temp Identify
public ButtonEntity BoilerTempIdentify => new(_haContext, "button.boiler_temp_identify");
///Boiler Monitor Cleanup all entities
public ButtonEntity BoilermonitorCleanup => new(_haContext, "button.boilermonitor_cleanup");
///Home Assistant Reload
public ButtonEntity HomeassistantReload => new(_haContext, "button.homeassistant_reload");
///Home Assistant Restart
public ButtonEntity HomeassistantRestart => new(_haContext, "button.homeassistant_restart");
///Repairs Ignore all
public ButtonEntity IgnoreAllIssues => new(_haContext, "button.ignore_all_issues");
///Rediscover power sensors
public ButtonEntity PowermonitorRediscoverSensors => new(_haContext, "button.powermonitor_rediscover_sensors");
///Repairs Unignore all
public ButtonEntity UnignoreAllIssues => new(_haContext, "button.unignore_all_issues");
}
public partial class ClimateEntities
{
private readonly IHaContext _haContext;
public ClimateEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all climate entities currently registered (at runtime) in Home Assistant as ClimateEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("climate.")).Select(e => new ClimateEntity(e));
///AC
public ClimateEntity AirConditioner => new(_haContext, "climate.air_conditioner");
///Bathroom Thermostat
public ClimateEntity BathroomThermostat => new(_haContext, "climate.bathroom_thermostat");
///Main Home Termostat
public ClimateEntity MainHomeTermostat => new(_haContext, "climate.main_home_termostat");
///Windows Termostat
public ClimateEntity WindowsTermostat => new(_haContext, "climate.windows_termostat");
}
public partial class ConversationEntities
{
private readonly IHaContext _haContext;
public ConversationEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all conversation entities currently registered (at runtime) in Home Assistant as ConversationEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("conversation.")).Select(e => new ConversationEntity(e));
///Home Assistant
public ConversationEntity HomeAssistant => new(_haContext, "conversation.home_assistant");
}
public partial class CounterEntities
{
private readonly IHaContext _haContext;
public CounterEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all counter entities currently registered (at runtime) in Home Assistant as CounterEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("counter.")).Select(e => new CounterEntity(e));
///AC on/off counter
public CounterEntity AcOnOffCounter => new(_haContext, "counter.ac_on_off_counter");
///Boiler turn on count
public CounterEntity BoilerTurnOnCount => new(_haContext, "counter.boiler_turn_on_count");
///Dehumidifier on counter
public CounterEntity DehumidifierOnOffCounter => new(_haContext, "counter.dehumidifier_on_off_counter");
}
public partial class DeviceTrackerEntities
{
private readonly IHaContext _haContext;
public DeviceTrackerEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all device_tracker entities currently registered (at runtime) in Home Assistant as DeviceTrackerEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("device_tracker.")).Select(e => new DeviceTrackerEntity(e));
///Erika's iPhone
public DeviceTrackerEntity ErikaSIphone => new(_haContext, "device_tracker.erika_s_iphone");
///Home Phone
public DeviceTrackerEntity HomePhone => new(_haContext, "device_tracker.home_phone");
///Marius Phone
public DeviceTrackerEntity SmS936b => new(_haContext, "device_tracker.sm_s936b");
}
public partial class EventEntities
{
private readonly IHaContext _haContext;
public EventEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all event entities currently registered (at runtime) in Home Assistant as EventEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("event.")).Select(e => new EventEntity(e));
///Repairs
public EventEntity Repair => new(_haContext, "event.repair");
}
public partial class FanEntities
{
private readonly IHaContext _haContext;
public FanEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all fan entities currently registered (at runtime) in Home Assistant as FanEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("fan.")).Select(e => new FanEntity(e));
///Fan Speed
public FanEntity WellbeingAirPurifier2Fanspeed => new(_haContext, "fan.wellbeing_air_purifier_2_fanspeed");
}
public partial class HumidifierEntities
{
private readonly IHaContext _haContext;
public HumidifierEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all humidifier entities currently registered (at runtime) in Home Assistant as HumidifierEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("humidifier.")).Select(e => new HumidifierEntity(e));
///Auto Dehumidifier
public HumidifierEntity AutoDehumidifier => new(_haContext, "humidifier.auto_dehumidifier");
}
public partial class InputBooleanEntities
{
private readonly IHaContext _haContext;
public InputBooleanEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all input_boolean entities currently registered (at runtime) in Home Assistant as InputBooleanEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("input_boolean.")).Select(e => new InputBooleanEntity(e));
///AC on/off
public InputBooleanEntity AcOnOff => new(_haContext, "input_boolean.ac_on_off");
///Boiler Boost Mode
public InputBooleanEntity BoilerBoostMode => new(_haContext, "input_boolean.boiler_boost_mode");
///Christmas lights
public InputBooleanEntity ChristmasLights => new(_haContext, "input_boolean.christmas_lights");
///netdaemon_boiler_monitor_manager_boiler_monitor_init
public InputBooleanEntity NetdaemonBoilerMonitorManagerBoilerMonitorInit => new(_haContext, "input_boolean.netdaemon_boiler_monitor_manager_boiler_monitor_init");
///netdaemon_nord_pool_manager_nord_pool_init
public InputBooleanEntity NetdaemonNordPoolManagerNordPoolInit => new(_haContext, "input_boolean.netdaemon_nord_pool_manager_nord_pool_init");
}
public partial class InputDatetimeEntities
{
private readonly IHaContext _haContext;
public InputDatetimeEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all input_datetime entities currently registered (at runtime) in Home Assistant as InputDatetimeEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("input_datetime.")).Select(e => new InputDatetimeEntity(e));
///Boiler Ready By
public InputDatetimeEntity BoilerReadyBy => new(_haContext, "input_datetime.boiler_ready_by");
}
public partial class InputNumberEntities
{
private readonly IHaContext _haContext;
public InputNumberEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all input_number entities currently registered (at runtime) in Home Assistant as InputNumberEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("input_number.")).Select(e => new InputNumberEntity(e));
///Boiler Daily Hours
public InputNumberEntity BoilerDailyHours => new(_haContext, "input_number.boiler_daily_hours");
///Boiler price cap
public InputNumberEntity BoilerPriceCap => new(_haContext, "input_number.boiler_price_cap");
}
public partial class NumberEntities
{
private readonly IHaContext _haContext;
public NumberEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all number entities currently registered (at runtime) in Home Assistant as NumberEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("number.")).Select(e => new NumberEntity(e));
///Bathroom Comfort humidity max
public NumberEntity BathroomComfortHumidityMax => new(_haContext, "number.bathroom_comfort_humidity_max");
///Bathroom Comfort humidity min
public NumberEntity BathroomComfortHumidityMin => new(_haContext, "number.bathroom_comfort_humidity_min");
///Bathroom Comfort temperature max
public NumberEntity BathroomComfortTemperatureMax => new(_haContext, "number.bathroom_comfort_temperature_max");
///Bathroom Comfort temperature min
public NumberEntity BathroomComfortTemperatureMin => new(_haContext, "number.bathroom_comfort_temperature_min");
///Bedroom Comfort humidity max
public NumberEntity BedroomComfortHumidityMax => new(_haContext, "number.bedroom_comfort_humidity_max");
///Bedroom Comfort humidity min
public NumberEntity BedroomComfortHumidityMin => new(_haContext, "number.bedroom_comfort_humidity_min");
///Bedroom Comfort temperature max
public NumberEntity BedroomComfortTemperatureMax => new(_haContext, "number.bedroom_comfort_temperature_max");
///Bedroom Comfort temperature min
public NumberEntity BedroomComfortTemperatureMin => new(_haContext, "number.bedroom_comfort_temperature_min");
///Boiler room Temp Comfort humidity max
public NumberEntity BoilerTempComfortHumidityMax => new(_haContext, "number.boiler_temp_comfort_humidity_max");
///Boiler room Temp Comfort humidity min
public NumberEntity BoilerTempComfortHumidityMin => new(_haContext, "number.boiler_temp_comfort_humidity_min");
///Boiler room Temp Comfort temperature max
public NumberEntity BoilerTempComfortTemperatureMax => new(_haContext, "number.boiler_temp_comfort_temperature_max");
///Boiler room Temp Comfort temperature min
public NumberEntity BoilerTempComfortTemperatureMin => new(_haContext, "number.boiler_temp_comfort_temperature_min");
///Boiler room Temp Humidity offset
public NumberEntity BoilerTempHumidityOffset => new(_haContext, "number.boiler_temp_humidity_offset");
///Boiler room Temp Temperature offset
public NumberEntity BoilerTempTemperatureOffset => new(_haContext, "number.boiler_temp_temperature_offset");
///Boiler Monitor Heating power threshold (watts)
public NumberEntity BoilermonitorConfigHeatingThreshold => new(_haContext, "number.boilermonitor_config_heating_threshold");
///Boiler Monitor Poll interval (seconds)
public NumberEntity BoilermonitorConfigPollInterval => new(_haContext, "number.boilermonitor_config_poll_interval");
///Main Home Comfort humidity max
public NumberEntity MainHomeComfortHumidityMax => new(_haContext, "number.main_home_comfort_humidity_max");
///Main Home Comfort humidity min
public NumberEntity MainHomeComfortHumidityMin => new(_haContext, "number.main_home_comfort_humidity_min");
///Main Home Comfort temperature max
public NumberEntity MainHomeComfortTemperatureMax => new(_haContext, "number.main_home_comfort_temperature_max");
///Main Home Comfort temperature min
public NumberEntity MainHomeComfortTemperatureMin => new(_haContext, "number.main_home_comfort_temperature_min");
}
public partial class PersonEntities
{
private readonly IHaContext _haContext;
public PersonEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all person entities currently registered (at runtime) in Home Assistant as PersonEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("person.")).Select(e => new PersonEntity(e));
///Erika
public PersonEntity Erika => new(_haContext, "person.erika");
///Home Phone
public PersonEntity HomePhone => new(_haContext, "person.home_phone");
///Marius
public PersonEntity Marius => new(_haContext, "person.marius");
}
public partial class RemoteEntities
{
private readonly IHaContext _haContext;
public RemoteEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all remote entities currently registered (at runtime) in Home Assistant as RemoteEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("remote.")).Select(e => new RemoteEntity(e));
public RemoteEntity _123prasaunenuplyskQe75q77datxxh => new(_haContext, "remote.123prasaunenuplysk_qe75q77datxxh");
///123PrasauNenuplysk (QE75Q77DATXXH)
public RemoteEntity _123prasaunenuplyskQe75q77datxxh2 => new(_haContext, "remote.123prasaunenuplysk_qe75q77datxxh_2");
}
public partial class ScriptEntities
{
private readonly IHaContext _haContext;
public ScriptEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all script entities currently registered (at runtime) in Home Assistant as ScriptEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("script.")).Select(e => new ScriptEntity(e));
///System: Purge Device History
public ScriptEntity SystemPurgeDeviceHistory => new(_haContext, "script.system_purge_device_history");
///Update NordPool Prices
public ScriptEntity Updatenordpoolprices => new(_haContext, "script.updatenordpoolprices");
}
public partial class SelectEntities
{
private readonly IHaContext _haContext;
public SelectEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all select entities currently registered (at runtime) in Home Assistant as SelectEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("select.")).Select(e => new SelectEntity(e));
///Akvariumas Power-on behavior
public SelectEntity AkvariumasStartUpBehavior => new(_haContext, "select.akvariumas_start_up_behavior");
///3D print Power-on behavior
public SelectEntity BalkonyLapsStartUpBehavior => new(_haContext, "select.balkony_laps_start_up_behavior");
///Bathroom Display unit
public SelectEntity BathroomDisplayUnit => new(_haContext, "select.bathroom_display_unit");
///Bedroom Display unit
public SelectEntity BedroomDisplayUnit => new(_haContext, "select.bedroom_display_unit");
///Boiler room Temp Display unit
public SelectEntity BoilerTempDisplayUnit => new(_haContext, "select.boiler_temp_display_unit");
///Dishwasher Power-on behavior
public SelectEntity DishwasherStartUpBehavior => new(_haContext, "select.dishwasher_start_up_behavior");
///Exhaust Fan Power-on behavior
public SelectEntity ExhaustFanStartUpBehavior => new(_haContext, "select.exhaust_fan_start_up_behavior");
///Fridge Power-on behavior
public SelectEntity FridgeStartUpBehavior => new(_haContext, "select.fridge_start_up_behavior");
///Heating Relay Far Power-on behavior
public SelectEntity HeatingStartUpBehavior => new(_haContext, "select.heating_start_up_behavior");
///Heating Relay Bathroom Power-on behavior
public SelectEntity HeatingStartUpBehavior2 => new(_haContext, "select.heating_start_up_behavior_2");
///Heating Relay Middle Power-on behavior
public SelectEntity HeatingStartUpBehavior3 => new(_haContext, "select.heating_start_up_behavior_3");
///Main Home Display unit
public SelectEntity MainHomeDisplayUnit => new(_haContext, "select.main_home_display_unit");
///Induction Startup
public SelectEntity Sonoff10018909cbStartup => new(_haContext, "select.sonoff_10018909cb_startup");
///AC
public SelectEntity Sonoff100215c5341 => new(_haContext, "select.sonoff_100215c534_1");
///Lamp
public SelectEntity Sonoff100222f7be1 => new(_haContext, "select.sonoff_100222f7be_1");
///Christmas tree
public SelectEntity Sonoff100222ff361 => new(_haContext, "select.sonoff_100222ff36_1");
///Stair lamps
public SelectEntity Sonoff100222ff631 => new(_haContext, "select.sonoff_100222ff63_1");
///Po laiptais
public SelectEntity Sonoff1002230a481 => new(_haContext, "select.sonoff_1002230a48_1");
///Boiler
public SelectEntity Sonoff1002230e321 => new(_haContext, "select.sonoff_1002230e32_1");
///Washer
public SelectEntity Sonoff100255ead81 => new(_haContext, "select.sonoff_100255ead8_1");
///Dryer
public SelectEntity Sonoff100255f06c1 => new(_haContext, "select.sonoff_100255f06c_1");
///Cat Christmas lamps
public SelectEntity Sonoff100255f7381 => new(_haContext, "select.sonoff_100255f738_1");
///Dehumidifier
public SelectEntity Sonoff10025606e61 => new(_haContext, "select.sonoff_10025606e6_1");
///Salt Lamp
public SelectEntity Sonoff10025609ce1 => new(_haContext, "select.sonoff_10025609ce_1");
///Home meter
public SelectEntity Sonoff100267d63f1 => new(_haContext, "select.sonoff_100267d63f_1");
///LED power Power-on behavior
public SelectEntity SonoffS60zbtpfStartUpBehavior => new(_haContext, "select.sonoff_s60zbtpf_start_up_behavior");
///Air Purifirier Power-on behavior
public SelectEntity SonoffS60zbtpfStartUpBehavior2 => new(_haContext, "select.sonoff_s60zbtpf_start_up_behavior_2");
///Network Infra Power-on behavior
public SelectEntity TempStartUpBehavior => new(_haContext, "select.temp_start_up_behavior");
///TV Power-on behavior
public SelectEntity TvStartUpBehavior => new(_haContext, "select.tv_start_up_behavior");
///Washing room Display unit
public SelectEntity WashingRoomDisplayUnit => new(_haContext, "select.washing_room_display_unit");
}
public partial class SensorEntities
{
private readonly IHaContext _haContext;
public SensorEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all sensor entities currently registered (at runtime) in Home Assistant as SensorEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("sensor.")).Select(e => new SensorEntity(e));
/// Enumerates all non-numeric sensor entities currently registered (at runtime) in Home Assistant as SensorEntity
public IEnumerable EnumerateAllNonNumeric() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("sensor.") && !(e.EntityState?.AttributesJson?.TryGetProperty("unit_of_measurement", out _) ?? false)).Select(e => new SensorEntity(e));
/// Enumerates all numeric sensor entities currently registered (at runtime) in Home Assistant as NumericSensorEntity
public IEnumerable EnumerateAllNumeric() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("sensor.") && (e.EntityState?.AttributesJson?.TryGetProperty("unit_of_measurement", out _) ?? false)).Select(e => new NumericSensorEntity(e));
///AC status
public SensorEntity AcStatus => new(_haContext, "sensor.ac_status");
///Air Purified Status
public SensorEntity AirPurifiedStatus => new(_haContext, "sensor.air_purified_status");
///Home Assistant Air quality
public SensorEntity AirQuality => new(_haContext, "sensor.air_quality");
///Akvariumas Status
public SensorEntity AkvariumasStatus => new(_haContext, "sensor.akvariumas_status");
///Home Assistant Alarm control panels
public SensorEntity AlarmControlPanels => new(_haContext, "sensor.alarm_control_panels");
///Home Assistant Areas
public SensorEntity Areas => new(_haContext, "sensor.areas");
///Home Assistant Automations
public SensorEntity Automations => new(_haContext, "sensor.automations");
///Backup Last attempted automatic backup
public SensorEntity BackupLastAttemptedAutomaticBackup => new(_haContext, "sensor.backup_last_attempted_automatic_backup");
///Backup Last successful automatic backup
public SensorEntity BackupLastSuccessfulAutomaticBackup => new(_haContext, "sensor.backup_last_successful_automatic_backup");
///Home Assistant Binary sensors
public SensorEntity BinarySensors => new(_haContext, "sensor.binary_sensors");
///Boiler running
public SensorEntity BoilerRunning => new(_haContext, "sensor.boiler_running");
///Boiler Monitor Heating sessions today
public SensorEntity BoilermonitorSessionCount => new(_haContext, "sensor.boilermonitor_session_count");
///Boiler Monitor Boiler Monitor status
public SensorEntity BoilermonitorStatus => new(_haContext, "sensor.boilermonitor_status");
///Boiler Monitor Boiler water ready
public SensorEntity BoilermonitorWaterReady => new(_haContext, "sensor.boilermonitor_water_ready");
///Home Assistant Buttons
public SensorEntity Buttons => new(_haContext, "sensor.buttons");
///Home Assistant Calendars
public SensorEntity Calendars => new(_haContext, "sensor.calendars");
///Home Assistant Cameras
public SensorEntity Cameras => new(_haContext, "sensor.cameras");
///Home Assistant Climate
public SensorEntity Climate => new(_haContext, "sensor.climate");
///Home Assistant Covers
public SensorEntity Covers => new(_haContext, "sensor.covers");
///Home Assistant Custom integrations
public SensorEntity CustomIntegrations => new(_haContext, "sensor.custom_integrations");
///Home Assistant Dates
public SensorEntity Dates => new(_haContext, "sensor.dates");
///Home Assistant Date/times
public SensorEntity Datetimes => new(_haContext, "sensor.datetimes");
///Dehumidifier status
public SensorEntity DehumidifierStatus => new(_haContext, "sensor.dehumidifier_status");
///Home Assistant Device trackers
public SensorEntity DeviceTrackers => new(_haContext, "sensor.device_trackers");
///Home Assistant Devices
public SensorEntity Devices => new(_haContext, "sensor.devices");
///Dishwasher status
public SensorEntity DishwasherStatus => new(_haContext, "sensor.dishwasher_status");
///Dryer Status
public SensorEntity DryerStatus => new(_haContext, "sensor.dryer_status");
///Home Assistant Entities
public SensorEntity Entities => new(_haContext, "sensor.entities");
///Erika's iPhone Battery State
public SensorEntity ErikaSIphoneBatteryState => new(_haContext, "sensor.erika_s_iphone_battery_state");
///Erika's iPhone Connection Type
public SensorEntity ErikaSIphoneConnectionType => new(_haContext, "sensor.erika_s_iphone_connection_type");
///Erika's iPhone Geocoded Location
public SensorEntity ErikaSIphoneGeocodedLocation => new(_haContext, "sensor.erika_s_iphone_geocoded_location");
///Erika's iPhone SSID
public SensorEntity ErikaSIphoneSsid => new(_haContext, "sensor.erika_s_iphone_ssid");
///Home Assistant Fans
public SensorEntity Fans => new(_haContext, "sensor.fans");
///Home Assistant Operating System Newest version
public SensorEntity HomeAssistantOperatingSystemNewestVersion => new(_haContext, "sensor.home_assistant_operating_system_newest_version");
///Home Assistant Operating System Version
public SensorEntity HomeAssistantOperatingSystemVersion => new(_haContext, "sensor.home_assistant_operating_system_version");
///Home Phone Battery state
public SensorEntity HomePhoneBatteryState => new(_haContext, "sensor.home_phone_battery_state");
///Home Phone Charger type
public SensorEntity HomePhoneChargerType => new(_haContext, "sensor.home_phone_charger_type");
///Home Assistant Humidifiers
public SensorEntity Humidifiers => new(_haContext, "sensor.humidifiers");
///Home Assistant Images
public SensorEntity Images => new(_haContext, "sensor.images");
///Home Assistant Input booleans
public SensorEntity InputBooleans => new(_haContext, "sensor.input_booleans");
///Home Assistant Input buttons
public SensorEntity InputButtons => new(_haContext, "sensor.input_buttons");
///Home Assistant Input date/times
public SensorEntity InputDatetimes => new(_haContext, "sensor.input_datetimes");
///Home Assistant Input numbers
public SensorEntity InputNumbers => new(_haContext, "sensor.input_numbers");
///Home Assistant Input selects
public SensorEntity InputSelects => new(_haContext, "sensor.input_selects");
///Home Assistant Input texts
public SensorEntity InputTexts => new(_haContext, "sensor.input_texts");
///Home Assistant Integrations
public SensorEntity Integrations => new(_haContext, "sensor.integrations");
///Kaunas Noreikiskes, Lithuania Air quality index
public SensorEntity KaunasNoreikiskesLithuaniaAirQualityIndex => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_air_quality_index");
///Kaunas Noreikiskes, Lithuania Carbon monoxide
public SensorEntity KaunasNoreikiskesLithuaniaCarbonMonoxide => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_carbon_monoxide");
///Kaunas Noreikiskes, Lithuania Dominant pollutant
public SensorEntity KaunasNoreikiskesLithuaniaDominantPollutant => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_dominant_pollutant");
///Kaunas Noreikiskes, Lithuania Ozone
public SensorEntity KaunasNoreikiskesLithuaniaOzone => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_ozone");
///Kaunas Noreikiskes, Lithuania PM10
public SensorEntity KaunasNoreikiskesLithuaniaPm10 => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_pm10");
///Kaunas Noreikiskes, Lithuania PM2.5
public SensorEntity KaunasNoreikiskesLithuaniaPm25 => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_pm2_5");
///Kaunas Noreikiskes, Lithuania Sulphur dioxide
public SensorEntity KaunasNoreikiskesLithuaniaSulphurDioxide => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_sulphur_dioxide");
///Home Assistant Lights
public SensorEntity Lights => new(_haContext, "sensor.lights");
///Home Assistant Locks
public SensorEntity Locks => new(_haContext, "sensor.locks");
///Marius Watch Activity state
public SensorEntity MariusWatchActivityState => new(_haContext, "sensor.marius_watch_activity_state");
///Marius Watch Battery health
public SensorEntity MariusWatchBatteryHealth => new(_haContext, "sensor.marius_watch_battery_health");
///Marius Watch Battery state
public SensorEntity MariusWatchBatteryState => new(_haContext, "sensor.marius_watch_battery_state");
///Marius Watch Charger type
public SensorEntity MariusWatchChargerType => new(_haContext, "sensor.marius_watch_charger_type");
///Marius Watch Network type
public SensorEntity MariusWatchNetworkType => new(_haContext, "sensor.marius_watch_network_type");
///Home Assistant Media players
public SensorEntity MediaPlayers => new(_haContext, "sensor.media_players");
///Nord Pool LT Last updated
public SensorEntity NordPoolLtLastUpdated => new(_haContext, "sensor.nord_pool_lt_last_updated");
///Boiler water ready
public SensorEntity NordpoolBoilerWaterReady => new(_haContext, "sensor.nordpool_boiler_water_ready");
///NordPool NordPool cheapest boiler intervals
public SensorEntity NordpoolCheapestIntervals => new(_haContext, "sensor.nordpool_cheapest_intervals");
///NordPool NordPool last update time
public SensorEntity NordpoolLastUpdateTime => new(_haContext, "sensor.nordpool_last_update_time");
///NordPool NordPool today prices
public SensorEntity NordpoolTodayPrices => new(_haContext, "sensor.nordpool_today_prices");
///NordPool NordPool today and tomorrow prices
public SensorEntity NordpoolTodayTomorrowPrices => new(_haContext, "sensor.nordpool_today_tomorrow_prices");
///NordPool NordPool tomorrow prices
public SensorEntity NordpoolTomorrowPrices => new(_haContext, "sensor.nordpool_tomorrow_prices");
///Home Assistant Numbers
public SensorEntity Numbers => new(_haContext, "sensor.numbers");
///Home Assistant Persistent notifications
public SensorEntity PersistentNotifications => new(_haContext, "sensor.persistent_notifications");
///Home Assistant Persons
public SensorEntity Persons => new(_haContext, "sensor.persons");
///Home Assistant Remotes
public SensorEntity Remotes => new(_haContext, "sensor.remotes");
///Home Assistant Scenes
public SensorEntity Scenes => new(_haContext, "sensor.scenes");
///Home Assistant Scripts
public SensorEntity Scripts => new(_haContext, "sensor.scripts");
///Home Assistant Selects
public SensorEntity Selects => new(_haContext, "sensor.selects");
///Home Assistant Sensors
public SensorEntity Sensors => new(_haContext, "sensor.sensors");
///Home Assistant Sirens
public SensorEntity Sirens => new(_haContext, "sensor.sirens");
///System Monitor Last boot
public SensorEntity SystemMonitorLastBoot => new(_haContext, "sensor.system_monitor_last_boot");
///Marius Phone Battery health
public SensorEntity SmS936bBatteryHealth => new(_haContext, "sensor.sm_s936b_battery_health");
///Marius Phone Battery state
public SensorEntity SmS936bBatteryState => new(_haContext, "sensor.sm_s936b_battery_state");
///Marius Phone Detected activity
public SensorEntity SmS936bDetectedActivity => new(_haContext, "sensor.sm_s936b_detected_activity");
///Marius Phone Geocoded location
public SensorEntity SmS936bGeocodedLocation => new(_haContext, "sensor.sm_s936b_geocoded_location");
///Marius Phone Network type
public SensorEntity SmS936bNetworkType => new(_haContext, "sensor.sm_s936b_network_type");
///Marius Phone Phone state
public SensorEntity SmS936bPhoneState => new(_haContext, "sensor.sm_s936b_phone_state");
///Marius Phone SIM 1
public SensorEntity SmS936bSim1 => new(_haContext, "sensor.sm_s936b_sim_1");
///Marius Phone Wi-Fi connection
public SensorEntity SmS936bWiFiConnection => new(_haContext, "sensor.sm_s936b_wi_fi_connection");
///Main Device Connection
public SensorEntity Sonoff1002479627Connection => new(_haContext, "sensor.sonoff_1002479627_connection");
///Home Assistant Speech-to-text
public SensorEntity Stt => new(_haContext, "sensor.stt");
///Sun Next dawn
public SensorEntity SunNextDawn => new(_haContext, "sensor.sun_next_dawn");
///Sun Next dusk
public SensorEntity SunNextDusk => new(_haContext, "sensor.sun_next_dusk");
///Sun Next midnight
public SensorEntity SunNextMidnight => new(_haContext, "sensor.sun_next_midnight");
///Sun Next noon
public SensorEntity SunNextNoon => new(_haContext, "sensor.sun_next_noon");
///Sun Next rising
public SensorEntity SunNextRising => new(_haContext, "sensor.sun_next_rising");
///Sun Next setting
public SensorEntity SunNextSetting => new(_haContext, "sensor.sun_next_setting");
///Home Assistant Suns
public SensorEntity Suns => new(_haContext, "sensor.suns");
///Home Assistant Switches
public SensorEntity Switches => new(_haContext, "sensor.switches");
///Home Assistant Texts
public SensorEntity Texts => new(_haContext, "sensor.texts");
///Home Assistant Times
public SensorEntity Times => new(_haContext, "sensor.times");
///Home Assistant Text-to-speech
public SensorEntity Tts => new(_haContext, "sensor.tts");
///Home Assistant Update
public SensorEntity Update => new(_haContext, "sensor.update");
///Home Assistant Vacuums
public SensorEntity Vacuums => new(_haContext, "sensor.vacuums");
///Washer Status
public SensorEntity WasherStatus => new(_haContext, "sensor.washer_status");
///Home Assistant Water heaters
public SensorEntity WaterHeaters => new(_haContext, "sensor.water_heaters");
///Home Assistant Weather
public SensorEntity Weather => new(_haContext, "sensor.weather");
///Home Assistant Zones
public SensorEntity Zones => new(_haContext, "sensor.zones");
///Repairs Active
public NumericSensorEntity ActiveIssues => new(_haContext, "sensor.active_issues");
///Akvariumas Power
public NumericSensorEntity AkvariumasPower => new(_haContext, "sensor.akvariumas_power");
///Akvariumas Voltage
public NumericSensorEntity AkvariumasVoltage => new(_haContext, "sensor.akvariumas_voltage");
///Aquarium leak sensor Battery
public NumericSensorEntity AquariumLeakSensorBattery => new(_haContext, "sensor.aquarium_leak_sensor_battery");
///3D print Power
public NumericSensorEntity BalkonyLapsPower => new(_haContext, "sensor.balkony_laps_power");
///3D print Voltage
public NumericSensorEntity BalkonyLapsVoltage => new(_haContext, "sensor.balkony_laps_voltage");
///Bathroom Battery
public NumericSensorEntity BathroomBattery => new(_haContext, "sensor.bathroom_battery");
///Bathroom Humidity
public NumericSensorEntity BathroomHumidity => new(_haContext, "sensor.bathroom_humidity");
///Bathroom Temperature
public NumericSensorEntity BathroomTemperature => new(_haContext, "sensor.bathroom_temperature");
///Bedroom Battery
public NumericSensorEntity BedroomBattery => new(_haContext, "sensor.bedroom_battery");
///Bedroom Humidity
public NumericSensorEntity BedroomHumidity => new(_haContext, "sensor.bedroom_humidity");
///Bedroom Temperature
public NumericSensorEntity BedroomTemperature => new(_haContext, "sensor.bedroom_temperature");
///Boiler Moisture Battery
public NumericSensorEntity BoilerMoistureBattery => new(_haContext, "sensor.boiler_moisture_battery");
///Boiler run time
public NumericSensorEntity BoilerRunTime => new(_haContext, "sensor.boiler_run_time");
///Boiler room Temp Battery
public NumericSensorEntity BoilerTempBattery => new(_haContext, "sensor.boiler_temp_battery");
///Boiler room Temp Humidity
public NumericSensorEntity BoilerTempHumidity => new(_haContext, "sensor.boiler_temp_humidity");
///Boiler room Temp Temperature
public NumericSensorEntity BoilerTempTemperature => new(_haContext, "sensor.boiler_temp_temperature");
///Boiler Monitor Budget usage
public NumericSensorEntity BoilermonitorBudgetPercentage => new(_haContext, "sensor.boilermonitor_budget_percentage");
///Boiler Monitor Remaining budget time
public NumericSensorEntity BoilermonitorRemainingTime => new(_haContext, "sensor.boilermonitor_remaining_time");
///Boiler Monitor Today runtime
public NumericSensorEntity BoilermonitorTodayRuntime => new(_haContext, "sensor.boilermonitor_today_runtime");
///Cat Area Temp Battery
public NumericSensorEntity CatAreaTempBattery => new(_haContext, "sensor.cat_area_temp_battery");
///Cat Area Temp Humidity
public NumericSensorEntity CatAreaTempHumidity => new(_haContext, "sensor.cat_area_temp_humidity");
///Cat Area Temp Temperature
public NumericSensorEntity CatAreaTempTemperature => new(_haContext, "sensor.cat_area_temp_temperature");
///Current SetPoint
public NumericSensorEntity CurrentSetpoint => new(_haContext, "sensor.current_setpoint");
///Dehumidifier running time
public NumericSensorEntity DehumidifierRunningTime => new(_haContext, "sensor.dehumidifier_running_time");
///Dishwasher Power
public NumericSensorEntity DishwasherPower => new(_haContext, "sensor.dishwasher_power");
///Dishwasher Voltage
public NumericSensorEntity DishwasherVoltage => new(_haContext, "sensor.dishwasher_voltage");
///Erika's iPhone Battery Level
public NumericSensorEntity ErikaSIphoneBatteryLevel => new(_haContext, "sensor.erika_s_iphone_battery_level");
///Fridge Power
public NumericSensorEntity FridgePower => new(_haContext, "sensor.fridge_power");
///Fridge Voltage
public NumericSensorEntity FridgeVoltage => new(_haContext, "sensor.fridge_voltage");
///Home Phone Battery level
public NumericSensorEntity HomePhoneBatteryLevel => new(_haContext, "sensor.home_phone_battery_level");
///Repairs Ignored
public NumericSensorEntity IgnoredIssues => new(_haContext, "sensor.ignored_issues");
///Repairs Total
public NumericSensorEntity Issues => new(_haContext, "sensor.issues");
///Kaunas Noreikiskes, Lithuania Humidity
public NumericSensorEntity KaunasNoreikiskesLithuaniaHumidity => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_humidity");
///Kaunas Noreikiskes, Lithuania Pressure
public NumericSensorEntity KaunasNoreikiskesLithuaniaPressure => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_pressure");
///Kaunas Noreikiskes, Lithuania Temperature
public NumericSensorEntity KaunasNoreikiskesLithuaniaTemperature => new(_haContext, "sensor.kaunas_noreikiskes_lithuania_temperature");
///Main Home Battery
public NumericSensorEntity MainHomeBattery => new(_haContext, "sensor.main_home_battery");
///Main Home Humidity
public NumericSensorEntity MainHomeHumidity => new(_haContext, "sensor.main_home_humidity");
///Main Home Temperature
public NumericSensorEntity MainHomeTemperature => new(_haContext, "sensor.main_home_temperature");
///Marius Watch Battery level
public NumericSensorEntity MariusWatchBatteryLevel => new(_haContext, "sensor.marius_watch_battery_level");
///Marius Watch Battery temperature
public NumericSensorEntity MariusWatchBatteryTemperature => new(_haContext, "sensor.marius_watch_battery_temperature");
///Marius Watch Daily steps
public NumericSensorEntity MariusWatchDailySteps => new(_haContext, "sensor.marius_watch_daily_steps");
///Marius Watch Heart rate
public NumericSensorEntity MariusWatchHeartRate => new(_haContext, "sensor.marius_watch_heart_rate");
///Marius Watch Light sensor
public NumericSensorEntity MariusWatchLightSensor => new(_haContext, "sensor.marius_watch_light_sensor");
///Marius Watch Steps sensor
public NumericSensorEntity MariusWatchStepsSensor => new(_haContext, "sensor.marius_watch_steps_sensor");
///NetDaemon V6 (.NET 10) CPU percent
public NumericSensorEntity NetdaemonV6Net10CpuPercent => new(_haContext, "sensor.netdaemon_v6_net_10_cpu_percent");
///NetDaemon V6 (.NET 10) Memory percent
public NumericSensorEntity NetdaemonV6Net10MemoryPercent => new(_haContext, "sensor.netdaemon_v6_net_10_memory_percent");
///Nord Pool LT Current price
public NumericSensorEntity NordPoolLtCurrentPrice => new(_haContext, "sensor.nord_pool_lt_current_price");
///Nord Pool LT Daily average
public NumericSensorEntity NordPoolLtDailyAverage => new(_haContext, "sensor.nord_pool_lt_daily_average");
///Nord Pool LT Highest price
public NumericSensorEntity NordPoolLtHighestPrice => new(_haContext, "sensor.nord_pool_lt_highest_price");
///Nord Pool LT Lowest price
public NumericSensorEntity NordPoolLtLowestPrice => new(_haContext, "sensor.nord_pool_lt_lowest_price");
///NordPool NordPool current price
public NumericSensorEntity NordpoolCurrentPrice => new(_haContext, "sensor.nordpool_current_price");
///Nordpool price
public NumericSensorEntity NordpoolPrice => new(_haContext, "sensor.nordpool_price");
///System Monitor Disk free /
public NumericSensorEntity SystemMonitorDiskFree => new(_haContext, "sensor.system_monitor_disk_free");
///System Monitor Disk usage /
public NumericSensorEntity SystemMonitorDiskUsage => new(_haContext, "sensor.system_monitor_disk_usage");
///System Monitor Disk use /
public NumericSensorEntity SystemMonitorDiskUse => new(_haContext, "sensor.system_monitor_disk_use");
///System Monitor Memory usage
public NumericSensorEntity SystemMonitorMemoryUsage => new(_haContext, "sensor.system_monitor_memory_usage");
///System Monitor Network in end0
public NumericSensorEntity SystemMonitorNetworkInEnd0 => new(_haContext, "sensor.system_monitor_network_in_end0");
///System Monitor Network throughput in end0
public NumericSensorEntity SystemMonitorNetworkThroughputInEnd0 => new(_haContext, "sensor.system_monitor_network_throughput_in_end0");
///System Monitor Processor temperature
public NumericSensorEntity SystemMonitorProcessorTemperature => new(_haContext, "sensor.system_monitor_processor_temperature");
///System Monitor Processor use
public NumericSensorEntity SystemMonitorProcessorUse => new(_haContext, "sensor.system_monitor_processor_use");
///System Monitor Swap usage
public NumericSensorEntity SystemMonitorSwapUsage => new(_haContext, "sensor.system_monitor_swap_usage");
///Marius Phone Battery level
public NumericSensorEntity SmS936bBatteryLevel => new(_haContext, "sensor.sm_s936b_battery_level");
///Marius Phone Battery power
public NumericSensorEntity SmS936bBatteryPower => new(_haContext, "sensor.sm_s936b_battery_power");
///Marius Phone Battery temperature
public NumericSensorEntity SmS936bBatteryTemperature => new(_haContext, "sensor.sm_s936b_battery_temperature");
///Marius Phone Light sensor
public NumericSensorEntity SmS936bLightSensor => new(_haContext, "sensor.sm_s936b_light_sensor");
///Marius Phone Pressure sensor
public NumericSensorEntity SmS936bPressureSensor => new(_haContext, "sensor.sm_s936b_pressure_sensor");
///Marius Phone Remaining charge time
public NumericSensorEntity SmS936bRemainingChargeTime => new(_haContext, "sensor.sm_s936b_remaining_charge_time");
///Marius Phone Signal strength (SIM 1)
public NumericSensorEntity SmS936bSignalStrengthSim1 => new(_haContext, "sensor.sm_s936b_signal_strength_sim_1");
///Marius Phone Sleep confidence
public NumericSensorEntity SmS936bSleepConfidence => new(_haContext, "sensor.sm_s936b_sleep_confidence");
///Marius Phone Sleep segment
public NumericSensorEntity SmS936bSleepSegment => new(_haContext, "sensor.sm_s936b_sleep_segment");
///Marius Phone Steps sensor
public NumericSensorEntity SmS936bStepsSensor => new(_haContext, "sensor.sm_s936b_steps_sensor");
///Induction Power
public NumericSensorEntity Sonoff10018909cbPower => new(_haContext, "sensor.sonoff_10018909cb_power");
///Induction Voltage
public NumericSensorEntity Sonoff10018909cbVoltage => new(_haContext, "sensor.sonoff_10018909cb_voltage");
///AC Energy Day Supply
public NumericSensorEntity Sonoff100215c534EnergyDaySupply => new(_haContext, "sensor.sonoff_100215c534_energy_day_supply");
///AC Energy Month Supply
public NumericSensorEntity Sonoff100215c534EnergyMonthSupply => new(_haContext, "sensor.sonoff_100215c534_energy_month_supply");
///AC Power
public NumericSensorEntity Sonoff100215c534Power => new(_haContext, "sensor.sonoff_100215c534_power");
///AC Power Supply
public NumericSensorEntity Sonoff100215c534PowerSupply => new(_haContext, "sensor.sonoff_100215c534_power_supply");
///AC Voltage
public NumericSensorEntity Sonoff100215c534Voltage => new(_haContext, "sensor.sonoff_100215c534_voltage");
///Lamp Energy Day Supply
public NumericSensorEntity Sonoff100222f7beEnergyDaySupply => new(_haContext, "sensor.sonoff_100222f7be_energy_day_supply");
///Lamp Energy Month Supply
public NumericSensorEntity Sonoff100222f7beEnergyMonthSupply => new(_haContext, "sensor.sonoff_100222f7be_energy_month_supply");
///Lamp Power
public NumericSensorEntity Sonoff100222f7bePower => new(_haContext, "sensor.sonoff_100222f7be_power");
///Lamp Power Supply
public NumericSensorEntity Sonoff100222f7bePowerSupply => new(_haContext, "sensor.sonoff_100222f7be_power_supply");
///Christmas tree Energy Day Supply
public NumericSensorEntity Sonoff100222ff36EnergyDaySupply => new(_haContext, "sensor.sonoff_100222ff36_energy_day_supply");
///Christmas tree Energy Month Supply
public NumericSensorEntity Sonoff100222ff36EnergyMonthSupply => new(_haContext, "sensor.sonoff_100222ff36_energy_month_supply");
///Christmas tree Power
public NumericSensorEntity Sonoff100222ff36Power => new(_haContext, "sensor.sonoff_100222ff36_power");
///Christmas tree Power Supply
public NumericSensorEntity Sonoff100222ff36PowerSupply => new(_haContext, "sensor.sonoff_100222ff36_power_supply");
///Christmas tree Voltage
public NumericSensorEntity Sonoff100222ff36Voltage => new(_haContext, "sensor.sonoff_100222ff36_voltage");
///Stair lamps Energy Day Supply
public NumericSensorEntity Sonoff100222ff63EnergyDaySupply => new(_haContext, "sensor.sonoff_100222ff63_energy_day_supply");
///Stair lamps Energy Month Supply
public NumericSensorEntity Sonoff100222ff63EnergyMonthSupply => new(_haContext, "sensor.sonoff_100222ff63_energy_month_supply");
///Stair lamps Power
public NumericSensorEntity Sonoff100222ff63Power => new(_haContext, "sensor.sonoff_100222ff63_power");
///Stair lamps Power Supply
public NumericSensorEntity Sonoff100222ff63PowerSupply => new(_haContext, "sensor.sonoff_100222ff63_power_supply");
///Po laiptais Energy Day Supply
public NumericSensorEntity Sonoff1002230a48EnergyDaySupply => new(_haContext, "sensor.sonoff_1002230a48_energy_day_supply");
///Po laiptais Energy Month Supply
public NumericSensorEntity Sonoff1002230a48EnergyMonthSupply => new(_haContext, "sensor.sonoff_1002230a48_energy_month_supply");
///Po laiptais Power
public NumericSensorEntity Sonoff1002230a48Power => new(_haContext, "sensor.sonoff_1002230a48_power");
///Po laiptais Power Supply
public NumericSensorEntity Sonoff1002230a48PowerSupply => new(_haContext, "sensor.sonoff_1002230a48_power_supply");
///Po laiptais Voltage
public NumericSensorEntity Sonoff1002230a48Voltage => new(_haContext, "sensor.sonoff_1002230a48_voltage");
///Boiler Energy Day Supply
public NumericSensorEntity Sonoff1002230e32EnergyDaySupply => new(_haContext, "sensor.sonoff_1002230e32_energy_day_supply");
///Boiler Energy Month Supply
public NumericSensorEntity Sonoff1002230e32EnergyMonthSupply => new(_haContext, "sensor.sonoff_1002230e32_energy_month_supply");
///Boiler Power
public NumericSensorEntity Sonoff1002230e32Power => new(_haContext, "sensor.sonoff_1002230e32_power");
///Boiler Power Supply
public NumericSensorEntity Sonoff1002230e32PowerSupply => new(_haContext, "sensor.sonoff_1002230e32_power_supply");
///Boiler Voltage
public NumericSensorEntity Sonoff1002230e32Voltage => new(_haContext, "sensor.sonoff_1002230e32_voltage");
///Washer Energy Day Supply
public NumericSensorEntity Sonoff100255ead8EnergyDaySupply => new(_haContext, "sensor.sonoff_100255ead8_energy_day_supply");
///Washer Energy Month Supply
public NumericSensorEntity Sonoff100255ead8EnergyMonthSupply => new(_haContext, "sensor.sonoff_100255ead8_energy_month_supply");
///Washer Power
public NumericSensorEntity Sonoff100255ead8Power => new(_haContext, "sensor.sonoff_100255ead8_power");
///Washer Power Supply
public NumericSensorEntity Sonoff100255ead8PowerSupply => new(_haContext, "sensor.sonoff_100255ead8_power_supply");
///Washer Voltage
public NumericSensorEntity Sonoff100255ead8Voltage => new(_haContext, "sensor.sonoff_100255ead8_voltage");
///Dryer Energy Day Supply
public NumericSensorEntity Sonoff100255f06cEnergyDaySupply => new(_haContext, "sensor.sonoff_100255f06c_energy_day_supply");
///Dryer Energy Month Supply
public NumericSensorEntity Sonoff100255f06cEnergyMonthSupply => new(_haContext, "sensor.sonoff_100255f06c_energy_month_supply");
///Dryer Power
public NumericSensorEntity Sonoff100255f06cPower => new(_haContext, "sensor.sonoff_100255f06c_power");
///Dryer Power Supply
public NumericSensorEntity Sonoff100255f06cPowerSupply => new(_haContext, "sensor.sonoff_100255f06c_power_supply");
///Dryer Voltage
public NumericSensorEntity Sonoff100255f06cVoltage => new(_haContext, "sensor.sonoff_100255f06c_voltage");
///Cat Christmas lamps Energy Day Supply
public NumericSensorEntity Sonoff100255f738EnergyDaySupply => new(_haContext, "sensor.sonoff_100255f738_energy_day_supply");
///Cat Christmas lamps Energy Month Supply
public NumericSensorEntity Sonoff100255f738EnergyMonthSupply => new(_haContext, "sensor.sonoff_100255f738_energy_month_supply");
///Cat Christmas lamps Power
public NumericSensorEntity Sonoff100255f738Power => new(_haContext, "sensor.sonoff_100255f738_power");
///Cat Christmas lamps Power Supply
public NumericSensorEntity Sonoff100255f738PowerSupply => new(_haContext, "sensor.sonoff_100255f738_power_supply");
///Dehumidifier Energy Day Supply
public NumericSensorEntity Sonoff10025606e6EnergyDaySupply => new(_haContext, "sensor.sonoff_10025606e6_energy_day_supply");
///Dehumidifier Energy Month Supply
public NumericSensorEntity Sonoff10025606e6EnergyMonthSupply => new(_haContext, "sensor.sonoff_10025606e6_energy_month_supply");
///Dehumidifier Power
public NumericSensorEntity Sonoff10025606e6Power => new(_haContext, "sensor.sonoff_10025606e6_power");
///Dehumidifier Power Supply
public NumericSensorEntity Sonoff10025606e6PowerSupply => new(_haContext, "sensor.sonoff_10025606e6_power_supply");
///Dehumidifier Voltage
public NumericSensorEntity Sonoff10025606e6Voltage => new(_haContext, "sensor.sonoff_10025606e6_voltage");
///Salt Lamp Energy Day Supply
public NumericSensorEntity Sonoff10025609ceEnergyDaySupply => new(_haContext, "sensor.sonoff_10025609ce_energy_day_supply");
///Salt Lamp Energy Month Supply
public NumericSensorEntity Sonoff10025609ceEnergyMonthSupply => new(_haContext, "sensor.sonoff_10025609ce_energy_month_supply");
///Salt Lamp Power
public NumericSensorEntity Sonoff10025609cePower => new(_haContext, "sensor.sonoff_10025609ce_power");
///Salt Lamp Power Supply
public NumericSensorEntity Sonoff10025609cePowerSupply => new(_haContext, "sensor.sonoff_10025609ce_power_supply");
///Salt Lamp Voltage
public NumericSensorEntity Sonoff10025609ceVoltage => new(_haContext, "sensor.sonoff_10025609ce_voltage");
///Home meter Current
public NumericSensorEntity Sonoff100267d63fCurrent => new(_haContext, "sensor.sonoff_100267d63f_current");
///Home meter Energy
public NumericSensorEntity Sonoff100267d63fEnergy => new(_haContext, "sensor.sonoff_100267d63f_energy");
///Home meter Energy Day
public NumericSensorEntity Sonoff100267d63fEnergyDay => new(_haContext, "sensor.sonoff_100267d63f_energy_day");
///Home meter Energy Day Supply
public NumericSensorEntity Sonoff100267d63fEnergyDaySupply => new(_haContext, "sensor.sonoff_100267d63f_energy_day_supply");
///Home meter Energy Month
public NumericSensorEntity Sonoff100267d63fEnergyMonth => new(_haContext, "sensor.sonoff_100267d63f_energy_month");
///Home meter Energy Month Supply
public NumericSensorEntity Sonoff100267d63fEnergyMonthSupply => new(_haContext, "sensor.sonoff_100267d63f_energy_month_supply");
///Total Home Power Usage
public NumericSensorEntity Sonoff100267d63fPower => new(_haContext, "sensor.sonoff_100267d63f_power");
///Home meter Power Supply
public NumericSensorEntity Sonoff100267d63fPowerSupply => new(_haContext, "sensor.sonoff_100267d63f_power_supply");
///Home meter Voltage
public NumericSensorEntity Sonoff100267d63fVoltage => new(_haContext, "sensor.sonoff_100267d63f_voltage");
///Outside Battery
public NumericSensorEntity SonoffA4800f07b4Battery => new(_haContext, "sensor.sonoff_a4800f07b4_battery");
///Outside Humidity
public NumericSensorEntity SonoffA4800f07b4Humidity => new(_haContext, "sensor.sonoff_a4800f07b4_humidity");
///Outside Temperature
public NumericSensorEntity SonoffA4800f07b4Temperature => new(_haContext, "sensor.sonoff_a4800f07b4_temperature");
///LED power Power
public NumericSensorEntity SonoffS60zbtpfPower => new(_haContext, "sensor.sonoff_s60zbtpf_power");
///Air Purifirier Power
public NumericSensorEntity SonoffS60zbtpfPower2 => new(_haContext, "sensor.sonoff_s60zbtpf_power_2");
///LED power Voltage
public NumericSensorEntity SonoffS60zbtpfVoltage => new(_haContext, "sensor.sonoff_s60zbtpf_voltage");
///Air Purifirier Voltage
public NumericSensorEntity SonoffS60zbtpfVoltage2 => new(_haContext, "sensor.sonoff_s60zbtpf_voltage_2");
///Network Infra Power
public NumericSensorEntity TempPower => new(_haContext, "sensor.temp_power");
///Network Infra Voltage
public NumericSensorEntity TempVoltage => new(_haContext, "sensor.temp_voltage");
///Total KWH
public NumericSensorEntity TotalKwh => new(_haContext, "sensor.total_kwh");
///Total sensors
public NumericSensorEntity TotalPower => new(_haContext, "sensor.total_power");
///TV Power
public NumericSensorEntity TvPower => new(_haContext, "sensor.tv_power");
///TV Voltage
public NumericSensorEntity TvVoltage => new(_haContext, "sensor.tv_voltage");
///Washing room Battery
public NumericSensorEntity WashingRoomBattery => new(_haContext, "sensor.washing_room_battery");
///Washing room Humidity
public NumericSensorEntity WashingRoomHumidity => new(_haContext, "sensor.washing_room_humidity");
///Washing room Temperature
public NumericSensorEntity WashingRoomTemperature => new(_haContext, "sensor.washing_room_temperature");
///eCO2
public NumericSensorEntity WellbeingAirPurifier2Eco2 => new(_haContext, "sensor.wellbeing_air_purifier_2_eco2");
///Fresh 360 filter Life
public NumericSensorEntity WellbeingAirPurifier2Filterlife => new(_haContext, "sensor.wellbeing_air_purifier_2_filterlife");
///Humidity
public NumericSensorEntity WellbeingAirPurifier2Humidity => new(_haContext, "sensor.wellbeing_air_purifier_2_humidity");
///PM1
public NumericSensorEntity WellbeingAirPurifier2Pm1 => new(_haContext, "sensor.wellbeing_air_purifier_2_pm1");
///PM10
public NumericSensorEntity WellbeingAirPurifier2Pm10 => new(_haContext, "sensor.wellbeing_air_purifier_2_pm10");
///PM2.5
public NumericSensorEntity WellbeingAirPurifier2Pm25 => new(_haContext, "sensor.wellbeing_air_purifier_2_pm2_5");
///Temperature
public NumericSensorEntity WellbeingAirPurifier2Temp => new(_haContext, "sensor.wellbeing_air_purifier_2_temp");
///TVOC
public NumericSensorEntity WellbeingAirPurifier2Tvoc => new(_haContext, "sensor.wellbeing_air_purifier_2_tvoc");
///Mode
public NumericSensorEntity WellbeingAirPurifier2Workmode => new(_haContext, "sensor.wellbeing_air_purifier_2_workmode");
}
public partial class SunEntities
{
private readonly IHaContext _haContext;
public SunEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all sun entities currently registered (at runtime) in Home Assistant as SunEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("sun.")).Select(e => new SunEntity(e));
///Sun
public SunEntity Sun => new(_haContext, "sun.sun");
}
public partial class SwitchEntities
{
private readonly IHaContext _haContext;
public SwitchEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all switch entities currently registered (at runtime) in Home Assistant as SwitchEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("switch.")).Select(e => new SwitchEntity(e));
///AC On/Off
public SwitchEntity AcOnOff => new(_haContext, "switch.ac_on_off");
///Akvariumas
public SwitchEntity Akvariumas => new(_haContext, "switch.akvariumas");
///3D print
public SwitchEntity BalkonyLaps => new(_haContext, "switch.balkony_laps");
///Boiler Monitor Override budget enforcement
public SwitchEntity BoilermonitorBudgetOverride => new(_haContext, "switch.boilermonitor_budget_override");
///Boiler Monitor Automatic boiler control
public SwitchEntity BoilermonitorAutoManagement => new(_haContext, "switch.boilermonitor_auto_management");
///Boiler Monitor Skip price cap, heat until ready
public SwitchEntity BoilermonitorSkipPriceCap => new(_haContext, "switch.boilermonitor_skip_price_cap");
///Dishwasher
public SwitchEntity Dishwasher => new(_haContext, "switch.dishwasher");
///Exhaust Fan
public SwitchEntity ExhaustFan => new(_haContext, "switch.exhaust_fan");
///Fridge
public SwitchEntity Fridge => new(_haContext, "switch.fridge");
///Heating Relay Far
public SwitchEntity Heating => new(_haContext, "switch.heating");
///Heating Relay Bathroom
public SwitchEntity Heating2 => new(_haContext, "switch.heating_2");
///Heating Relay Middle
public SwitchEntity Heating3 => new(_haContext, "switch.heating_3");
///Skip price cap, heat until ready
public SwitchEntity NordpoolBoilerSkipPriceCap => new(_haContext, "switch.nordpool_boiler_skip_price_cap");
///Induction
public SwitchEntity Sonoff10018909cb => new(_haContext, "switch.sonoff_10018909cb");
///AC
public SwitchEntity Sonoff100215c534 => new(_haContext, "switch.sonoff_100215c534");
///Plant Lamp
public SwitchEntity Sonoff100222f7be => new(_haContext, "switch.sonoff_100222f7be");
///Christmas tree
public SwitchEntity Sonoff100222ff36 => new(_haContext, "switch.sonoff_100222ff36");
///Stair lamps
public SwitchEntity Sonoff100222ff63 => new(_haContext, "switch.sonoff_100222ff63");
///Po laiptais
public SwitchEntity Sonoff1002230a48 => new(_haContext, "switch.sonoff_1002230a48");
///Boiler
public SwitchEntity Sonoff1002230e32 => new(_haContext, "switch.sonoff_1002230e32");
///Washer
public SwitchEntity Sonoff100255ead8 => new(_haContext, "switch.sonoff_100255ead8");
///Dryer
public SwitchEntity Sonoff100255f06c => new(_haContext, "switch.sonoff_100255f06c");
///Cat Christmas lamps
public SwitchEntity Sonoff100255f738 => new(_haContext, "switch.sonoff_100255f738");
///Dehumidifier
public SwitchEntity Sonoff10025606e6 => new(_haContext, "switch.sonoff_10025606e6");
///Salt Lamp
public SwitchEntity Sonoff10025609ce => new(_haContext, "switch.sonoff_10025609ce");
///LED power
public SwitchEntity SonoffS60zbtpf => new(_haContext, "switch.sonoff_s60zbtpf");
///Air Purifirier
public SwitchEntity SonoffS60zbtpf2 => new(_haContext, "switch.sonoff_s60zbtpf_2");
///Network Infra
public SwitchEntity Temp => new(_haContext, "switch.temp");
///TV
public SwitchEntity Tv => new(_haContext, "switch.tv");
///Ionizer
public SwitchEntity WellbeingAirPurifier2Ionizer => new(_haContext, "switch.wellbeing_air_purifier_2_ionizer");
///Safety Lock
public SwitchEntity WellbeingAirPurifier2Safetylock => new(_haContext, "switch.wellbeing_air_purifier_2_safetylock");
///UI Light
public SwitchEntity WellbeingAirPurifier2Uilight => new(_haContext, "switch.wellbeing_air_purifier_2_uilight");
}
public partial class TextEntities
{
private readonly IHaContext _haContext;
public TextEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all text entities currently registered (at runtime) in Home Assistant as TextEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("text.")).Select(e => new TextEntity(e));
///Boiler Monitor Boiler power entity ID
public TextEntity BoilermonitorConfigPowerEntityId => new(_haContext, "text.boilermonitor_config_power_entity_id");
///Boiler Monitor Boiler switch entity ID
public TextEntity BoilermonitorConfigSwitchEntityId => new(_haContext, "text.boilermonitor_config_switch_entity_id");
}
public partial class TtsEntities
{
private readonly IHaContext _haContext;
public TtsEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all tts entities currently registered (at runtime) in Home Assistant as TtsEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("tts.")).Select(e => new TtsEntity(e));
///Google Translate en com
public TtsEntity GoogleTranslateEnCom => new(_haContext, "tts.google_translate_en_com");
}
public partial class UpdateEntities
{
private readonly IHaContext _haContext;
public UpdateEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all update entities currently registered (at runtime) in Home Assistant as UpdateEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("update.")).Select(e => new UpdateEntity(e));
///Advanced SSH & Web Terminal Update
public UpdateEntity AdvancedSshWebTerminalUpdate => new(_haContext, "update.advanced_ssh_web_terminal_update");
///Akvariumas Firmware
public UpdateEntity AkvariumasFirmware => new(_haContext, "update.akvariumas_firmware");
///apexcharts-card update
public UpdateEntity ApexchartsCardUpdate => new(_haContext, "update.apexcharts_card_update");
///Aquarium leak sensor Firmware
public UpdateEntity AquariumLeakSensorFirmware => new(_haContext, "update.aquarium_leak_sensor_firmware");
///3D print Firmware
public UpdateEntity BalkonyLapsFirmware => new(_haContext, "update.balkony_laps_firmware");
///Bathroom Firmware
public UpdateEntity BathroomFirmware => new(_haContext, "update.bathroom_firmware");
///Bedroom Firmware
public UpdateEntity BedroomFirmware => new(_haContext, "update.bedroom_firmware");
///Boiler Moisture Firmware
public UpdateEntity BoilerMoistureFirmware => new(_haContext, "update.boiler_moisture_firmware");
///Boiler room Temp Firmware
public UpdateEntity BoilerTempFirmware => new(_haContext, "update.boiler_temp_firmware");
///Cat Area Temp Firmware
public UpdateEntity CatAreaTempFirmware => new(_haContext, "update.cat_area_temp_firmware");
///Dishwasher Firmware
public UpdateEntity DishwasherFirmware => new(_haContext, "update.dishwasher_firmware");
///Electrolux Wellbeing update
public UpdateEntity ElectroluxWellbeingUpdate => new(_haContext, "update.electrolux_wellbeing_update");
///Exhaust Fan Firmware
public UpdateEntity ExhaustFanFirmware => new(_haContext, "update.exhaust_fan_firmware");
///Fridge Firmware
public UpdateEntity FridgeFirmware => new(_haContext, "update.fridge_firmware");
///Get HACS Update
public UpdateEntity GetHacsUpdate => new(_haContext, "update.get_hacs_update");
///HACS update
public UpdateEntity HacsUpdate => new(_haContext, "update.hacs_update");
///Heating Relay Far Firmware
public UpdateEntity HeatingFirmware => new(_haContext, "update.heating_firmware");
///Heating Relay Bathroom Firmware
public UpdateEntity HeatingFirmware2 => new(_haContext, "update.heating_firmware_2");
///Heating Relay Middle Firmware
public UpdateEntity HeatingFirmware3 => new(_haContext, "update.heating_firmware_3");
///Home Assistant Core Update
public UpdateEntity HomeAssistantCoreUpdate => new(_haContext, "update.home_assistant_core_update");
///Home Assistant Operating System Update
public UpdateEntity HomeAssistantOperatingSystemUpdate => new(_haContext, "update.home_assistant_operating_system_update");
///Home Assistant Supervisor Update
public UpdateEntity HomeAssistantSupervisorUpdate => new(_haContext, "update.home_assistant_supervisor_update");
///Let's Encrypt Update
public UpdateEntity LetSEncryptUpdate => new(_haContext, "update.let_s_encrypt_update");
///Local Tuya update
public UpdateEntity LocalTuyaUpdate => new(_haContext, "update.local_tuya_update");
///Main Home Firmware
public UpdateEntity MainHomeFirmware => new(_haContext, "update.main_home_firmware");
///mini-graph-card update
public UpdateEntity MiniGraphCardUpdate => new(_haContext, "update.mini_graph_card_update");
///Modern Circular Gauge update
public UpdateEntity ModernCircularGaugeUpdate => new(_haContext, "update.modern_circular_gauge_update");
///Mosquitto broker Update
public UpdateEntity MosquittoBrokerUpdate => new(_haContext, "update.mosquitto_broker_update");
///NetDaemon V6 (.NET 10) Update
public UpdateEntity NetdaemonV6Net10Update => new(_haContext, "update.netdaemon_v6_net_10_update");
///Nginx Proxy Manager Update
public UpdateEntity NginxProxyManagerUpdate => new(_haContext, "update.nginx_proxy_manager_update");
///Samba share Update
public UpdateEntity SambaShareUpdate => new(_haContext, "update.samba_share_update");
///Sonoff LAN update
public UpdateEntity SonoffLanUpdate => new(_haContext, "update.sonoff_lan_update");
///LED power Firmware
public UpdateEntity SonoffS60zbtpfFirmware => new(_haContext, "update.sonoff_s60zbtpf_firmware");
///Air Purifirier Firmware
public UpdateEntity SonoffS60zbtpfFirmware2 => new(_haContext, "update.sonoff_s60zbtpf_firmware_2");
///Spook 👻 Your homie update
public UpdateEntity SpookYourHomieUpdate => new(_haContext, "update.spook_your_homie_update");
///Studio Code Server Update
public UpdateEntity StudioCodeServerUpdate => new(_haContext, "update.studio_code_server_update");
///Network Infra Firmware
public UpdateEntity TempFirmware => new(_haContext, "update.temp_firmware");
///Tibber Graph update
public UpdateEntity TibberGraphUpdate => new(_haContext, "update.tibber_graph_update");
///TV Firmware
public UpdateEntity TvFirmware => new(_haContext, "update.tv_firmware");
///UniFi Network Application Update
public UpdateEntity UnifiNetworkApplicationUpdate => new(_haContext, "update.unifi_network_application_update");
///Vaultwarden Update
public UpdateEntity VaultwardenBitwardenUpdate => new(_haContext, "update.vaultwarden_bitwarden_update");
///Washing room Firmware
public UpdateEntity WashingRoomFirmware => new(_haContext, "update.washing_room_firmware");
///🧰 ZHA Toolkit - Service for advanced Zigbee Usage update
public UpdateEntity ZhaToolkitServiceForAdvancedZigbeeUsageUpdate => new(_haContext, "update.zha_toolkit_service_for_advanced_zigbee_usage_update");
}
public partial class WeatherEntities
{
private readonly IHaContext _haContext;
public WeatherEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all weather entities currently registered (at runtime) in Home Assistant as WeatherEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("weather.")).Select(e => new WeatherEntity(e));
///Kaunas (Žaliakalnis)
public WeatherEntity KaunasZaliakalnis => new(_haContext, "weather.kaunas_zaliakalnis");
}
public partial class ZoneEntities
{
private readonly IHaContext _haContext;
public ZoneEntities(IHaContext haContext)
{
_haContext = haContext;
}
/// Enumerates all zone entities currently registered (at runtime) in Home Assistant as ZoneEntity
public IEnumerable EnumerateAll() => _haContext.GetAllEntities().Where(e => e.EntityId.StartsWith("zone.")).Select(e => new ZoneEntity(e));
///Home
public ZoneEntity Home => new(_haContext, "zone.home");
}
public partial record LightEntity : Entity, LightAttributes>, ILightEntityCore
{
public LightEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public LightEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record LightAttributes
{
[JsonPropertyName("supported_color_modes")]
public IReadOnlyList? SupportedColorModes { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
[JsonPropertyName("color_mode")]
public string? ColorMode { get; init; }
[JsonPropertyName("min_color_temp_kelvin")]
public double? MinColorTempKelvin { get; init; }
[JsonPropertyName("max_color_temp_kelvin")]
public double? MaxColorTempKelvin { get; init; }
[JsonPropertyName("min_mireds")]
public double? MinMireds { get; init; }
[JsonPropertyName("max_mireds")]
public double? MaxMireds { get; init; }
[JsonPropertyName("brightness")]
public double? Brightness { get; init; }
[JsonPropertyName("color_temp_kelvin")]
public double? ColorTempKelvin { get; init; }
[JsonPropertyName("color_temp")]
public double? ColorTemp { get; init; }
[JsonPropertyName("hs_color")]
public IReadOnlyList? HsColor { get; init; }
[JsonPropertyName("rgb_color")]
public IReadOnlyList? RgbColor { get; init; }
[JsonPropertyName("xy_color")]
public IReadOnlyList? XyColor { get; init; }
[JsonPropertyName("entity_id")]
public IReadOnlyList? EntityId { get; init; }
[JsonPropertyName("effect_list")]
public IReadOnlyList? EffectList { get; init; }
[JsonPropertyName("color")]
public object? Color { get; init; }
[JsonPropertyName("effect")]
public object? Effect { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record MediaPlayerEntity : Entity, MediaPlayerAttributes>, IMediaPlayerEntityCore
{
public MediaPlayerEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public MediaPlayerEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record MediaPlayerAttributes
{
[JsonPropertyName("app_id")]
public string? AppId { get; init; }
[JsonPropertyName("app_name")]
public string? AppName { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
[JsonPropertyName("entity_picture_local")]
public string? EntityPictureLocal { get; init; }
[JsonPropertyName("entity_picture")]
public string? EntityPicture { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
[JsonPropertyName("volume_level")]
public double? VolumeLevel { get; init; }
[JsonPropertyName("is_volume_muted")]
public bool? IsVolumeMuted { get; init; }
[JsonPropertyName("media_content_id")]
public string? MediaContentId { get; init; }
[JsonPropertyName("media_content_type")]
public string? MediaContentType { get; init; }
[JsonPropertyName("media_duration")]
public double? MediaDuration { get; init; }
[JsonPropertyName("media_position")]
public double? MediaPosition { get; init; }
[JsonPropertyName("media_position_updated_at")]
public string? MediaPositionUpdatedAt { get; init; }
[JsonPropertyName("media_title")]
public string? MediaTitle { get; init; }
[JsonPropertyName("media_album_name")]
public string? MediaAlbumName { get; init; }
[JsonPropertyName("media_image_url")]
public string? MediaImageUrl { get; init; }
[JsonPropertyName("media_artist")]
public string? MediaArtist { get; init; }
[JsonPropertyName("sound_mode_list")]
public IReadOnlyList? SoundModeList { get; init; }
[JsonPropertyName("media_track")]
public object? MediaTrack { get; init; }
[JsonPropertyName("shuffle")]
public bool? Shuffle { get; init; }
[JsonPropertyName("repeat")]
public string? Repeat { get; init; }
[JsonPropertyName("source_list")]
public IReadOnlyList? SourceList { get; init; }
[JsonPropertyName("source")]
public string? Source { get; init; }
[JsonPropertyName("adb_response")]
public object? AdbResponse { get; init; }
[JsonPropertyName("hdmi_input")]
public object? HdmiInput { get; init; }
[JsonPropertyName("sound_mode")]
public string? SoundMode { get; init; }
[JsonPropertyName("sound_mode_raw")]
public string? SoundModeRaw { get; init; }
[JsonPropertyName("restored")]
public bool? Restored { get; init; }
}
public partial record AutomationEntity : Entity, AutomationAttributes>, IAutomationEntityCore
{
public AutomationEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public AutomationEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record AutomationAttributes
{
[JsonPropertyName("id")]
public string? Id { get; init; }
[JsonPropertyName("last_triggered")]
public string? LastTriggered { get; init; }
[JsonPropertyName("mode")]
public string? Mode { get; init; }
[JsonPropertyName("current")]
public double? Current { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record BinarySensorEntity : Entity, BinarySensorAttributes>, IBinarySensorEntityCore
{
public BinarySensorEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public BinarySensorEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record BinarySensorAttributes
{
[JsonPropertyName("entity_id")]
public string? EntityId { get; init; }
[JsonPropertyName("hysteresis")]
public double? Hysteresis { get; init; }
[JsonPropertyName("lower")]
public double? Lower { get; init; }
[JsonPropertyName("position")]
public string? Position { get; init; }
[JsonPropertyName("sensor_value")]
public double? SensorValue { get; init; }
[JsonPropertyName("type")]
public string? Type { get; init; }
[JsonPropertyName("upper")]
public double? Upper { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("integration")]
public string? Integration { get; init; }
[JsonPropertyName("capabilities")]
public IReadOnlyList? Capabilities { get; init; }
}
public partial record ButtonEntity : Entity, ButtonAttributes>, IButtonEntityCore
{
public ButtonEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public ButtonEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record ButtonAttributes
{
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
}
public partial record ClimateEntity : Entity, ClimateAttributes>, IClimateEntityCore
{
public ClimateEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public ClimateEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record ClimateAttributes
{
[JsonPropertyName("hvac_modes")]
public IReadOnlyList? HvacModes { get; init; }
[JsonPropertyName("min_temp")]
public double? MinTemp { get; init; }
[JsonPropertyName("max_temp")]
public double? MaxTemp { get; init; }
[JsonPropertyName("target_temp_step")]
public double? TargetTempStep { get; init; }
[JsonPropertyName("current_temperature")]
public double? CurrentTemperature { get; init; }
[JsonPropertyName("temperature")]
public double? Temperature { get; init; }
[JsonPropertyName("hvac_action")]
public string? HvacAction { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
[JsonPropertyName("current_humidity")]
public double? CurrentHumidity { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
}
public partial record ConversationEntity : Entity, ConversationAttributes>
{
public ConversationEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public ConversationEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record ConversationAttributes
{
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
}
public partial record CounterEntity : Entity, CounterAttributes>
{
public CounterEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public CounterEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record CounterAttributes
{
[JsonPropertyName("editable")]
public bool? Editable { get; init; }
[JsonPropertyName("initial")]
public double? Initial { get; init; }
[JsonPropertyName("step")]
public double? Step { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record DeviceTrackerEntity : Entity, DeviceTrackerAttributes>, IDeviceTrackerEntityCore
{
public DeviceTrackerEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public DeviceTrackerEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record DeviceTrackerAttributes
{
[JsonPropertyName("source_type")]
public string? SourceType { get; init; }
[JsonPropertyName("latitude")]
public double? Latitude { get; init; }
[JsonPropertyName("longitude")]
public double? Longitude { get; init; }
[JsonPropertyName("gps_accuracy")]
public double? GpsAccuracy { get; init; }
[JsonPropertyName("altitude")]
public double? Altitude { get; init; }
[JsonPropertyName("course")]
public double? Course { get; init; }
[JsonPropertyName("speed")]
public double? Speed { get; init; }
[JsonPropertyName("vertical_accuracy")]
public double? VerticalAccuracy { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("battery_level")]
public double? BatteryLevel { get; init; }
}
public partial record EventEntity : Entity, EventAttributes>
{
public EventEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public EventEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record EventAttributes
{
[JsonPropertyName("event_types")]
public IReadOnlyList? EventTypes { get; init; }
[JsonPropertyName("event_type")]
public string? EventType { get; init; }
[JsonPropertyName("domain")]
public string? Domain { get; init; }
[JsonPropertyName("issue_id")]
public string? IssueId { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record FanEntity : Entity, FanAttributes>
{
public FanEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public FanEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record FanAttributes
{
[JsonPropertyName("preset_modes")]
public IReadOnlyList? PresetModes { get; init; }
[JsonPropertyName("percentage")]
public double? Percentage { get; init; }
[JsonPropertyName("percentage_step")]
public double? PercentageStep { get; init; }
[JsonPropertyName("preset_mode")]
public string? PresetMode { get; init; }
[JsonPropertyName("integration")]
public string? Integration { get; init; }
[JsonPropertyName("capabilities")]
public IReadOnlyList? Capabilities { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
}
public partial record HumidifierEntity : Entity, HumidifierAttributes>
{
public HumidifierEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public HumidifierEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record HumidifierAttributes
{
[JsonPropertyName("min_humidity")]
public double? MinHumidity { get; init; }
[JsonPropertyName("max_humidity")]
public double? MaxHumidity { get; init; }
[JsonPropertyName("action")]
public string? Action { get; init; }
[JsonPropertyName("current_humidity")]
public double? CurrentHumidity { get; init; }
[JsonPropertyName("humidity")]
public double? Humidity { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
}
public partial record InputBooleanEntity : Entity, InputBooleanAttributes>, IInputBooleanEntityCore
{
public InputBooleanEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public InputBooleanEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record InputBooleanAttributes
{
[JsonPropertyName("editable")]
public bool? Editable { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record InputDatetimeEntity : Entity, InputDatetimeAttributes>, IInputDatetimeEntityCore
{
public InputDatetimeEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public InputDatetimeEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record InputDatetimeAttributes
{
[JsonPropertyName("has_date")]
public bool? HasDate { get; init; }
[JsonPropertyName("has_time")]
public bool? HasTime { get; init; }
[JsonPropertyName("editable")]
public bool? Editable { get; init; }
[JsonPropertyName("hour")]
public double? Hour { get; init; }
[JsonPropertyName("minute")]
public double? Minute { get; init; }
[JsonPropertyName("second")]
public double? Second { get; init; }
[JsonPropertyName("timestamp")]
public double? Timestamp { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record InputNumberEntity : NumericEntity, InputNumberAttributes>, IInputNumberEntityCore
{
public InputNumberEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public InputNumberEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record InputNumberAttributes
{
[JsonPropertyName("initial")]
public object? Initial { get; init; }
[JsonPropertyName("editable")]
public bool? Editable { get; init; }
[JsonPropertyName("min")]
public double? Min { get; init; }
[JsonPropertyName("max")]
public double? Max { get; init; }
[JsonPropertyName("step")]
public double? Step { get; init; }
[JsonPropertyName("mode")]
public string? Mode { get; init; }
[JsonPropertyName("unit_of_measurement")]
public string? UnitOfMeasurement { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record NumberEntity : NumericEntity, NumberAttributes>, INumberEntityCore
{
public NumberEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public NumberEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record NumberAttributes
{
[JsonPropertyName("min")]
public double? Min { get; init; }
[JsonPropertyName("max")]
public double? Max { get; init; }
[JsonPropertyName("step")]
public double? Step { get; init; }
[JsonPropertyName("mode")]
public string? Mode { get; init; }
[JsonPropertyName("unit_of_measurement")]
public string? UnitOfMeasurement { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
}
public partial record PersonEntity : Entity, PersonAttributes>, IPersonEntityCore
{
public PersonEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public PersonEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record PersonAttributes
{
[JsonPropertyName("editable")]
public bool? Editable { get; init; }
[JsonPropertyName("id")]
public string? Id { get; init; }
[JsonPropertyName("device_trackers")]
public IReadOnlyList? DeviceTrackers { get; init; }
[JsonPropertyName("latitude")]
public double? Latitude { get; init; }
[JsonPropertyName("longitude")]
public double? Longitude { get; init; }
[JsonPropertyName("gps_accuracy")]
public double? GpsAccuracy { get; init; }
[JsonPropertyName("source")]
public string? Source { get; init; }
[JsonPropertyName("user_id")]
public string? UserId { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record RemoteEntity : Entity, RemoteAttributes>, IRemoteEntityCore
{
public RemoteEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public RemoteEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record RemoteAttributes
{
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("supported_features")]
public double? SupportedFeatures { get; init; }
[JsonPropertyName("restored")]
public bool? Restored { get; init; }
}
public partial record ScriptEntity : Entity, ScriptAttributes>, IScriptEntityCore
{
public ScriptEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public ScriptEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record ScriptAttributes
{
[JsonPropertyName("last_triggered")]
public string? LastTriggered { get; init; }
[JsonPropertyName("mode")]
public string? Mode { get; init; }
[JsonPropertyName("current")]
public double? Current { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
}
public partial record SelectEntity : Entity, SelectAttributes>, ISelectEntityCore
{
public SelectEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public SelectEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record SelectAttributes
{
[JsonPropertyName("options")]
public IReadOnlyList? Options { get; init; }
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
}
public partial record SensorEntity : Entity, SensorAttributes>, ISensorEntityCore
{
public SensorEntity(IHaContext haContext, string entityId) : base(haContext, entityId)
{
}
public SensorEntity(IEntityCore entity) : base(entity)
{
}
}
public partial record SensorAttributes
{
[JsonPropertyName("friendly_name")]
public string? FriendlyName { get; init; }
[JsonPropertyName("device_class")]
public string? DeviceClass { get; init; }
[JsonPropertyName("icon")]
public string? Icon { get; init; }
[JsonPropertyName("options")]
public IReadOnlyList? Options { get; init; }
[JsonPropertyName("still")]
public double? Still { get; init; }
[JsonPropertyName("unknown")]
public double? Unknown { get; init; }
[JsonPropertyName("administrative_area")]
public string? AdministrativeArea_0 { get; init; }
[JsonPropertyName("Administrative Area")]
public string? AdministrativeArea_1 { get; init; }
[JsonPropertyName("country")]
public string? Country_0 { get; init; }
[JsonPropertyName("Country")]
public string? Country_1 { get; init; }
[JsonPropertyName("iso_country_code")]
public string? IsoCountryCode { get; init; }
[JsonPropertyName("locality")]
public string? Locality_0 { get; init; }
[JsonPropertyName("Locality")]
public string? Locality_1 { get; init; }
[JsonPropertyName("location")]
public IReadOnlyList? Location_0 { get; init; }
[JsonPropertyName("Location")]
public IReadOnlyList? Location_1 { get; init; }
[JsonPropertyName("name")]
public string? Name_0 { get; init; }
[JsonPropertyName("Name")]
public string? Name_1 { get; init; }
[JsonPropertyName("phone")]
public string? Phone { get; init; }
[JsonPropertyName("postal_code")]
public string? PostalCode_0 { get; init; }
[JsonPropertyName("Postal Code")]
public string? PostalCode_1 { get; init; }
[JsonPropertyName("premises")]
public string? Premises { get; init; }
[JsonPropertyName("sub_administrative_area")]
public string? SubAdministrativeArea_0 { get; init; }
[JsonPropertyName("Sub Administrative Area")]
public string? SubAdministrativeArea_1 { get; init; }
[JsonPropertyName("sub_locality")]
public string? SubLocality_0 { get; init; }
[JsonPropertyName("Sub Locality")]
public string? SubLocality_1 { get; init; }
[JsonPropertyName("sub_thoroughfare")]
public string? SubThoroughfare_0 { get; init; }
[JsonPropertyName("Sub Thoroughfare")]
public string? SubThoroughfare_1 { get; init; }
[JsonPropertyName("thoroughfare")]
public string? Thoroughfare_0 { get; init; }
[JsonPropertyName("Thoroughfare")]
public string? Thoroughfare_1 { get; init; }
[JsonPropertyName("url")]
public string? Url { get; init; }
[JsonPropertyName("is_hidden")]
public bool? IsHidden { get; init; }
[JsonPropertyName("metered")]
public bool? Metered { get; init; }
[JsonPropertyName("carrier id")]
public double? Carrierid { get; init; }
[JsonPropertyName("carrier name")]
public string? Carriername { get; init; }
[JsonPropertyName("data roaming")]
public string? Dataroaming { get; init; }
[JsonPropertyName("is opportunistic")]
public bool? Isopportunistic { get; init; }
[JsonPropertyName("iso country code")]
public string? Isocountrycode { get; init; }
[JsonPropertyName("mcc")]
public string? Mcc { get; init; }
[JsonPropertyName("mnc")]
public string? Mnc { get; init; }
[JsonPropertyName("Low Power Mode")]
public bool? LowPowerMode { get; init; }
[JsonPropertyName("Areas Of Interest")]
public string? AreasOfInterest { get; init; }
[JsonPropertyName("Inland Water")]
public string? InlandWater { get; init; }
[JsonPropertyName("ISO Country Code")]
public string? ISOCountryCode { get; init; }
[JsonPropertyName("Ocean")]
public string? Ocean { get; init; }
[JsonPropertyName("Time Zone")]
public string? TimeZone { get; init; }
[JsonPropertyName("Zones")]
public IReadOnlyList? Zones { get; init; }
[JsonPropertyName("exercise_type")]
public string? ExerciseType { get; init; }
[JsonPropertyName("time")]
public string? Time { get; init; }
[JsonPropertyName("state_class")]
public string? StateClass { get; init; }
[JsonPropertyName("attribution")]
public string? Attribution { get; init; }
[JsonPropertyName("prices")]
public IReadOnlyList>? Prices { get; init; }
[JsonPropertyName("last_updated")]
public string? LastUpdated { get; init; }
[JsonPropertyName("prices_count")]
public double? PricesCount { get; init; }
[JsonPropertyName("intervals")]
public IReadOnlyList