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

Variables

string ATTR_DATA = "data"
 
string ATTR_MESSAGE = "message"
 
string ATTR_RECIPIENTS = "recipients"
 
string ATTR_TARGET = "target"
 
string ATTR_TITLE = "title"
 
string DOMAIN = "notify"
 
 LOGGER = logging.getLogger(__package__)
 
 NOTIFY_SERVICE_SCHEMA
 
string SERVICE_NOTIFY = "notify"
 
string SERVICE_PERSISTENT_NOTIFICATION = "persistent_notification"
 
string SERVICE_SEND_MESSAGE = "send_message"
 

Detailed Description

Provide common notify constants.

Variable Documentation

◆ ATTR_DATA

string homeassistant.components.notify.const.ATTR_DATA = "data"

Definition at line 9 of file const.py.

◆ ATTR_MESSAGE

string homeassistant.components.notify.const.ATTR_MESSAGE = "message"

Definition at line 12 of file const.py.

◆ ATTR_RECIPIENTS

string homeassistant.components.notify.const.ATTR_RECIPIENTS = "recipients"

Definition at line 18 of file const.py.

◆ ATTR_TARGET

string homeassistant.components.notify.const.ATTR_TARGET = "target"

Definition at line 15 of file const.py.

◆ ATTR_TITLE

string homeassistant.components.notify.const.ATTR_TITLE = "title"

Definition at line 21 of file const.py.

◆ DOMAIN

string homeassistant.components.notify.const.DOMAIN = "notify"

Definition at line 23 of file const.py.

◆ LOGGER

homeassistant.components.notify.const.LOGGER = logging.getLogger(__package__)

Definition at line 25 of file const.py.

◆ NOTIFY_SERVICE_SCHEMA

homeassistant.components.notify.const.NOTIFY_SERVICE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(ATTR_MESSAGE): cv.string,
4  vol.Optional(ATTR_TITLE): cv.string,
5  vol.Optional(ATTR_TARGET): vol.All(cv.ensure_list, [cv.string]),
6  vol.Optional(ATTR_DATA): dict,
7  }
8 )

Definition at line 31 of file const.py.

◆ SERVICE_NOTIFY

string homeassistant.components.notify.const.SERVICE_NOTIFY = "notify"

Definition at line 27 of file const.py.

◆ SERVICE_PERSISTENT_NOTIFICATION

string homeassistant.components.notify.const.SERVICE_PERSISTENT_NOTIFICATION = "persistent_notification"

Definition at line 29 of file const.py.

◆ SERVICE_SEND_MESSAGE

string homeassistant.components.notify.const.SERVICE_SEND_MESSAGE = "send_message"

Definition at line 28 of file const.py.