Functions | |
| None | _discover_persistent_devices (HomeAssistant hass, ConfigEntry entry, BaseAsyncGateway gateway) |
| BaseAsyncGateway|None | _get_gateway (HomeAssistant hass, ConfGatewayType gateway_type, str device, str version, Callable[[Message], None] event_callback, str|None persistence_file=None, int|None baud_rate=None, int|None tcp_port=None, str|None topic_in_prefix=None, str|None topic_out_prefix=None, bool retain=False, bool persistence=True) |
| Callable[[Message], None] | _gw_callback_factory (HomeAssistant hass, GatewayId gateway_id) |
| None | _gw_start (HomeAssistant hass, ConfigEntry entry, BaseAsyncGateway gateway) |
| None | finish_setup (HomeAssistant hass, ConfigEntry entry, BaseAsyncGateway gateway) |
| None | gw_stop (HomeAssistant hass, ConfigEntry entry, BaseAsyncGateway gateway) |
| str | is_serial_port (str value) |
| str | is_socket_address (str value) |
| BaseAsyncGateway|None | setup_gateway (HomeAssistant hass, ConfigEntry entry) |
| bool | try_connect (HomeAssistant hass, ConfGatewayType gateway_type, dict[str, Any] user_input) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| float | GATEWAY_READY_TIMEOUT = 20.0 |
| string | MQTT_COMPONENT = "mqtt" |
Handle MySensors gateways.
|
private |
Discover platforms for devices loaded via persistence file.
Definition at line 245 of file gateway.py.
|
private |
Return gateway after setup of the gateway.
Definition at line 150 of file gateway.py.
|
private |
Return a new callback for the gateway.
Definition at line 316 of file gateway.py.
|
private |
Start the gateway.
Definition at line 276 of file gateway.py.
| None homeassistant.components.mysensors.gateway.finish_setup | ( | HomeAssistant | hass, |
| ConfigEntry | entry, | ||
| BaseAsyncGateway | gateway | ||
| ) |
Load any persistent devices and platforms and start gateway.
Definition at line 237 of file gateway.py.
| None homeassistant.components.mysensors.gateway.gw_stop | ( | HomeAssistant | hass, |
| ConfigEntry | entry, | ||
| BaseAsyncGateway | gateway | ||
| ) |
Stop the gateway.
Definition at line 264 of file gateway.py.
| str homeassistant.components.mysensors.gateway.is_serial_port | ( | str | value | ) |
Validate that value is a windows serial port or a unix device.
Definition at line 61 of file gateway.py.
| str homeassistant.components.mysensors.gateway.is_socket_address | ( | str | value | ) |
Validate that value is a valid address.
Definition at line 71 of file gateway.py.
| BaseAsyncGateway | None homeassistant.components.mysensors.gateway.setup_gateway | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up the Gateway for the given ConfigEntry.
Definition at line 128 of file gateway.py.
| bool homeassistant.components.mysensors.gateway.try_connect | ( | HomeAssistant | hass, |
| ConfGatewayType | gateway_type, | ||
| dict[str, Any] | user_input | ||
| ) |
Try to connect to a gateway and report if it worked.
Definition at line 80 of file gateway.py.
|
private |
Definition at line 55 of file gateway.py.
| float homeassistant.components.mysensors.gateway.GATEWAY_READY_TIMEOUT = 20.0 |
Definition at line 57 of file gateway.py.
| string homeassistant.components.mysensors.gateway.MQTT_COMPONENT = "mqtt" |
Definition at line 58 of file gateway.py.