Namespaces | |
| binary_sensor | |
| button | |
| camera | |
| config_flow | |
| const | |
| coordinator | |
| sensor | |
Functions | |
| OctoprintClient | async_get_client_for_service_call (HomeAssistant hass, ServiceCall call) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| def | ensure_valid_path (value) |
| def | has_all_unique_names (value) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| BINARY_SENSOR_SCHEMA | |
| list | BINARY_SENSOR_TYPES |
| string | CONF_BED = "bed" |
| string | CONF_NUMBER_OF_TOOLS = "number_of_tools" |
| CONFIG_SCHEMA | |
| string | DEFAULT_NAME = "OctoPrint" |
| list | PLATFORMS = [Platform.BINARY_SENSOR, Platform.BUTTON, Platform.CAMERA, Platform.SENSOR] |
| SENSOR_SCHEMA | |
| list | SENSOR_TYPES |
| SERVICE_CONNECT_SCHEMA | |
Support for monitoring OctoPrint 3D printers.
| OctoprintClient homeassistant.components.octoprint.async_get_client_for_service_call | ( | HomeAssistant | hass, |
| ServiceCall | call | ||
| ) |
Get the client related to a service call (by device ID).
Definition at line 242 of file __init__.py.
| bool homeassistant.components.octoprint.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the OctoPrint component.
Definition at line 141 of file __init__.py.
| bool homeassistant.components.octoprint.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up OctoPrint from a config entry.
Definition at line 166 of file __init__.py.
| bool homeassistant.components.octoprint.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 232 of file __init__.py.
| def homeassistant.components.octoprint.ensure_valid_path | ( | value | ) |
Validate the path, ensuring it starts and ends with a /.
Definition at line 50 of file __init__.py.
| def homeassistant.components.octoprint.has_all_unique_names | ( | value | ) |
Validate that printers have an unique name.
Definition at line 43 of file __init__.py.
|
private |
Definition at line 40 of file __init__.py.
| homeassistant.components.octoprint.BINARY_SENSOR_SCHEMA |
Definition at line 70 of file __init__.py.
| list homeassistant.components.octoprint.BINARY_SENSOR_TYPES |
Definition at line 65 of file __init__.py.
| string homeassistant.components.octoprint.CONF_BED = "bed" |
Definition at line 63 of file __init__.py.
| string homeassistant.components.octoprint.CONF_NUMBER_OF_TOOLS = "number_of_tools" |
Definition at line 62 of file __init__.py.
| homeassistant.components.octoprint.CONFIG_SCHEMA |
Definition at line 96 of file __init__.py.
| string homeassistant.components.octoprint.DEFAULT_NAME = "OctoPrint" |
Definition at line 61 of file __init__.py.
| list homeassistant.components.octoprint.PLATFORMS = [Platform.BINARY_SENSOR, Platform.BUTTON, Platform.CAMERA, Platform.SENSOR] |
Definition at line 60 of file __init__.py.
| homeassistant.components.octoprint.SENSOR_SCHEMA |
Definition at line 87 of file __init__.py.
| list homeassistant.components.octoprint.SENSOR_TYPES |
Definition at line 79 of file __init__.py.
| homeassistant.components.octoprint.SERVICE_CONNECT_SCHEMA |
Definition at line 131 of file __init__.py.