Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mysensors Namespace Reference

Namespaces

 binary_sensor
 
 climate
 
 config_flow
 
 const
 
 cover
 
 device_tracker
 
 entity
 
 gateway
 
 handler
 
 helpers
 
 light
 
 remote
 
 sensor
 
 switch
 
 text
 

Functions

bool async_remove_config_entry_device (HomeAssistant hass, ConfigEntry config_entry, DeviceEntry device_entry)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
list[MySensorsChildEntity]|None setup_mysensors_platform (HomeAssistant hass, Platform domain, DiscoveryInfo discovery_info, type[MySensorsChildEntity]|Mapping[SensorType, type[MySensorsChildEntity]] device_class,(tuple|None) device_args=None, Callable|None async_add_entities=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DATA_HASS_CONFIG = "hass_config"
 

Detailed Description

Connect to a MySensors gateway via pymysensors API.

Function Documentation

◆ async_remove_config_entry_device()

bool homeassistant.components.mysensors.async_remove_config_entry_device ( HomeAssistant  hass,
ConfigEntry  config_entry,
DeviceEntry   device_entry 
)
Remove a MySensors config entry from a device.

Definition at line 79 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.mysensors.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up an instance of the MySensors integration.

Every instance has a connection to exactly one Gateway.

Definition at line 34 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.mysensors.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Remove an instance of the MySensors integration.

Definition at line 56 of file __init__.py.

◆ setup_mysensors_platform()

list[MySensorsChildEntity] | None homeassistant.components.mysensors.setup_mysensors_platform ( HomeAssistant  hass,
Platform  domain,
DiscoveryInfo  discovery_info,
type[MySensorsChildEntity] | Mapping[SensorType, type[MySensorsChildEntity]]  device_class,
( tuple | None )   device_args = None,
Callable | None   async_add_entities = None 
)
Set up a MySensors platform.

Sets up a bunch of instances of a single platform that is supported by this
integration.

The function is given a list of device ids, each one describing an instance
to set up. The function is also given a class.

A new instance of the class is created for every device id, and the device
id is given to the constructor of the class.

Definition at line 102 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.mysensors._LOGGER = logging.getLogger(__name__)
private

Definition at line 29 of file __init__.py.

◆ DATA_HASS_CONFIG

string homeassistant.components.mysensors.DATA_HASS_CONFIG = "hass_config"

Definition at line 31 of file __init__.py.