Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.syncthru.sensor Namespace Reference

Classes

class  SyncThruActiveAlertSensor
 
class  SyncThruDrumSensor
 
class  SyncThruInputTraySensor
 
class  SyncThruMainSensor
 
class  SyncThruOutputTraySensor
 
class  SyncThruSensor
 
class  SyncThruTonerSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

list COLORS = ["black", "cyan", "magenta", "yellow"]
 
list DEFAULT_MONITORED_CONDITIONS = []
 
list DRUM_COLORS = COLORS
 
 OUTPUT_TRAYS = range(6)
 
dictionary SYNCTHRU_STATE_HUMAN
 
list TONER_COLORS = COLORS
 
 TRAYS = range(1, 6)
 

Detailed Description

Support for Samsung Printers with SyncThru web interface.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.syncthru.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up from config entry.

Definition at line 43 of file sensor.py.

Variable Documentation

◆ COLORS

list homeassistant.components.syncthru.sensor.COLORS = ["black", "cyan", "magenta", "yellow"]

Definition at line 21 of file sensor.py.

◆ DEFAULT_MONITORED_CONDITIONS

list homeassistant.components.syncthru.sensor.DEFAULT_MONITORED_CONDITIONS = []

Definition at line 26 of file sensor.py.

◆ DRUM_COLORS

list homeassistant.components.syncthru.sensor.DRUM_COLORS = COLORS

Definition at line 22 of file sensor.py.

◆ OUTPUT_TRAYS

homeassistant.components.syncthru.sensor.OUTPUT_TRAYS = range(6)

Definition at line 25 of file sensor.py.

◆ SYNCTHRU_STATE_HUMAN

dictionary homeassistant.components.syncthru.sensor.SYNCTHRU_STATE_HUMAN
Initial value:
1 = {
2  SyncthruState.INVALID: "invalid",
3  SyncthruState.OFFLINE: "unreachable",
4  SyncthruState.NORMAL: "normal",
5  SyncthruState.UNKNOWN: "unknown",
6  SyncthruState.WARNING: "warning",
7  SyncthruState.TESTING: "testing",
8  SyncthruState.ERROR: "error",
9 }

Definition at line 32 of file sensor.py.

◆ TONER_COLORS

list homeassistant.components.syncthru.sensor.TONER_COLORS = COLORS

Definition at line 23 of file sensor.py.

◆ TRAYS

homeassistant.components.syncthru.sensor.TRAYS = range(1, 6)

Definition at line 24 of file sensor.py.