Classes | |
| class | AutoOffExtraStoredData |
| class | BinarySensorTemplate |
| class | TriggerBinarySensorEntity |
Functions | |
| None | _async_create_template_tracking_entities (AddEntitiesCallback async_add_entities, HomeAssistant hass, list[dict] definitions, str|None unique_id_prefix) |
| BinarySensorTemplate | async_create_preview_binary_sensor (HomeAssistant hass, str name, dict[str, Any] config) |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| None | async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
| list[dict] | rewrite_legacy_to_modern_conf (HomeAssistant hass, dict[str, dict] cfg) |
Variables | |
| BINARY_SENSOR_CONFIG_SCHEMA | |
| BINARY_SENSOR_SCHEMA | |
| string | CONF_ATTRIBUTE_TEMPLATES = "attribute_templates" |
| string | CONF_AUTO_OFF = "auto_off" |
| string | CONF_DELAY_OFF = "delay_off" |
| string | CONF_DELAY_ON = "delay_on" |
| LEGACY_BINARY_SENSOR_SCHEMA | |
| dictionary | LEGACY_FIELDS |
| PLATFORM_SCHEMA | |
Support for exposing a templated binary sensor.
|
private |
Create the template binary sensors.
Definition at line 153 of file binary_sensor.py.
| BinarySensorTemplate homeassistant.components.template.binary_sensor.async_create_preview_binary_sensor | ( | HomeAssistant | hass, |
| str | name, | ||
| dict[str, Any] | config | ||
| ) |
Create a preview sensor.
Definition at line 225 of file binary_sensor.py.
| None homeassistant.components.template.binary_sensor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Initialize config entry.
Definition at line 210 of file binary_sensor.py.
| None homeassistant.components.template.binary_sensor.async_setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | async_add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
Set up the template binary sensors.
Definition at line 179 of file binary_sensor.py.
| list[dict] homeassistant.components.template.binary_sensor.rewrite_legacy_to_modern_conf | ( | HomeAssistant | hass, |
| dict[str, dict] | cfg | ||
| ) |
Rewrite legacy binary sensor definitions to modern ones.
Definition at line 122 of file binary_sensor.py.
| homeassistant.components.template.binary_sensor.BINARY_SENSOR_CONFIG_SCHEMA |
Definition at line 94 of file binary_sensor.py.
| homeassistant.components.template.binary_sensor.BINARY_SENSOR_SCHEMA |
Definition at line 83 of file binary_sensor.py.
| string homeassistant.components.template.binary_sensor.CONF_ATTRIBUTE_TEMPLATES = "attribute_templates" |
Definition at line 71 of file binary_sensor.py.
| string homeassistant.components.template.binary_sensor.CONF_AUTO_OFF = "auto_off" |
Definition at line 70 of file binary_sensor.py.
| string homeassistant.components.template.binary_sensor.CONF_DELAY_OFF = "delay_off" |
Definition at line 69 of file binary_sensor.py.
| string homeassistant.components.template.binary_sensor.CONF_DELAY_ON = "delay_on" |
Definition at line 68 of file binary_sensor.py.
| homeassistant.components.template.binary_sensor.LEGACY_BINARY_SENSOR_SCHEMA |
Definition at line 100 of file binary_sensor.py.
| dictionary homeassistant.components.template.binary_sensor.LEGACY_FIELDS |
Definition at line 73 of file binary_sensor.py.
| homeassistant.components.template.binary_sensor.PLATFORM_SCHEMA |
Definition at line 143 of file binary_sensor.py.