Types Reference¶
This page contains auto-generated documentation for common types used throughout Domovoy.
Home Assistant Types¶
Types for interacting with Home Assistant entities and values.
Entity ID Types¶
Typed entity ID classes for different Home Assistant domains.
Application Types¶
Types used in app configuration and scheduling.
- class domovoy.applications.types.Interval(days=0, hours=0, minutes=0, seconds=0, milliseconds=0)[source]¶
Bases:
object- is_valid()[source]¶
Check if an interval has a non-zero duration.
- Return type:
- Returns:
bool: True if at least one of the fields of the interval is non-zero.
ServEnts Entity Types¶
Entity wrapper types returned by ServEnts plugin.
- class domovoy.plugins.servents.entities.ServEntEntity(hass, entity_type, servent_id, config, device_config, entity_id_type)[source]¶
Bases:
Generic- Parameters:
hass (HassPlugin)
entity_type (EntityType)
servent_id (str)
config (EntityConfig)
device_config (DeviceConfig)
entity_id_type (type[T])
- async set_to(state, attributes=None)[source]¶
- Return type:
- Parameters:
state (int | float | str | bool | datetime | EntityID | list[int | float | str | bool | datetime | EntityID | dict[str, int | float | str | bool | datetime | EntityID | None]] | dict[str, int | float | str | bool | datetime | EntityID | list[int | float | str | bool | datetime | EntityID] | None] | None)
- get_state_attributes()[source]¶
- Return type:
dict[str,int|float|str|bool|datetime|EntityID|list[int|float|str|bool|datetime|EntityID|dict[str,int|float|str|bool|datetime|EntityID|None]] |dict[str,int|float|str|bool|datetime|EntityID|list[int|float|str|bool|datetime|EntityID] |None] |None]
- class domovoy.plugins.servents.entities.ServEntSensor(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[SensorEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (SensorConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntThresholdBinarySensor(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[BinarySensorEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (ThresholdBinarySensorConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntBinarySensor(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[BinarySensorEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (BinarySensorConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntSwitch(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[SwitchEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (SwitchConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntNumber(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[NumberEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (NumberConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntSelect(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[SelectEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (SelectConfig)
device_config (DeviceConfig)
- class domovoy.plugins.servents.entities.ServEntButton(hass, servent_id, config, device_config)[source]¶
Bases:
ServEntEntity[ButtonEntity]- Parameters:
hass (HassPlugin)
servent_id (str)
config (ButtonConfig)
device_config (DeviceConfig)