Private Attributes | |
| _hass | |
| _last_action | |
| _state | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Public Attributes inherited from homeassistant.components.binary_sensor.BinarySensorEntity | |
| entity_category | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Static Public Attributes inherited from homeassistant.components.binary_sensor.BinarySensorEntity | |
| None | |
Representation of a Xiaomi Button.
Definition at line 496 of file binary_sensor.py.
| def homeassistant.components.xiaomi_aqara.binary_sensor.XiaomiButton.__init__ | ( | self, | |
| device, | |||
| name, | |||
| data_key, | |||
| hass, | |||
| xiaomi_hub, | |||
| config_entry | |||
| ) |
Initialize the XiaomiButton.
Reimplemented from homeassistant.components.xiaomi_aqara.binary_sensor.XiaomiBinarySensor.
Definition at line 499 of file binary_sensor.py.
| None homeassistant.components.xiaomi_aqara.binary_sensor.XiaomiButton.async_added_to_hass | ( | self | ) |
Handle entity which will be added.
Reimplemented from homeassistant.components.xiaomi_aqara.entity.XiaomiDevice.
Definition at line 512 of file binary_sensor.py.
| def homeassistant.components.xiaomi_aqara.binary_sensor.XiaomiButton.extra_state_attributes | ( | self | ) |
Return the state attributes.
Reimplemented from homeassistant.components.xiaomi_aqara.entity.XiaomiDevice.
Definition at line 506 of file binary_sensor.py.
| def homeassistant.components.xiaomi_aqara.binary_sensor.XiaomiButton.parse_data | ( | self, | |
| data, | |||
| raw_data | |||
| ) |
Parse data sent by gateway.
Reimplemented from homeassistant.components.xiaomi_aqara.entity.XiaomiDevice.
Definition at line 517 of file binary_sensor.py.
|
private |
Definition at line 501 of file binary_sensor.py.
|
private |
Definition at line 502 of file binary_sensor.py.
|
private |
Definition at line 515 of file binary_sensor.py.