Classes | |
| class | ShellyReceiver |
Functions | |
| None | async_create_issue_unsupported_firmware (HomeAssistant hass, ConfigEntry entry) |
| None | async_remove_orphaned_entities (HomeAssistant hass, str config_entry_id, str mac, str platform, Iterable[str] keys, str|None key_suffix=None) |
| None | async_remove_shelly_entity (HomeAssistant hass, str domain, str unique_id) |
| None | async_remove_shelly_rpc_entities (HomeAssistant hass, str domain, str mac, list[str] keys) |
| int | brightness_to_percentage (int brightness) |
| str | get_block_channel_name (BlockDevice device, Block|None block) |
| int | get_block_device_sleep_period (dict[str, Any] settings) |
| str | get_block_entity_name (BlockDevice device, Block|None block, str|None description=None) |
| list[tuple[str, str]] | get_block_input_triggers (BlockDevice device, Block block) |
| COAP | get_coap_context (HomeAssistant hass) |
| int | get_device_entry_gen (ConfigEntry entry) |
| datetime | get_device_uptime (float uptime, datetime|None last_uptime) |
| str | get_host (str host) |
| int | get_http_port (MappingProxyType[str, Any] data) |
| bool | get_info_auth (dict[str, Any] info) |
| int | get_info_gen (dict[str, Any] info) |
| str | get_model_name (dict[str, Any] info) |
| int | get_number_of_channels (BlockDevice device, Block block) |
| str|None | get_release_url (int gen, str model, bool beta) |
| str | get_rpc_channel_name (RpcDevice device, str key) |
| int | get_rpc_device_wakeup_period (dict[str, Any] status) |
| str | get_rpc_entity_name (RpcDevice device, str key, str|None description=None) |
| list[tuple[str, str]] | get_rpc_input_triggers (RpcDevice device) |
| list[int] | get_rpc_key_ids (dict[str, Any] keys_dict, str key) |
| list[str] | get_rpc_key_instances (dict[str, Any] keys_dict, str key) |
| str|None | get_rpc_ws_url (HomeAssistant hass) |
| list[tuple[str, str]] | get_shbtn_input_triggers () |
| list[str] | get_virtual_component_ids (dict[str, Any] config, str platform) |
| WsServer | get_ws_context (HomeAssistant hass) |
| bool | is_block_channel_type_light (dict[str, Any] settings, int channel) |
| bool | is_block_momentary_input (dict[str, Any] settings, Block block, bool include_detached=False) |
| bool | is_rpc_channel_type_light (dict[str, Any] config, int channel) |
| bool | is_rpc_momentary_input (dict[str, Any] config, dict[str, Any] status, str key) |
| bool | is_rpc_thermostat_internal_actuator (dict[str, Any] status) |
| bool | is_rpc_thermostat_mode (int ident, dict[str, Any] status) |
| bool | is_rpc_wifi_stations_disabled (dict[str, Any] config, dict[str, Any] _status, str key) |
| str|None | mac_address_from_name (str name) |
| int | percentage_to_brightness (int percentage) |
| None | update_device_fw_info (HomeAssistant hass, BlockDevice|RpcDevice shellydevice, ConfigEntry entry) |
Shelly helpers functions.
| None homeassistant.components.shelly.utils.async_create_issue_unsupported_firmware | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
| None homeassistant.components.shelly.utils.async_remove_orphaned_entities | ( | HomeAssistant | hass, |
| str | config_entry_id, | ||
| str | mac, | ||
| str | platform, | ||
| Iterable[str] | keys, | ||
| str | None | key_suffix = None |
||
| ) |
| None homeassistant.components.shelly.utils.async_remove_shelly_entity | ( | HomeAssistant | hass, |
| str | domain, | ||
| str | unique_id | ||
| ) |
| None homeassistant.components.shelly.utils.async_remove_shelly_rpc_entities | ( | HomeAssistant | hass, |
| str | domain, | ||
| str | mac, | ||
| list[str] | keys | ||
| ) |
| int homeassistant.components.shelly.utils.brightness_to_percentage | ( | int | brightness | ) |
| str homeassistant.components.shelly.utils.get_block_channel_name | ( | BlockDevice | device, |
| Block | None | block | ||
| ) |
| int homeassistant.components.shelly.utils.get_block_device_sleep_period | ( | dict[str, Any] | settings | ) |
| str homeassistant.components.shelly.utils.get_block_entity_name | ( | BlockDevice | device, |
| Block | None | block, | ||
| str | None | description = None |
||
| ) |
| list[tuple[str, str]] homeassistant.components.shelly.utils.get_block_input_triggers | ( | BlockDevice | device, |
| Block | block | ||
| ) |
| COAP homeassistant.components.shelly.utils.get_coap_context | ( | HomeAssistant | hass | ) |
| int homeassistant.components.shelly.utils.get_device_entry_gen | ( | ConfigEntry | entry | ) |
| datetime homeassistant.components.shelly.utils.get_device_uptime | ( | float | uptime, |
| datetime | None | last_uptime | ||
| ) |
| str homeassistant.components.shelly.utils.get_host | ( | str | host | ) |
| int homeassistant.components.shelly.utils.get_http_port | ( | MappingProxyType[str, Any] | data | ) |
| bool homeassistant.components.shelly.utils.get_info_auth | ( | dict[str, Any] | info | ) |
| int homeassistant.components.shelly.utils.get_info_gen | ( | dict[str, Any] | info | ) |
| str homeassistant.components.shelly.utils.get_model_name | ( | dict[str, Any] | info | ) |
| int homeassistant.components.shelly.utils.get_number_of_channels | ( | BlockDevice | device, |
| Block | block | ||
| ) |
| str | None homeassistant.components.shelly.utils.get_release_url | ( | int | gen, |
| str | model, | ||
| bool | beta | ||
| ) |
| str homeassistant.components.shelly.utils.get_rpc_channel_name | ( | RpcDevice | device, |
| str | key | ||
| ) |
| int homeassistant.components.shelly.utils.get_rpc_device_wakeup_period | ( | dict[str, Any] | status | ) |
| str homeassistant.components.shelly.utils.get_rpc_entity_name | ( | RpcDevice | device, |
| str | key, | ||
| str | None | description = None |
||
| ) |
| list[tuple[str, str]] homeassistant.components.shelly.utils.get_rpc_input_triggers | ( | RpcDevice | device | ) |
| list[int] homeassistant.components.shelly.utils.get_rpc_key_ids | ( | dict[str, Any] | keys_dict, |
| str | key | ||
| ) |
| list[str] homeassistant.components.shelly.utils.get_rpc_key_instances | ( | dict[str, Any] | keys_dict, |
| str | key | ||
| ) |
| str | None homeassistant.components.shelly.utils.get_rpc_ws_url | ( | HomeAssistant | hass | ) |
| list[tuple[str, str]] homeassistant.components.shelly.utils.get_shbtn_input_triggers | ( | ) |
| list[str] homeassistant.components.shelly.utils.get_virtual_component_ids | ( | dict[str, Any] | config, |
| str | platform | ||
| ) |
| WsServer homeassistant.components.shelly.utils.get_ws_context | ( | HomeAssistant | hass | ) |
| bool homeassistant.components.shelly.utils.is_block_channel_type_light | ( | dict[str, Any] | settings, |
| int | channel | ||
| ) |
| bool homeassistant.components.shelly.utils.is_block_momentary_input | ( | dict[str, Any] | settings, |
| Block | block, | ||
| bool | include_detached = False |
||
| ) |
| bool homeassistant.components.shelly.utils.is_rpc_channel_type_light | ( | dict[str, Any] | config, |
| int | channel | ||
| ) |
| bool homeassistant.components.shelly.utils.is_rpc_momentary_input | ( | dict[str, Any] | config, |
| dict[str, Any] | status, | ||
| str | key | ||
| ) |
| bool homeassistant.components.shelly.utils.is_rpc_thermostat_internal_actuator | ( | dict[str, Any] | status | ) |
| bool homeassistant.components.shelly.utils.is_rpc_thermostat_mode | ( | int | ident, |
| dict[str, Any] | status | ||
| ) |
| bool homeassistant.components.shelly.utils.is_rpc_wifi_stations_disabled | ( | dict[str, Any] | config, |
| dict[str, Any] | _status, | ||
| str | key | ||
| ) |
| str | None homeassistant.components.shelly.utils.mac_address_from_name | ( | str | name | ) |
| int homeassistant.components.shelly.utils.percentage_to_brightness | ( | int | percentage | ) |
| None homeassistant.components.shelly.utils.update_device_fw_info | ( | HomeAssistant | hass, |
| BlockDevice | RpcDevice | shellydevice, | ||
| ConfigEntry | entry | ||
| ) |