File: hub3.py

package info (click to toggle)
pyswitchbot 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: python: 15,513; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Mapping of light levels to lux measurement values for SwitchBot Hub 3.

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

LIGHT_INTENSITY_MAP = {
    1: 0,
    2: 50,
    3: 90,
    4: 205,
    5: 317,
    6: 510,
    7: 610,
    8: 707,
    9: 801,
    10: 1023,
}