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

Classes

class  GoogleWifiAPI
 
class  GoogleWifiSensor
 
class  GoogleWifiSensorEntityDescription
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_CURRENT_VERSION = "current_version"
 
string ATTR_LAST_RESTART = "last_restart"
 
string ATTR_LOCAL_IP = "local_ip"
 
string ATTR_NEW_VERSION = "new_version"
 
string ATTR_STATUS = "status"
 
string ATTR_UPTIME = "uptime"
 
string DEFAULT_HOST = "testwifi.here"
 
string DEFAULT_NAME = "google_wifi"
 
string ENDPOINT = "/api/v1/status"
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=1)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for retrieving status info from Google Wifi/OnHub routers.

Function Documentation

◆ setup_platform()

None homeassistant.components.google_wifi.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Google Wifi sensor.

Definition at line 107 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 29 of file sensor.py.

◆ ATTR_CURRENT_VERSION

string homeassistant.components.google_wifi.sensor.ATTR_CURRENT_VERSION = "current_version"

Definition at line 31 of file sensor.py.

◆ ATTR_LAST_RESTART

string homeassistant.components.google_wifi.sensor.ATTR_LAST_RESTART = "last_restart"

Definition at line 32 of file sensor.py.

◆ ATTR_LOCAL_IP

string homeassistant.components.google_wifi.sensor.ATTR_LOCAL_IP = "local_ip"

Definition at line 33 of file sensor.py.

◆ ATTR_NEW_VERSION

string homeassistant.components.google_wifi.sensor.ATTR_NEW_VERSION = "new_version"

Definition at line 34 of file sensor.py.

◆ ATTR_STATUS

string homeassistant.components.google_wifi.sensor.ATTR_STATUS = "status"

Definition at line 35 of file sensor.py.

◆ ATTR_UPTIME

string homeassistant.components.google_wifi.sensor.ATTR_UPTIME = "uptime"

Definition at line 36 of file sensor.py.

◆ DEFAULT_HOST

string homeassistant.components.google_wifi.sensor.DEFAULT_HOST = "testwifi.here"

Definition at line 38 of file sensor.py.

◆ DEFAULT_NAME

string homeassistant.components.google_wifi.sensor.DEFAULT_NAME = "google_wifi"

Definition at line 39 of file sensor.py.

◆ ENDPOINT

string homeassistant.components.google_wifi.sensor.ENDPOINT = "/api/v1/status"

Definition at line 41 of file sensor.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.google_wifi.sensor.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=1)

Definition at line 43 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.google_wifi.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
4  vol.Optional(CONF_MONITORED_CONDITIONS, default=SENSOR_KEYS): vol.All(
5  cv.ensure_list, [vol.In(SENSOR_KEYS)]
6  ),
7  vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
8  }
9 )

Definition at line 96 of file sensor.py.