Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.ecovacs.lawn_mower Namespace Reference

Classes

class  EcovacsMower
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary _STATE_TO_MOWER_STATE
 

Detailed Description

Ecovacs mower entity.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.ecovacs.lawn_mower.async_setup_entry ( HomeAssistant  hass,
EcovacsConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Ecovacs mowers.

Definition at line 37 of file lawn_mower.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.ecovacs.lawn_mower._LOGGER = logging.getLogger(__name__)
private

Definition at line 24 of file lawn_mower.py.

◆ _STATE_TO_MOWER_STATE

dictionary homeassistant.components.ecovacs.lawn_mower._STATE_TO_MOWER_STATE
private
Initial value:
1 = {
2  State.IDLE: LawnMowerActivity.PAUSED,
3  State.CLEANING: LawnMowerActivity.MOWING,
4  State.RETURNING: LawnMowerActivity.RETURNING,
5  State.DOCKED: LawnMowerActivity.DOCKED,
6  State.ERROR: LawnMowerActivity.ERROR,
7  State.PAUSED: LawnMowerActivity.PAUSED,
8 }

Definition at line 27 of file lawn_mower.py.