Public Member Functions | |
| None | __init__ (self, SwitchbotDataUpdateCoordinator coordinator) |
| None | async_added_to_hass (self) |
| None | async_update (self) |
| Mapping[Any, Any] | extra_state_attributes (self) |
| dict[str, Any] | parsed_data (self) |
Public Member Functions inherited from homeassistant.components.switchbot.coordinator.SwitchbotDataUpdateCoordinator | |
| None | __init__ (self, HomeAssistant hass, logging.Logger logger, BLEDevice ble_device, switchbot.SwitchbotDevice device, str base_unique_id, str device_name, bool connectable, SwitchbotModel model) |
| bool | async_wait_ready (self) |
Public Member Functions inherited from homeassistant.components.bluetooth.active_update_coordinator.ActiveBluetoothDataUpdateCoordinator | |
| None | __init__ (self, HomeAssistant hass, logging.Logger logger, *str address, BluetoothScanningMode mode, Callable[[BluetoothServiceInfoBleak, float|None], bool] needs_poll_method, Callable[[BluetoothServiceInfoBleak], Coroutine[Any, Any, _T],]|None poll_method=None, Debouncer[Coroutine[Any, Any, None]]|None poll_debouncer=None, bool connectable=True) |
| bool | needs_poll (self, BluetoothServiceInfoBleak service_info) |
Public Member Functions inherited from homeassistant.components.bluetooth.passive_update_coordinator.PassiveBluetoothDataUpdateCoordinator | |
| None | __init__ (self, HomeAssistant hass, logging.Logger logger, str address, BluetoothScanningMode mode, bool connectable=False) |
| Callable[[], None] | async_add_listener (self, CALLBACK_TYPE update_callback, Any context=None) |
| Generator[Any] | async_contexts (self) |
| None | async_update_listeners (self) |
| bool | available (self) |
Public Member Functions inherited from homeassistant.components.bluetooth.update_coordinator.BasePassiveBluetoothCoordinator | |
| CALLBACK_TYPE | async_start (self) |
| float | last_seen (self) |
| str | name (self) |
Private Member Functions | |
| None | _async_update_attrs (self) |
| None | _handle_coordinator_update (self) |
Private Attributes | |
| _address | |
| _attr_device_info | |
| _attr_unique_id | |
| _device | |
Static Private Attributes | |
| bool | _attr_has_entity_name = True |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.switchbot.coordinator.SwitchbotDataUpdateCoordinator | |
| base_unique_id | |
| ble_device | |
| device | |
| device_name | |
| model | |
Public Attributes inherited from homeassistant.components.bluetooth.active_update_coordinator.ActiveBluetoothDataUpdateCoordinator | |
| data | |
| last_poll_successful | |
Public Attributes inherited from homeassistant.components.bluetooth.update_coordinator.BasePassiveBluetoothCoordinator | |
| address | |
| connectable | |
| hass | |
| logger | |
| mode | |
Generic entity encapsulating common features of Switchbot device.
| None homeassistant.components.switchbot.entity.SwitchbotEntity.__init__ | ( | self, | |
| SwitchbotDataUpdateCoordinator | coordinator | ||
| ) |
|
private |
Update the entity attributes.
Reimplemented in homeassistant.components.switchbot.lock.SwitchBotLock, and homeassistant.components.switchbot.light.SwitchbotLightEntity.
|
private |
Handle data update.
Reimplemented in homeassistant.components.switchbot.cover.SwitchBotBlindTiltEntity, and homeassistant.components.switchbot.cover.SwitchBotCurtainEntity.
| None homeassistant.components.switchbot.entity.SwitchbotEntity.async_added_to_hass | ( | self | ) |
| None homeassistant.components.switchbot.entity.SwitchbotEntity.async_update | ( | self | ) |
| Mapping[Any, Any] homeassistant.components.switchbot.entity.SwitchbotEntity.extra_state_attributes | ( | self | ) |
Return the state attributes.
Reimplemented in homeassistant.components.switchbot.switch.SwitchBotSwitch.
| dict[str, Any] homeassistant.components.switchbot.entity.SwitchbotEntity.parsed_data | ( | self | ) |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |