Classes | |
| class | MqttBinarySensor |
Functions | |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | CONF_EXPIRE_AFTER = "expire_after" |
| string | CONF_OFF_DELAY = "off_delay" |
| bool | DEFAULT_FORCE_UPDATE = False |
| string | DEFAULT_NAME = "MQTT Binary sensor" |
| string | DEFAULT_PAYLOAD_OFF = "OFF" |
| string | DEFAULT_PAYLOAD_ON = "ON" |
| DISCOVERY_SCHEMA = PLATFORM_SCHEMA_MODERN.extend({}, extra=vol.REMOVE_EXTRA) | |
| int | PARALLEL_UPDATES = 0 |
| PLATFORM_SCHEMA_MODERN | |
Support for MQTT binary sensors.
| None homeassistant.components.mqtt.binary_sensor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Set up MQTT binary sensor through YAML and through MQTT discovery.
Definition at line 70 of file binary_sensor.py.
|
private |
Definition at line 44 of file binary_sensor.py.
| string homeassistant.components.mqtt.binary_sensor.CONF_EXPIRE_AFTER = "expire_after" |
Definition at line 53 of file binary_sensor.py.
| string homeassistant.components.mqtt.binary_sensor.CONF_OFF_DELAY = "off_delay" |
Definition at line 49 of file binary_sensor.py.
| bool homeassistant.components.mqtt.binary_sensor.DEFAULT_FORCE_UPDATE = False |
Definition at line 52 of file binary_sensor.py.
| string homeassistant.components.mqtt.binary_sensor.DEFAULT_NAME = "MQTT Binary sensor" |
Definition at line 48 of file binary_sensor.py.
| string homeassistant.components.mqtt.binary_sensor.DEFAULT_PAYLOAD_OFF = "OFF" |
Definition at line 50 of file binary_sensor.py.
| string homeassistant.components.mqtt.binary_sensor.DEFAULT_PAYLOAD_ON = "ON" |
Definition at line 51 of file binary_sensor.py.
| homeassistant.components.mqtt.binary_sensor.DISCOVERY_SCHEMA = PLATFORM_SCHEMA_MODERN.extend({}, extra=vol.REMOVE_EXTRA) |
Definition at line 67 of file binary_sensor.py.
| int homeassistant.components.mqtt.binary_sensor.PARALLEL_UPDATES = 0 |
Definition at line 46 of file binary_sensor.py.
| homeassistant.components.mqtt.binary_sensor.PLATFORM_SCHEMA_MODERN |
Definition at line 55 of file binary_sensor.py.