Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Motionblinds component."""
2 
3 from homeassistant.const import Platform
4 
5 DOMAIN = "motion_blinds"
6 MANUFACTURER = "Motionblinds, Coulisse B.V."
7 DEFAULT_GATEWAY_NAME = "Motionblinds Gateway"
8 
9 PLATFORMS = [Platform.BUTTON, Platform.COVER, Platform.SENSOR]
10 
11 CONF_WAIT_FOR_PUSH = "wait_for_push"
12 CONF_INTERFACE = "interface"
13 DEFAULT_WAIT_FOR_PUSH = False
14 DEFAULT_INTERFACE = "any"
15 
16 KEY_GATEWAY = "gateway"
17 KEY_API_LOCK = "api_lock"
18 KEY_COORDINATOR = "coordinator"
19 KEY_MULTICAST_LISTENER = "multicast_listener"
20 KEY_SETUP_LOCK = "setup_lock"
21 KEY_UNSUB_STOP = "unsub_stop"
22 
23 ATTR_WIDTH = "width"
24 ATTR_ABSOLUTE_POSITION = "absolute_position"
25 ATTR_AVAILABLE = "available"
26 
27 SERVICE_SET_ABSOLUTE_POSITION = "set_absolute_position"
28 
29 UPDATE_INTERVAL = 600
30 UPDATE_INTERVAL_FAST = 60
31 UPDATE_DELAY_STOP = 3
32 UPDATE_INTERVAL_MOVING = 5
33 UPDATE_INTERVAL_MOVING_WIFI = 45