Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.fints.sensor Namespace Reference

Classes

class  FinTsAccount
 
class  FinTsClient
 
class  FinTsHoldingsAccount
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_ACCOUNT = CONF_ACCOUNT
 
string ATTR_ACCOUNT_TYPE = "account_type"
 
string ATTR_BANK = "bank"
 
 BankCredentials = namedtuple("BankCredentials", "blz login pin url")
 
string CONF_ACCOUNT = "account"
 
string CONF_ACCOUNTS = "accounts"
 
string CONF_BIN = "bank_identification_number"
 
string CONF_HOLDINGS = "holdings"
 
string ICON = "mdi:currency-eur"
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(hours=4)
 
 SCHEMA_ACCOUNTS
 

Detailed Description

Read the balance of your bank accounts via FinTS.

Function Documentation

◆ setup_platform()

None homeassistant.components.fints.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the sensors.

Login to the bank and get a list of existing accounts. Create a
sensor for each account.

Definition at line 62 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.fints.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file sensor.py.

◆ ATTR_ACCOUNT

string homeassistant.components.fints.sensor.ATTR_ACCOUNT = CONF_ACCOUNT

Definition at line 38 of file sensor.py.

◆ ATTR_ACCOUNT_TYPE

string homeassistant.components.fints.sensor.ATTR_ACCOUNT_TYPE = "account_type"

Definition at line 40 of file sensor.py.

◆ ATTR_BANK

string homeassistant.components.fints.sensor.ATTR_BANK = "bank"

Definition at line 39 of file sensor.py.

◆ BankCredentials

homeassistant.components.fints.sensor.BankCredentials = namedtuple("BankCredentials", "blz login pin url")

Definition at line 31 of file sensor.py.

◆ CONF_ACCOUNT

string homeassistant.components.fints.sensor.CONF_ACCOUNT = "account"

Definition at line 36 of file sensor.py.

◆ CONF_ACCOUNTS

string homeassistant.components.fints.sensor.CONF_ACCOUNTS = "accounts"

Definition at line 34 of file sensor.py.

◆ CONF_BIN

string homeassistant.components.fints.sensor.CONF_BIN = "bank_identification_number"

Definition at line 33 of file sensor.py.

◆ CONF_HOLDINGS

string homeassistant.components.fints.sensor.CONF_HOLDINGS = "holdings"

Definition at line 35 of file sensor.py.

◆ ICON

string homeassistant.components.fints.sensor.ICON = "mdi:currency-eur"

Definition at line 29 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.fints.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_BIN): cv.string,
4  vol.Required(CONF_USERNAME): cv.string,
5  vol.Required(CONF_PIN): cv.string,
6  vol.Required(CONF_URL): cv.string,
7  vol.Optional(CONF_NAME): cv.string,
8  vol.Optional(CONF_ACCOUNTS, default=[]): cv.ensure_list(SCHEMA_ACCOUNTS),
9  vol.Optional(CONF_HOLDINGS, default=[]): cv.ensure_list(SCHEMA_ACCOUNTS),
10  }
11 )

Definition at line 49 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.fints.sensor.SCAN_INTERVAL = timedelta(hours=4)

Definition at line 27 of file sensor.py.

◆ SCHEMA_ACCOUNTS

homeassistant.components.fints.sensor.SCHEMA_ACCOUNTS
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_ACCOUNT): cv.string,
4  vol.Optional(CONF_NAME, default=None): vol.Any(None, cv.string),
5  }
6 )

Definition at line 42 of file sensor.py.