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

Namespaces

 sensor
 

Classes

class  APIMethods
 
class  PrinterAPI
 
class  RepetierRequiredKeysMixin
 
class  RepetierSensorEntityDescription
 

Functions

def has_all_unique_names (value)
 
bool setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA
 
string DEFAULT_NAME = "RepetierServer"
 
string DOMAIN = "repetier"
 
string REPETIER_API = "repetier_api"
 
 SCAN_INTERVAL = timedelta(seconds=10)
 
 SENSOR_SCHEMA
 
dictionary TEMP_DATA = {"tempset": "temp_set", "tempread": "state", "output": "output"}
 
string UPDATE_SIGNAL = "repetier_update_signal"
 

Detailed Description

Support for Repetier-Server sensors.

Function Documentation

◆ has_all_unique_names()

def homeassistant.components.repetier.has_all_unique_names (   value)
Validate that printers have an unique name.

Definition at line 121 of file __init__.py.

◆ setup()

bool homeassistant.components.repetier.setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the Repetier Server component.

Definition at line 222 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 31 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.repetier.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.All(
4  cv.ensure_list,
5  [
6  vol.Schema(
7  {
8  vol.Required(CONF_API_KEY): cv.string,
9  vol.Required(CONF_HOST): cv.string,
10  vol.Optional(CONF_PORT, default=3344): cv.port,
11  vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
12  vol.Optional(CONF_SENSORS, default={}): SENSOR_SCHEMA,
13  }
14  )
15  ],
16  has_all_unique_names,
17  )
18  },
19  extra=vol.ALLOW_EXTRA,
20 )

Definition at line 200 of file __init__.py.

◆ DEFAULT_NAME

string homeassistant.components.repetier.DEFAULT_NAME = "RepetierServer"

Definition at line 33 of file __init__.py.

◆ DOMAIN

string homeassistant.components.repetier.DOMAIN = "repetier"

Definition at line 34 of file __init__.py.

◆ REPETIER_API

string homeassistant.components.repetier.REPETIER_API = "repetier_api"

Definition at line 35 of file __init__.py.

◆ SCAN_INTERVAL

homeassistant.components.repetier.SCAN_INTERVAL = timedelta(seconds=10)

Definition at line 36 of file __init__.py.

◆ SENSOR_SCHEMA

homeassistant.components.repetier.SENSOR_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_MONITORED_CONDITIONS, default=list(SENSOR_TYPES)): vol.All(
4  cv.ensure_list, [vol.In(SENSOR_TYPES)]
5  ),
6  vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
7  }
8 )

Definition at line 191 of file __init__.py.

◆ TEMP_DATA

dictionary homeassistant.components.repetier.TEMP_DATA = {"tempset": "temp_set", "tempread": "state", "output": "output"}

Definition at line 39 of file __init__.py.

◆ UPDATE_SIGNAL

string homeassistant.components.repetier.UPDATE_SIGNAL = "repetier_update_signal"

Definition at line 37 of file __init__.py.