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

Variables

string ATTR_ADDRESS = "address"
 
string ATTR_BLINK_RATE = "blink_rate"
 
string ATTR_BRIGHTNESS = "brightness"
 
string ATTR_BRIGHTNESS_PCT = "brightness_pct"
 
string ATTR_RATE = "rate"
 
string CONF_NETWORK = "network"
 
 default
 
string DOMAIN = "upb"
 
string EVENT_UPB_SCENE_CHANGED = "upb.scene_changed"
 
 UPB_BRIGHTNESS_RATE_SCHEMA
 
 VALID_BRIGHTNESS = vol.All(vol.Coerce(int), vol.Clamp(min=0, max=255))
 
 VALID_BRIGHTNESS_PCT = vol.All(vol.Coerce(float), vol.Range(min=0, max=100))
 
 VALID_RATE = vol.All(vol.Coerce(float), vol.Clamp(min=-1, max=3600))
 
 VolDictType
 

Detailed Description

Support the UPB PIM.

Variable Documentation

◆ ATTR_ADDRESS

string homeassistant.components.upb.const.ATTR_ADDRESS = "address"

Definition at line 10 of file const.py.

◆ ATTR_BLINK_RATE

homeassistant.components.upb.const.ATTR_BLINK_RATE = "blink_rate"

Definition at line 11 of file const.py.

◆ ATTR_BRIGHTNESS

string homeassistant.components.upb.const.ATTR_BRIGHTNESS = "brightness"

Definition at line 12 of file const.py.

◆ ATTR_BRIGHTNESS_PCT

string homeassistant.components.upb.const.ATTR_BRIGHTNESS_PCT = "brightness_pct"

Definition at line 13 of file const.py.

◆ ATTR_RATE

string homeassistant.components.upb.const.ATTR_RATE = "rate"

Definition at line 14 of file const.py.

◆ CONF_NETWORK

string homeassistant.components.upb.const.CONF_NETWORK = "network"

Definition at line 15 of file const.py.

◆ default

homeassistant.components.upb.const.default

Definition at line 34 of file const.py.

◆ DOMAIN

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

Definition at line 8 of file const.py.

◆ EVENT_UPB_SCENE_CHANGED

string homeassistant.components.upb.const.EVENT_UPB_SCENE_CHANGED = "upb.scene_changed"

Definition at line 16 of file const.py.

◆ UPB_BRIGHTNESS_RATE_SCHEMA

homeassistant.components.upb.const.UPB_BRIGHTNESS_RATE_SCHEMA
Initial value:
1 = vol.All(
2  cv.has_at_least_one_key(ATTR_BRIGHTNESS, ATTR_BRIGHTNESS_PCT),
3  cv.make_entity_service_schema(
4  {
5  vol.Exclusive(ATTR_BRIGHTNESS, ATTR_BRIGHTNESS): VALID_BRIGHTNESS,
6  vol.Exclusive(ATTR_BRIGHTNESS_PCT, ATTR_BRIGHTNESS): VALID_BRIGHTNESS_PCT,
7  vol.Optional(ATTR_RATE, default=-1): VALID_RATE,
8  }
9  ),
10 )

Definition at line 22 of file const.py.

◆ VALID_BRIGHTNESS

homeassistant.components.upb.const.VALID_BRIGHTNESS = vol.All(vol.Coerce(int), vol.Clamp(min=0, max=255))

Definition at line 18 of file const.py.

◆ VALID_BRIGHTNESS_PCT

homeassistant.components.upb.const.VALID_BRIGHTNESS_PCT = vol.All(vol.Coerce(float), vol.Range(min=0, max=100))

Definition at line 19 of file const.py.

◆ VALID_RATE

homeassistant.components.upb.const.VALID_RATE = vol.All(vol.Coerce(float), vol.Clamp(min=-1, max=3600))

Definition at line 20 of file const.py.

◆ VolDictType

homeassistant.components.upb.const.VolDictType

Definition at line 33 of file const.py.