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

Classes

class  DateTimeJSONEncoder
 

Functions

bool setup (HomeAssistant hass, ConfigType yaml_config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_FILTER = "filter"
 
string CONF_PROJECT_ID = "project_id"
 
string CONF_SERVICE_PRINCIPAL = "credentials_json"
 
string CONF_TOPIC_NAME = "topic_name"
 
 CONFIG_SCHEMA
 
string DOMAIN = "google_pubsub"
 

Detailed Description

Support for Google Cloud Pub/Sub.

Function Documentation

◆ setup()

bool homeassistant.components.google_pubsub.setup ( HomeAssistant  hass,
ConfigType  yaml_config 
)
Activate Google Pub/Sub component.

Definition at line 43 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 19 of file __init__.py.

◆ CONF_FILTER

string homeassistant.components.google_pubsub.CONF_FILTER = "filter"

Definition at line 26 of file __init__.py.

◆ CONF_PROJECT_ID

string homeassistant.components.google_pubsub.CONF_PROJECT_ID = "project_id"

Definition at line 23 of file __init__.py.

◆ CONF_SERVICE_PRINCIPAL

string homeassistant.components.google_pubsub.CONF_SERVICE_PRINCIPAL = "credentials_json"

Definition at line 25 of file __init__.py.

◆ CONF_TOPIC_NAME

string homeassistant.components.google_pubsub.CONF_TOPIC_NAME = "topic_name"

Definition at line 24 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.google_pubsub.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Required(CONF_PROJECT_ID): cv.string,
6  vol.Required(CONF_TOPIC_NAME): cv.string,
7  vol.Required(CONF_SERVICE_PRINCIPAL): cv.string,
8  vol.Required(CONF_FILTER): FILTER_SCHEMA,
9  }
10  )
11  },
12  extra=vol.ALLOW_EXTRA,
13 )

Definition at line 28 of file __init__.py.

◆ DOMAIN

string homeassistant.components.google_pubsub.DOMAIN = "google_pubsub"

Definition at line 21 of file __init__.py.