File: hub2.py

package info (click to toggle)
pyswitchbot 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: python: 14,812; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
Mapping of light levels to lux measurement values for SwitchBot Hub 2.

Source: After-sales consultation, line chart data provided by switchbot developers
"""

LIGHT_INTENSITY_MAP = {
    1: 0,
    2: 10,
    3: 20,
    4: 30,
    5: 40,
    6: 50,
    7: 60,
    8: 70,
    9: 80,
    10: 90,
    11: 105,
    12: 205,
    13: 317,
    14: 416,
    15: 510,
    16: 610,
    17: 707,
    18: 801,
    19: 897,
    20: 1023,
    21: 1091,
}