Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant_sdk.notify Namespace Reference

Classes

class  BroadcastNotificationService
 

Functions

BaseNotificationService async_get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 
tuple[str, str] broadcast_commands (str language_code)
 

Variables

dictionary LANG_TO_BROADCAST_COMMAND
 

Detailed Description

Support for Google Assistant SDK broadcast notifications.

Function Documentation

◆ async_get_service()

BaseNotificationService homeassistant.components.google_assistant_sdk.notify.async_get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the broadcast notification service.

Definition at line 40 of file notify.py.

◆ broadcast_commands()

tuple[str, str] homeassistant.components.google_assistant_sdk.notify.broadcast_commands ( str  language_code)
Get the commands for broadcasting a message for the given language code.

Return type is a tuple where [0] is for broadcasting to your entire home,
while [1] is for broadcasting to a specific target.

Definition at line 31 of file notify.py.

Variable Documentation

◆ LANG_TO_BROADCAST_COMMAND

dictionary homeassistant.components.google_assistant_sdk.notify.LANG_TO_BROADCAST_COMMAND
Initial value:
1 = {
2  "en": ("broadcast {0}", "broadcast to {1} {0}"),
3  "de": (
4  "Nachricht an alle {0}", # codespell:ignore alle
5  "Nachricht an alle an {1} {0}", # codespell:ignore alle
6  ),
7  "es": ("Anuncia {0}", "Anuncia en {1} {0}"),
8  "fr": ("Diffuse {0}", "Diffuse dans {1} {0}"),
9  "it": ("Trasmetti a tutti {0}", "Trasmetti in {1} {0}"),
10  "ja": ("{0}とブロードキャストして", "{0}と{1}にブロードキャストして"),
11  "ko": ("{0} 라고 방송해 줘", "{0} 라고 {1}에 방송해 줘"),
12  "pt": ("Transmitir {0}", "Transmitir {0} para {1}"),
13 }

Definition at line 16 of file notify.py.