Static Public Attributes | |
| dictionary | READINGS |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Member Functions | |
| def | _check_max (self, sensor_name, value, params) |
| def | _check_min (self, sensor_name, value, params) |
| def | _load_history_from_db (self) |
| None | _state_changed_event (self, Event[EventStateChangedData] event) |
| def | _update_state (self) |
Private Attributes | |
| _battery | |
| _brightness | |
| _brightness_history | |
| _conductivity | |
| _conf_check_days | |
| _config | |
| _moisture | |
| _name | |
| _problems | |
| _readingmap | |
| _sensormap | |
| _state | |
| _temperature | |
| _unit_of_measurement | |
Static Private Attributes | |
| bool | _attr_should_poll = False |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Plant monitors the well-being of a plant. It also checks the measurements against configurable min and max values. DEVELOPMENT OF THE PLANT INTEGRATION IS FROZEN PENDING A DESIGN EVALUATION.
Definition at line 130 of file __init__.py.
| def homeassistant.components.plant.Plant.__init__ | ( | self, | |
| name, | |||
| config | |||
| ) |
Initialize the Plant component.
Definition at line 169 of file __init__.py.
|
private |
If configured, check the value against the defined maximum value.
Definition at line 280 of file __init__.py.
|
private |
If configured, check the value against the defined minimum value.
Definition at line 272 of file __init__.py.
|
private |
Load the history of the brightness values from the database. This only needs to be done once during startup.
Definition at line 305 of file __init__.py.
|
private |
Sensor state change event.
Definition at line 193 of file __init__.py.
|
private |
Update the state of the class based sensor data.
Definition at line 242 of file __init__.py.
| def homeassistant.components.plant.Plant.async_added_to_hass | ( | self | ) |
After being added to hass, load from history.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 288 of file __init__.py.
| def homeassistant.components.plant.Plant.extra_state_attributes | ( | self | ) |
Return the attributes of the entity. Provide the individual measurements from the sensor in the attributes of the device.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 348 of file __init__.py.
| def homeassistant.components.plant.Plant.name | ( | self | ) |
Return the name of the sensor.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 338 of file __init__.py.
| def homeassistant.components.plant.Plant.state | ( | self | ) |
Return the state of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 343 of file __init__.py.
| None homeassistant.components.plant.Plant.state_changed | ( | self, | |
| str | entity_id, | ||
| State | None | new_state | ||
| ) |
Update the sensor status.
Definition at line 198 of file __init__.py.
|
staticprivate |
Definition at line 140 of file __init__.py.
|
private |
Definition at line 180 of file __init__.py.
|
private |
Definition at line 184 of file __init__.py.
|
private |
Definition at line 190 of file __init__.py.
|
private |
Definition at line 182 of file __init__.py.
|
private |
Definition at line 187 of file __init__.py.
|
private |
Definition at line 171 of file __init__.py.
|
private |
Definition at line 181 of file __init__.py.
|
private |
Definition at line 179 of file __init__.py.
|
private |
Definition at line 185 of file __init__.py.
|
private |
Definition at line 173 of file __init__.py.
|
private |
Definition at line 172 of file __init__.py.
|
private |
Definition at line 178 of file __init__.py.
|
private |
Definition at line 183 of file __init__.py.
|
private |
Definition at line 174 of file __init__.py.
|
static |
Definition at line 142 of file __init__.py.