<reponame>elric91/ZiGate<filename>pyzigate/parameters.py
#! /usr/bin/python3

# states & properties
ZGT_BATTERY = 'battery power'
ZGT_TEMPERATURE = 'temperature'
ZGT_PRESSURE = 'pressure'
ZGT_DETAILED_PRESSURE = 'detailed pressure'
ZGT_HUMIDITY = 'humidity'
ZGT_LAST_SEEN = 'last seen'
ZGT_ILLUMINANCE_MEASUREMENT = 'illuminance'
ZGT_EVENT = 'event'
ZGT_EVENT_PRESENCE = 'presence detected'
ZGT_STATE = 'state'
ZGT_STATE_ON = 'on-press'
ZGT_STATE_MULTI = 'multi_{}'
ZGT_STATE_OFF = 'off-release'
ZGT_CLUSTER_UNKNOWN = 'cluster unknwon'

# commands for external use
ZGT_CMD_NEW_DEVICE = 'new device'
ZGT_CMD_LIST_DEVICES = 'list devices'
ZGT_CMD_LIST_ENDPOINTS = 'list endpoints'

# clusters
CLUSTERS = {b'0000': 'General : Basic',
            b'0001': 'General : Power Config',
            b'0002': 'General : Temperature Config',
            b'0003': 'General : Identify',
            b'0004': 'General : Groups',
            b'0005': 'General : Scenes',
            b'0006': 'General : On/Off',
            b'0007': 'General : On/Off Config',
            b'0008': 'General : Level Control',
            b'0009': 'General : Alarms',
            b'000A': 'General : Time',
            b'000F': 'General : Binary Input Basic',
            b'0020': 'General : Poll Control',
            b'0019': 'General : OTA',
            b'0101': 'General : Door Lock',
            b'0201': 'HVAC : Thermostat',
            b'0202': 'HVAC : Fan Control',
            b'0300': 'Lighting : Color Control',
            b'0400': 'Measurement : Illuminance',
            b'0402': 'Measurement : Temperature',
            b'0403': 'Measurement : Atmospheric Pressure',
            b'0405': 'Measurement : Humidity',
            b'0406': 'Measurement : Occupancy Sensing',
            b'0500': 'Security & Safety : IAS Zone',
            b'0702': 'Smart Energy : Metering',
            b'0B05': 'Misc : Diagnostics',
            b'1000': 'ZLL : Commissioning',
            b'FF01': 'Xiaomi private',
            b'FF02': 'Xiaomi private'
            }


#! /usr/bin/python3

# states & properties
ZGT_BATTERY = 'battery power'
ZGT_TEMPERATURE = 'temperature'
ZGT_PRESSURE = 'pressure'
ZGT_DETAILED_PRESSURE = 'detailed pressure'
ZGT_HUMIDITY = 'humidity'
ZGT_LAST_SEEN = 'last seen'
ZGT_ILLUMINANCE_MEASUREMENT = 'illuminance'
ZGT_EVENT = 'event'
ZGT_EVENT_PRESENCE = 'presence detected'
ZGT_STATE = 'state'
ZGT_STATE_ON = 'on-press'
ZGT_STATE_MULTI = 'multi_{}'
ZGT_STATE_OFF = 'off-release'
ZGT_CLUSTER_UNKNOWN = 'cluster unknwon'

# commands for external use
ZGT_CMD_NEW_DEVICE = 'new device'
ZGT_CMD_LIST_DEVICES = 'list devices'
ZGT_CMD_LIST_ENDPOINTS = 'list endpoints'

# clusters
CLUSTERS = {b'0000': 'General : Basic',
            b'0001': 'General : Power Config',
            b'0002': 'General : Temperature Config',
            b'0003': 'General : Identify',
            b'0004': 'General : Groups',
            b'0005': 'General : Scenes',
            b'0006': 'General : On/Off',
            b'0007': 'General : On/Off Config',
            b'0008': 'General : Level Control',
            b'0009': 'General : Alarms',
            b'000A': 'General : Time',
            b'000F': 'General : Binary Input Basic',
            b'0020': 'General : Poll Control',
            b'0019': 'General : OTA',
            b'0101': 'General : Door Lock',
            b'0201': 'HVAC : Thermostat',
            b'0202': 'HVAC : Fan Control',
            b'0300': 'Lighting : Color Control',
            b'0400': 'Measurement : Illuminance',
            b'0402': 'Measurement : Temperature',
            b'0403': 'Measurement : Atmospheric Pressure',
            b'0405': 'Measurement : Humidity',
            b'0406': 'Measurement : Occupancy Sensing',
            b'0500': 'Security & Safety : IAS Zone',
            b'0702': 'Smart Energy : Metering',
            b'0B05': 'Misc : Diagnostics',
            b'1000': 'ZLL : Commissioning',
            b'FF01': 'Xiaomi private',
            b'FF02': 'Xiaomi private'
            }
#! /usr/bin/python3 # states & properties # commands for external use # clusters