Конфигурация
Раздел описывает доступные параметры конфигурации Septic Tank Card.
Карточка настраивается через YAML и использует сущности Home Assistant для отображения параметров септика. В будущих версиях список параметров может быть расширен.
Entities
Секция entities обязательна. Каждая сущность указывается как entity_id (строка).
| Key | Example entity_id | Type | Required | Description |
|---|---|---|---|---|
|
|
entity |
Yes |
Current septic tank fill level |
|
|
entity |
Yes |
Septic tank temperature |
|
|
entity |
Yes |
Internal pressure |
|
|
entity |
Yes |
Critical level threshold |
|
|
entity |
Yes |
Indicates that the critical level has been exceeded |
|
|
entity |
Yes |
Signal level (SDT) |
|
|
entity |
Yes |
Error state or error description |
Display options
Параметры отображения позволяют управлять внешним видом карточки.
Tank options
| Parameter | Type | Default | Description |
|---|---|---|---|
|
boolean |
|
Show or hide card header |
|
string |
|
Header text (default localization) |
|
boolean |
|
Show or hide large level label inside the tank |
|
|
|
Scale position on tank |
Entity row options
Для каждого параметра (level, temp, pressure, x_level, exceeds_x_level, sdt, error_name) доступны одинаковые параметры отображения.
| Parameter | Type | Default | Description |
|---|---|---|---|
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
|
boolean |
|
Show or hide the entity row |
|
string |
|
Custom label |
|
string |
|
Custom icon |
Важно: error_name имеет особое поведение. Даже при error_name.show: false строка ошибки может отображаться автоматически, если состояние не ok, unknown или unavailable.
Example configuration
type: custom:septic-tank-card
entities:
level: sensor.septic_tank_liquid_level
temp: sensor.septic_tank_temperature
pressure: sensor.septic_tank_pressure
x_level: sensor.septic_tank_critical_level
exceeds_x_level: binary_sensor.septic_tank_exceeds_critical_level
sdt: sensor.septic_tank_sdt
error_name: sensor.septic_tank_error
tank:
header:
show: true
label: My septic tank
level:
show: true
scale:
position: left
level:
show: true
icon: mdi:water-percent
label: Liquid level
temp:
show: true
icon: mdi:thermometer
label: Temperature
pressure:
show: true
icon: mdi:gauge
label: Pressure
x_level:
show: true
icon: mdi:water-minus
label: Critical level
exceeds_x_level:
show: true
icon: mdi:water-alert
label: Exceeding the liquid level
sdt:
show: true
icon: mdi:signal
label: SDT
error_name:
show: true
icon: mdi:alert-decagram-outline
label: Error