Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """smarttub constants."""
2 
3 DOMAIN = "smarttub"
4 
5 EVENT_SMARTTUB = "smarttub"
6 
7 SMARTTUB_CONTROLLER = "smarttub_controller"
8 
9 SCAN_INTERVAL = 60
10 
11 POLLING_TIMEOUT = 10
12 API_TIMEOUT = 5
13 
14 DEFAULT_MIN_TEMP = 18.5
15 DEFAULT_MAX_TEMP = 40
16 
17 # the device doesn't remember any state for the light, so we have to choose a
18 # mode (smarttub.SpaLight.LightMode) when turning it on. There is no white
19 # mode.
20 DEFAULT_LIGHT_EFFECT = "purple"
21 # default to 50% brightness
22 DEFAULT_LIGHT_BRIGHTNESS = 128
23 
24 ATTR_ERRORS = "errors"
25 ATTR_LIGHTS = "lights"
26 ATTR_PUMPS = "pumps"
27 ATTR_REMINDERS = "reminders"
28 ATTR_STATUS = "status"