Home Assistant Unofficial Reference 2024.12.1
utils.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.shelly.utils.ShellyReceiver
 

Namespaces

 homeassistant.components.shelly.utils
 

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)