Конфигурация

Раздел описывает доступные параметры конфигурации Septic Tank Card.

Карточка настраивается через YAML и использует сущности Home Assistant для отображения параметров септика. В будущих версиях список параметров может быть расширен.

Entities

Секция entities обязательна. Каждая сущность указывается как entity_id (строка).

Key Example entity_id Type Required Description

level

sensor.septic_tank_liquid_level

entity

Yes

Current septic tank fill level

temp

sensor.septic_tank_temperature

entity

Yes

Septic tank temperature

pressure

sensor.septic_tank_pressure

entity

Yes

Internal pressure

x_level

sensor.septic_tank_critical_level

entity

Yes

Critical level threshold

exceeds_x_level

binary_sensor.septic_tank_exceeds_critical_level

entity

Yes

Indicates that the critical level has been exceeded

sdt

sensor.septic_tank_sdt

entity

Yes

Signal level (SDT)

error_name

sensor.septic_tank_error

entity

Yes

Error state or error description

Display options

Параметры отображения позволяют управлять внешним видом карточки.

Tank options

Parameter Type Default Description

tank.header.show

boolean

false

Show or hide card header

tank.header.label

string

Septic

Header text (default localization)

tank.level.show

boolean

false

Show or hide large level label inside the tank

tank.scale.position

left | middle

middle

Scale position on tank

Entity row options

Для каждого параметра (level, temp, pressure, x_level, exceeds_x_level, sdt, error_name) доступны одинаковые параметры отображения.

Parameter Type Default Description

level.show

boolean

false

Show or hide the entity row

level.label

string

Liquid level

Custom label

level.icon

string

mdi:water-percent

Custom icon

temp.show

boolean

true

Show or hide the entity row

temp.label

string

Temperature

Custom label

temp.icon

string

mdi:thermometer

Custom icon

pressure.show

boolean

true

Show or hide the entity row

pressure.label

string

Pressure

Custom label

pressure.icon

string

mdi:gauge

Custom icon

x_level.show

boolean

false

Show or hide the entity row

x_level.label

string

Critical level

Custom label

x_level.icon

string

mdi:water-minus

Custom icon

exceeds_x_level.show

boolean

false

Show or hide the entity row

exceeds_x_level.label

string

Exceeding the liquid level

Custom label

exceeds_x_level.icon

string

mdi:water-alert

Custom icon

sdt.show

boolean

false

Show or hide the entity row

sdt.label

string

SDT

Custom label

sdt.icon

string

mdi:signal

Custom icon

error_name.show

boolean

false

Show or hide the entity row

error_name.label

string

Error

Custom label

error_name.icon

string

mdi:alert-decagram-outline

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