Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.plaato Namespace Reference

Namespaces

 binary_sensor
 
 config_flow
 
 const
 
 coordinator
 
 entity
 
 sensor
 

Functions

None _async_update_listener (HomeAssistant hass, ConfigEntry entry)
 
def _device_id (data)
 
def _set_entry_data (entry, hass, coordinator=None, device_id=None)
 
def async_setup_coordinator (HomeAssistant hass, ConfigEntry entry)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
def async_setup_webhook (HomeAssistant hass, ConfigEntry entry)
 
def async_unload_coordinator (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
def async_unload_platforms (HomeAssistant hass, ConfigEntry entry, platforms)
 
def async_unload_webhook (HomeAssistant hass, ConfigEntry entry)
 
web.Response|None handle_webhook (HomeAssistant hass, str webhook_id, web.Request request)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list DEPENDENCIES = ["webhook"]
 
string SENSOR_DATA_KEY = f"{DOMAIN}.{SENSOR}"
 
string SENSOR_UPDATE = f"{DOMAIN}_sensor_update"
 
 WEBHOOK_SCHEMA
 

Detailed Description

Support for Plaato devices.

Function Documentation

◆ _async_update_listener()

None homeassistant.components.plaato._async_update_listener ( HomeAssistant  hass,
ConfigEntry  entry 
)
private
Handle options update.

Definition at line 182 of file __init__.py.

◆ _device_id()

def homeassistant.components.plaato._device_id (   data)
private
Return name of device sensor.

Definition at line 205 of file __init__.py.

◆ _set_entry_data()

def homeassistant.components.plaato._set_entry_data (   entry,
  hass,
  coordinator = None,
  device_id = None 
)
private

Definition at line 134 of file __init__.py.

◆ async_setup_coordinator()

def homeassistant.components.plaato.async_setup_coordinator ( HomeAssistant  hass,
ConfigEntry  entry 
)
Init auth token based on config entry.

Definition at line 114 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.plaato.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Configure based on config entry.

Definition at line 85 of file __init__.py.

◆ async_setup_webhook()

def homeassistant.components.plaato.async_setup_webhook ( HomeAssistant  hass,
ConfigEntry  entry 
)
Init webhook based on config entry.

Definition at line 102 of file __init__.py.

◆ async_unload_coordinator()

def homeassistant.components.plaato.async_unload_coordinator ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload auth token based entry.

Definition at line 167 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.plaato.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 149 of file __init__.py.

◆ async_unload_platforms()

def homeassistant.components.plaato.async_unload_platforms ( HomeAssistant  hass,
ConfigEntry  entry,
  platforms 
)
Unload platforms.

Definition at line 173 of file __init__.py.

◆ async_unload_webhook()

def homeassistant.components.plaato.async_unload_webhook ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload webhook based entry.

Definition at line 160 of file __init__.py.

◆ handle_webhook()

web.Response | None homeassistant.components.plaato.handle_webhook ( HomeAssistant  hass,
str  webhook_id,
web.Request   request 
)
Handle incoming webhook from Plaato.

Definition at line 187 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.plaato._LOGGER = logging.getLogger(__name__)
private

Definition at line 55 of file __init__.py.

◆ DEPENDENCIES

list homeassistant.components.plaato.DEPENDENCIES = ["webhook"]

Definition at line 57 of file __init__.py.

◆ SENSOR_DATA_KEY

string homeassistant.components.plaato.SENSOR_DATA_KEY = f"{DOMAIN}.{SENSOR}"

Definition at line 60 of file __init__.py.

◆ SENSOR_UPDATE

string homeassistant.components.plaato.SENSOR_UPDATE = f"{DOMAIN}_sensor_update"

Definition at line 59 of file __init__.py.

◆ WEBHOOK_SCHEMA

homeassistant.components.plaato.WEBHOOK_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(ATTR_DEVICE_NAME): cv.string,
4  vol.Required(ATTR_DEVICE_ID): cv.positive_int,
5  vol.Required(ATTR_TEMP_UNIT): vol.In(
6  [UnitOfTemperature.CELSIUS, UnitOfTemperature.FAHRENHEIT]
7  ),
8  vol.Required(ATTR_VOLUME_UNIT): vol.In(
9  [UnitOfVolume.LITERS, UnitOfVolume.GALLONS]
10  ),
11  vol.Required(ATTR_BPM): cv.positive_int,
12  vol.Required(ATTR_TEMP): vol.Coerce(float),
13  vol.Required(ATTR_SG): vol.Coerce(float),
14  vol.Required(ATTR_OG): vol.Coerce(float),
15  vol.Required(ATTR_ABV): vol.Coerce(float),
16  vol.Required(ATTR_CO2_VOLUME): vol.Coerce(float),
17  vol.Required(ATTR_BATCH_VOLUME): vol.Coerce(float),
18  vol.Required(ATTR_BUBBLES): cv.positive_int,
19  },
20  extra=vol.ALLOW_EXTRA,
21 )

Definition at line 62 of file __init__.py.