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

Classes

class  SAJsensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 
CALLBACK_TYPE async_track_time_interval_backoff (HomeAssistant hass, Callable[[], Coroutine[Any, Any, bool]] action)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list INVERTER_TYPES = ["ethernet", "wifi"]
 
int MAX_INTERVAL = 300
 
int MIN_INTERVAL = 5
 
 PLATFORM_SCHEMA
 
dictionary SAJ_UNIT_MAPPINGS
 

Detailed Description

SAJ solar inverter interface.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.saj.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the SAJ sensors.

Definition at line 67 of file sensor.py.

◆ async_track_time_interval_backoff()

CALLBACK_TYPE homeassistant.components.saj.sensor.async_track_time_interval_backoff ( HomeAssistant  hass,
Callable[[], Coroutine[Any, Any, bool]]   action 
)
Add a listener that fires repetitively and increases the interval when failed.

Definition at line 152 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.saj.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 40 of file sensor.py.

◆ INVERTER_TYPES

list homeassistant.components.saj.sensor.INVERTER_TYPES = ["ethernet", "wifi"]

Definition at line 45 of file sensor.py.

◆ MAX_INTERVAL

int homeassistant.components.saj.sensor.MAX_INTERVAL = 300

Definition at line 43 of file sensor.py.

◆ MIN_INTERVAL

int homeassistant.components.saj.sensor.MIN_INTERVAL = 5

Definition at line 42 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.saj.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Optional(CONF_NAME): cv.string,
5  vol.Optional(CONF_TYPE, default=INVERTER_TYPES[0]): vol.In(INVERTER_TYPES),
6  vol.Inclusive(CONF_USERNAME, "credentials"): cv.string,
7  vol.Inclusive(CONF_PASSWORD, "credentials"): cv.string,
8  }
9 )

Definition at line 56 of file sensor.py.

◆ SAJ_UNIT_MAPPINGS

dictionary homeassistant.components.saj.sensor.SAJ_UNIT_MAPPINGS
Initial value:
1 = {
2  "": None,
3  "h": UnitOfTime.HOURS,
4  "kg": UnitOfMass.KILOGRAMS,
5  "kWh": UnitOfEnergy.KILO_WATT_HOUR,
6  "W": UnitOfPower.WATT,
7  "°C": UnitOfTemperature.CELSIUS,
8 }

Definition at line 47 of file sensor.py.