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

Classes

class  WorxLandroidSensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_ALLOW_UNREACHABLE = "allow_unreachable"
 
int DEFAULT_TIMEOUT = 5
 
list ERROR_STATE
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for Worx Landroid mower.

Function Documentation

◆ async_setup_platform()

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

Definition at line 54 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 22 of file sensor.py.

◆ CONF_ALLOW_UNREACHABLE

string homeassistant.components.worxlandroid.sensor.CONF_ALLOW_UNREACHABLE = "allow_unreachable"

Definition at line 24 of file sensor.py.

◆ DEFAULT_TIMEOUT

int homeassistant.components.worxlandroid.sensor.DEFAULT_TIMEOUT = 5

Definition at line 26 of file sensor.py.

◆ ERROR_STATE

list homeassistant.components.worxlandroid.sensor.ERROR_STATE
Initial value:
1 = [
2  "blade-blocked",
3  "repositioning-error",
4  "wire-bounced",
5  "blade-blocked",
6  "outside-wire",
7  "mower-lifted",
8  "alarm-6",
9  "upside-down",
10  "alarm-8",
11  "collision-sensor-blocked",
12  "mower-tilted",
13  "charge-error",
14  "battery-error",
15 ]

Definition at line 37 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.worxlandroid.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_PIN): vol.All(vol.Coerce(str), vol.Match(r"\d{4}")),
5  vol.Optional(CONF_ALLOW_UNREACHABLE, default=True): cv.boolean,
6  vol.Optional(CONF_TIMEOUT, default=DEFAULT_TIMEOUT): cv.positive_int,
7  }
8 )

Definition at line 28 of file sensor.py.