HAP-pythonの使い方

#サンプルプログラム
##コーディングする場合、下記のプログラムを参考に
###1.使用するカテゴリを書く
###2.使用するサービスほ書く
###3.Switch サービスのRequiredCharacteristicsである　'On'を指定。
###4.iPhone Home メニューに表示される名前「照明」を指定。
```home.py
import logging,signal
from pyhap.accessory import Accessory, Bridge
from pyhap.accessory_driver import AccessoryDriver
from pyhap.const import (CATEGORY_SWITCH) #使用するカテゴリを書く
logging.basicConfig(level=logging.INFO, format="[%(module)s] %(message)s")
class SW(Accessory):
     category = CATEGORY_SWITCH　#使用するカテゴリを書く
     def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        serv_tv = self.add_preload_service('Switch') #使用するサービスほ書く
        # Switch サービスのRequiredCharacteristicsである　'On'を指定。
        self.char_on = serv_tv.configure_char('On', setter_callback=self.sw)
     def sw(self,value):
        logging.info("スウィッチ: %s", value)
def get_bridge(driver):
    bridge = Bridge(driver, 'Bridge')
    # iPhone Home メニューに表示される名前「照明」を指定。
    bridge.add_accessory(SW(driver, '照明'))
    return bridge
driver = AccessoryDriver(port=51826, persist_file='home.state')
driver.add_accessory(accessory=get_bridge(driver))
signal.signal(signal.SIGTERM, driver.signal_handler)
driver.start()
```
#HAP-python　ブログらミンク時のカテゴリ

|Category|Value|日本語 |
|-----------------------------------------|------|------|
OTHER|1|その他の設備|
BRIDGE|2|						ブリッジ|
FAN|3|							扇風機|
GARAGE_DOOR_OPENER|4|			ガレージ　シャッター |
LIGHTBULB|5|					電球|
DOOR_LOCK|6|					電気錠 |
OUTLET|7|						アウトレット|
SWITCH|8|						スイッチ|
THERMOSTAT|9|					サーモスタット|
SENSOR|10|						センサー|
ALARM_SYSTEM|11|				アラーム |
DOOR|12|						ドア| 13 |
WINDOW_COVERING|14|				雨戸|
PROGRAMMABLE_SWITCH|15|タイマースウィッチ |
RANGE_EXTENDER|16|発電機|
CAMERA|17|カメラ|
VIDEO_DOOR_BELL|18|ドアカメラ呼び鈴 |
AIR_PURIFIER|19|空気清浄機 |
HEATER|20|						ヒーター|
AIR_CONDITIONER|21|				エアコン |
HUMIDIFIER|22|					加湿器|
DEHUMIDIFIER|23|				除湿機|
SPEAKER|26|						スピーカー|
SPRINKLER|28|					スプリンクラー|
FAUCET|29|						蛇口 |
SHOWER_HEAD|30|					シャワー |
TELEVISION|31|					テレビ|
TARGET_CONTROLLER|32|			リモコン|

#Characteristics
```characctor.py
{
   "AccessoryFlags": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000A6-0000-1000-8000-0026BB765291",
      "ValidBits": {
         "0": "Requires Additional Setup"
      }
   },
   "Active": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000B0-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Active": 1,
         "Inactive": 0
      }
   },
   "ActiveIdentifier": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000E7-0000-1000-8000-0026BB765291"
   },
   "AdministratorOnlyAccess": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000001-0000-1000-8000-0026BB765291"
   },
   "AirParticulateDensity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000064-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "AirParticulateSize": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000065-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "10\u03bcm": 1,
         "2.5\u03bcm": 0
      }
   },
   "AirQuality": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000095-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Excellent": 1,
         "Fair": 3,
         "Good": 2,
         "Inferior": 4,
         "Poor": 5,
         "Unknown": 0
      }
   },
   "AudioFeedback": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000005-0000-1000-8000-0026BB765291"
   },
   "BatteryLevel": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000068-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "Brightness": {
      "Format": "int",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000008-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "CarbonDioxideDetected": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000092-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "CO2LevelsAbnormal": 1,
         "CO2LevelsNormal": 0
      }
   },
   "CarbonDioxideLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000093-0000-1000-8000-0026BB765291",
      "maxValue": 100000,
      "minValue": 0
   },
   "CarbonDioxidePeakLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000094-0000-1000-8000-0026BB765291",
      "maxValue": 100000,
      "minValue": 0
   },
   "CarbonMonoxideDetected": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000069-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "COLevelsAbnormal": 1,
         "COLevelsNormal": 0
      }
   },
   "CarbonMonoxideLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000090-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minValue": 0
   },
   "CarbonMonoxidePeakLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000091-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minValue": 0
   },
   "ChargingState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000008F-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Charging": 1,
         "NotChargeable": 2,
         "NotCharging": 0
      }
   },
   "ClosedCaptions": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000DD-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Disabled": 0,
         "Enabled": 1
      }
   },
   "ColorTemperature": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000CE-0000-1000-8000-0026BB765291",
      "maxValue": 500,
      "minStep": 1,
      "minValue": 140
   },
   "ConfiguredName": {
      "Format": "string",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000E3-0000-1000-8000-0026BB765291"
   },
   "ContactSensorState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000006A-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "ContactDetected": 0,
         "ContactNotDetected": 1
      }
   },
   "CoolingThresholdTemperature": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000000D-0000-1000-8000-0026BB765291",
      "maxValue": 35,
      "minStep": 0.1,
      "minValue": 10,
      "unit": "celsius"
   },
   "CurrentAirPurifierState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000A9-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Idle": 1,
         "Inactive": 0,
         "PurifyingAir": 2
      }
   },
   "CurrentAmbientLightLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000006B-0000-1000-8000-0026BB765291",
      "maxValue": 100000,
      "minValue": 0.0001,
      "unit": "lux"
   },
   "CurrentDoorState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000000E-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Closed": 1,
         "Closing": 3,
         "Open": 0,
         "Opening": 2,
         "Stopped": 4
      }
   },
   "CurrentFanState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000AF-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "BlowingAir": 2,
         "Idle": 1,
         "Inactive": 0
      }
   },
   "CurrentHeaterCoolerState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000B1-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Cooling": 3,
         "Heating": 2,
         "Idle": 1,
         "Inactive": 0
      }
   },
   "CurrentHeatingCoolingState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000000F-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Cool": 2,
         "Heat": 1,
         "Off": 0
      }
   },
   "CurrentHorizontalTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000006C-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "CurrentHumidifierDehumidifierState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000B3-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Dehumidifying": 3,
         "Humidifying": 2,
         "Idle": 1,
         "Inactive": 0
      }
   },
   "CurrentMediaState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000E0-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Play": 0,
         "Pause": 1,
         "Stop": 2,
         "Unknown": 3
      }
   },
   "CurrentPosition": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000006D-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "CurrentRelativeHumidity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000010-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "CurrentSlatState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000AA-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Fixed": 0,
         "Jammed": 1,
         "Swinging": 2
      }
   },
   "CurrentTemperature": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000011-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 0.1,
      "minValue": -273.1,
      "unit": "celsius"
   },
   "CurrentTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C1-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "CurrentVerticalTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000006E-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "CurrentVisibilityState":{
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000135-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Shown": 0,
         "Hidden": 1
      }
   },
   "DigitalZoom": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011D-0000-1000-8000-0026BB765291"
   },
   "DisplayOrder": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000136-0000-1000-8000-0026BB765291"
   },
   "FilterChangeIndication": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000AC-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "ChangeFilter": 1,
         "FilterOK": 0
      }
   },
   "FilterLifeLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000AB-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minValue": 0,
      "stepValue": 1
   },
   "FirmwareRevision": {
      "Format": "string",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000052-0000-1000-8000-0026BB765291"
   },
   "HardwareRevision": {
      "Format": "string",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000053-0000-1000-8000-0026BB765291"
   },
   "HeatingThresholdTemperature": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000012-0000-1000-8000-0026BB765291",
      "maxValue": 25,
      "minStep": 0.1,
      "minValue": 0,
      "unit": "celsius"
   },
   "HoldPosition": {
      "Format": "bool",
      "Permissions": [
         "pw"
      ],
      "UUID": "0000006F-0000-1000-8000-0026BB765291"
   },
   "Hue": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000013-0000-1000-8000-0026BB765291",
      "maxValue": 360,
      "minStep": 1,
      "minValue": 0,
      "unit": "arcdegrees"
   },
   "Identifier": {
      "Format": "uint32",
      "Permissions": [
         "pr"
      ],
      "UUID": "000000E6-0000-1000-8000-0026BB765291",
      "minStep": 1,
      "minValue": 0
   },
   "Identify": {
      "Format": "bool",
      "Permissions": [
         "pw"
      ],
      "UUID": "00000014-0000-1000-8000-0026BB765291"
   },
   "ImageMirroring": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011F-0000-1000-8000-0026BB765291"
   },
   "ImageRotation": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011E-0000-1000-8000-0026BB765291",
      "maxValue": 270,
      "minStep": 90,
      "minValue": 0,
      "unit": "arcdegrees"
   },
   "InputSourceType":{
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000DB-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Other": 0,
         "HomeScreen": 1,
         "Tuner": 2,
         "HDMI": 3,
         "CompositeVideo": 4,
         "SVideo": 5,
         "ComponentVideo": 6,
         "DVI": 7,
         "AirPlay": 8,
         "USB": 9,
         "Application": 10
      }
   },
   "InputDeviceType":{
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000DC-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Other": 0,
         "TV": 1,
         "Recording": 2,
         "Tuner": 3,
         "Playback": 4,
         "AudioSystem": 5
      }
   },
   "InUse": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000D2-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Inuse": 1,
         "Notinuse": 0
      }
   },
   "IsConfigured": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000D6-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Configured": 1,
         "NotConfigured": 0
      }
   },
   "LeakDetected": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000070-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "LeakDetected": 1,
         "LeakNotDetected": 0
      }
   },
   "LockControlPoint": {
      "Format": "tlv8",
      "Permissions": [
         "pw"
      ],
      "UUID": "00000019-0000-1000-8000-0026BB765291"
   },
   "LockCurrentState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000001D-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Jammed": 2,
         "Secured": 1,
         "Unknown": 3,
         "Unsecured": 0
      }
   },
   "LockLastKnownAction": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000001C-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "SecuredPhysically,Exterior": 2,
         "SecuredPhysically,Interior": 0,
         "SecuredRemotely": 6,
         "SecuredbyAutoSecureTimeout": 8,
         "SecuredbyKeypad": 4,
         "UnsecuredPhysically,Exterior": 3,
         "UnsecuredPhysically,Interior": 1,
         "UnsecuredRemotely": 7,
         "UnsecuredbyKeypad": 5
      }
   },
   "LockManagementAutoSecurityTimeout": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000001A-0000-1000-8000-0026BB765291",
      "unit": "seconds"
   },
   "LockPhysicalControls": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000A7-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "ControlLockDisabled": 0,
         "ControlLockEnabled": 1
      }
   },
   "LockTargetState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000001E-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Secured": 1,
         "Unsecured": 0
      }
   },
   "Logs": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000001F-0000-1000-8000-0026BB765291"
   },
   "Manufacturer": {
      "Format": "string",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000020-0000-1000-8000-0026BB765291"
   },
   "Model": {
      "Format": "string",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000021-0000-1000-8000-0026BB765291"
   },
   "MotionDetected": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000022-0000-1000-8000-0026BB765291"
   },
   "Mute": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011A-0000-1000-8000-0026BB765291"
   },
   "Name": {
      "Format": "string",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000023-0000-1000-8000-0026BB765291"
   },
   "NightVision": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011B-0000-1000-8000-0026BB765291"
   },
   "NitrogenDioxideDensity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C4-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "ObstructionDetected": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000024-0000-1000-8000-0026BB765291"
   },
   "OccupancyDetected": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000071-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "OccupancyDetected": 1,
         "OccupancyNotDetected": 0
      }
   },
   "On": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000025-0000-1000-8000-0026BB765291"
   },
   "OpticalZoom": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000011C-0000-1000-8000-0026BB765291"
   },
   "OutletInUse": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000026-0000-1000-8000-0026BB765291"
   },
   "OzoneDensity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C3-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "PM10Density": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C7-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "PM2.5Density": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C6-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "PairSetup": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw"
      ],
      "UUID": "0000004C-0000-1000-8000-0026BB765291"
   },
   "PairVerify": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw"
      ],
      "UUID": "0000004E-0000-1000-8000-0026BB765291"
   },
   "PairingFeatures": {
      "Format": "uint8",
      "Permissions": [
         "pr"
      ],
      "UUID": "0000004F-0000-1000-8000-0026BB765291"
   },
   "PairingPairings": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw"
      ],
      "UUID": "00000050-0000-1000-8000-0026BB765291"
   },
   "PictureMode":{
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000E2-0000-1000-8000-0026BB765291",
      "maxValue": 13,
      "minValue": 0,
      "ValidValues": {
         "Other": 0,
         "Standard": 1,
         "Calibrated": 2,
         "CalibratedDark": 3,
         "Vivid": 4,
         "Game": 5,
         "Computer": 6,
         "Custom": 7
      }
   },
   "PositionState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000072-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Decreasing": 0,
         "Increasing": 1,
         "Stopped": 2
      }
   },
   "PowerModeSelection":{
      "Format": "uint8",
      "Permissions": [
         "pw"
      ],
      "UUID": "000000DF-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Show": 0,
         "Hide": 1
      }
   },
   "ProgramMode": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000D1-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Noprogramscheduled": 0,
         "Programscheduled": 1,
         "Programscheduled(ManualMode)": 2
      }
   },
   "ProgrammableSwitchEvent": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000073-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "DoublePress": 1,
         "LongPress": 2,
         "SinglePress": 0
      }
   },
   "RelativeHumidityDehumidifierThreshold": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000C9-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "RelativeHumidityHumidifierThreshold": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000CA-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "RemainingDuration": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000D4-0000-1000-8000-0026BB765291",
      "maxValue": 3600,
      "minStep": 1,
      "minValue": 0
   },
   "RemoteKey":{
      "Format": "uint8",
      "Permissions": [
         "pw"
      ],
      "UUID": "000000E1-0000-1000-8000-0026BB765291",
      "maxValue": 16,
      "minValue": 0,
      "ValidValues": {
         "Rewind": 0,
         "FastForward": 1,
         "NextTrack": 2,
         "PreviousTrack": 3,
         "ArrowUp": 4,
         "ArrowDown": 5,
         "ArrowLeft": 6,
         "ArrowRight": 7,
         "Select": 8,
         "Back": 9,
         "Exit": 10,
         "PlayPause": 11,
         "Information": 15
      }
   },
   "ResetFilterIndication": {
      "Format": "uint8",
      "Permissions": [
         "pw"
      ],
      "UUID": "000000AD-0000-1000-8000-0026BB765291",
      "maxValue": 1,
      "minStep": 1,
      "minValue": 1
   },
   "RotationDirection": {
      "Format": "int",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000028-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Clockwise": 0,
         "Counter-clockwise": 1
      }
   },
   "RotationSpeed": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000029-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "Saturation": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000002F-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "SecuritySystemAlarmType": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000008E-0000-1000-8000-0026BB765291",
      "maxValue": 1,
      "minStep": 1,
      "minValue": 0
   },
   "SecuritySystemCurrentState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000066-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "AlarmTriggered": 4,
         "AwayArm": 1,
         "Disarmed": 3,
         "NightArm": 2,
         "StayArm": 0
      }
   },
   "SecuritySystemTargetState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000067-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "AwayArm": 1,
         "Disarm": 3,
         "NightArm": 2,
         "StayArm": 0
      }
   },
   "SelectedRTPStreamConfiguration": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw"
      ],
      "UUID": "00000117-0000-1000-8000-0026BB765291"
   },
   "SerialNumber": {
      "Format": "string",
      "MaximumLength": 64,
      "Permissions": [
         "pr"
      ],
      "UUID": "00000030-0000-1000-8000-0026BB765291"
   },
   "ServiceLabelIndex": {
      "Format": "uint8",
      "Permissions": [
         "pr"
      ],
      "UUID": "000000CB-0000-1000-8000-0026BB765291",
      "maxValue": 255,
      "minStep": 1,
      "minValue": 1
   },
   "ServiceLabelNamespace": {
      "Format": "uint8",
      "Permissions": [
         "pr"
      ],
      "UUID": "000000CD-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "ArabicNumerals": 1,
         "Dots": 0
      }
   },
   "SetDuration": {
      "Format": "uint32",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000D3-0000-1000-8000-0026BB765291",
      "maxValue": 3600,
      "minStep": 1,
      "minValue": 0
   },
   "SetupEndpoints": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "pw"
      ],
      "UUID": "00000118-0000-1000-8000-0026BB765291"
   },
   "SlatType": {
      "Format": "uint8",
      "Permissions": [
         "pr"
      ],
      "UUID": "000000C0-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Horizontal": 0,
         "Vertical": 1
      }
   },
   "SleepDiscoveryMode": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000E8-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "NotDiscoverable": 0,
         "AlwaysDiscoverable": 1
      }
   },
   "SmokeDetected": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000076-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "SmokeDetected": 1,
         "SmokeNotDetected": 0
      }
   },
   "StatusActive": {
      "Format": "bool",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000075-0000-1000-8000-0026BB765291"
   },
   "StatusFault": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000077-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "GeneralFault": 1,
         "NoFault": 0
      }
   },
   "StatusJammed": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000078-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Jammed": 1,
         "NotJammed": 0
      }
   },
   "StatusLowBattery": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000079-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "BatteryLevelLow": 1,
         "BatteryLevelNormal": 0
      }
   },
   "StatusTampered": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "0000007A-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "NotTampered": 0,
         "Tampered": 1
      }
   },
   "StreamingStatus": {
      "Format": "tlv8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000120-0000-1000-8000-0026BB765291"
   },
   "SulphurDioxideDensity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C5-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "SupportedAudioStreamConfiguration": {
      "Format": "tlv8",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000115-0000-1000-8000-0026BB765291"
   },
   "SupportedRTPConfiguration": {
      "Format": "tlv8",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000116-0000-1000-8000-0026BB765291"
   },
   "SupportedVideoStreamConfiguration": {
      "Format": "tlv8",
      "Permissions": [
         "pr"
      ],
      "UUID": "00000114-0000-1000-8000-0026BB765291"
   },
   "SwingMode": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000B6-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "SwingDisabled": 0,
         "SwingEnabled": 1
      }
   },
   "TargetAirPurifierState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000A8-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Auto": 1,
         "Manual": 0
      }
   },
   "TargetAirQuality": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000AE-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Excellent": 0,
         "Fair": 2,
         "Good": 1
      }
   },
   "TargetDoorState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000032-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Closed": 1,
         "Open": 0
      }
   },
   "TargetFanState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000BF-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Auto": 1,
         "Manual": 0
      }
   },
   "TargetHeaterCoolerState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000B2-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Auto": 0,
         "Cool": 2,
         "Heat": 1
      }
   },
   "TargetHeatingCoolingState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000033-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Auto": 3,
         "Cool": 2,
         "Heat": 1,
         "Off": 0
      }
   },
   "TargetHorizontalTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000007B-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "TargetHumidifierDehumidifierState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000B4-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Dehumidifier": 2,
         "Humidifier": 1,
         "HumidifierorDehumidifier": 0
      }
   },
   "TargetMediaState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000137-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Play": 0,
         "Pause": 1,
         "Stop": 2
      }
   },
   "TargetPosition": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000007C-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "TargetRelativeHumidity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000034-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "TargetSlatState": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000BE-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Auto": 1,
         "Manual": 0
      }
   },
   "TargetTemperature": {
      "Format": "float",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000035-0000-1000-8000-0026BB765291",
      "maxValue": 38,
      "minStep": 0.1,
      "minValue": 10,
      "unit": "celsius"
   },
   "TargetTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "000000C2-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "TargetVerticalTiltAngle": {
      "Format": "int",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "0000007D-0000-1000-8000-0026BB765291",
      "maxValue": 90,
      "minStep": 1,
      "minValue": -90,
      "unit": "arcdegrees"
   },
   "TargetVisibilityState":{
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000134-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Shown": 0,
         "Hidden": 1
      }
   },
   "TemperatureDisplayUnits": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000036-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Celsius": 0,
         "Fahrenheit": 1
      }
   },
   "VOCDensity": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000C8-0000-1000-8000-0026BB765291",
      "maxValue": 1000,
      "minStep": 1,
      "minValue": 0
   },
   "ValveType": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000D5-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Genericvalve": 0,
         "Irrigation": 1,
         "Showerhead": 2,
         "Waterfaucet": 3
      }
   },
   "Version": {
      "Format": "string",
      "MaximumLength": 64,
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "00000037-0000-1000-8000-0026BB765291"
   },
   "Volume": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "pw",
         "ev"
      ],
      "UUID": "00000119-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minStep": 1,
      "minValue": 0,
      "unit": "percentage"
   },
   "VolumeControlType": {
      "Format": "uint8",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000E9-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "None": 0,
         "Relative": 1,
         "RelativeWithCurrent": 2,
         "Absolute": 3
      }
   },
   "VolumeSelector": {
      "Format": "uint8",
      "Permissions": [
         "pw"
      ],
      "UUID": "000000EA-0000-1000-8000-0026BB765291",
      "ValidValues": {
         "Increment": 0,
         "Decrement": 1
      }
   },
   "WaterLevel": {
      "Format": "float",
      "Permissions": [
         "pr",
         "ev"
      ],
      "UUID": "000000B5-0000-1000-8000-0026BB765291",
      "maxValue": 100,
      "minValue": 0,
      "unit": "percentage"
   }
}

```
# Services
```Services.py
{
   "AccessoryInformation": {
      "OptionalCharacteristics": [
         "HardwareRevision",
         "AccessoryFlags"
      ],
      "RequiredCharacteristics": [
         "Identify",
         "Manufacturer",
         "Model",
         "Name",
         "SerialNumber",
         "FirmwareRevision"
      ],
      "UUID": "0000003E-0000-1000-8000-0026BB765291"
   },
   "AirPurifier": {
      "OptionalCharacteristics": [
         "LockPhysicalControls",
         "Name",
         "SwingMode",
         "RotationSpeed"
      ],
      "RequiredCharacteristics": [
         "Active",
         "CurrentAirPurifierState",
         "TargetAirPurifierState"
      ],
      "UUID": "000000BB-0000-1000-8000-0026BB765291"
   },
   "AirQualitySensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name",
         "OzoneDensity",
         "NitrogenDioxideDensity",
         "SulphurDioxideDensity",
         "PM2.5Density",
         "PM10Density",
         "VOCDensity",
         "CarbonMonoxideLevel",
         "CarbonDioxideLevel"
      ],
      "RequiredCharacteristics": [
         "AirQuality"
      ],
      "UUID": "0000008D-0000-1000-8000-0026BB765291"
   },
   "BatteryService": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "BatteryLevel",
         "ChargingState",
         "StatusLowBattery"
      ],
      "UUID": "00000096-0000-1000-8000-0026BB765291"
   },
   "CameraRTPStreamManagement": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "SupportedVideoStreamConfiguration",
         "SupportedAudioStreamConfiguration",
         "SupportedRTPConfiguration",
         "SelectedRTPStreamConfiguration",
         "StreamingStatus",
         "SetupEndpoints"
      ],
      "UUID": "00000110-0000-1000-8000-0026BB765291"
   },
   "CarbonDioxideSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusLowBattery",
         "StatusTampered",
         "CarbonDioxideLevel",
         "CarbonDioxidePeakLevel",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CarbonDioxideDetected"
      ],
      "UUID": "00000097-0000-1000-8000-0026BB765291"
   },
   "CarbonMonoxideSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusLowBattery",
         "StatusTampered",
         "CarbonMonoxideLevel",
         "CarbonMonoxidePeakLevel",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CarbonMonoxideDetected"
      ],
      "UUID": "0000007F-0000-1000-8000-0026BB765291"
   },
   "ContactSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name"
      ],
      "RequiredCharacteristics": [
         "ContactSensorState"
      ],
      "UUID": "00000080-0000-1000-8000-0026BB765291"
   },
   "Door": {
      "OptionalCharacteristics": [
         "HoldPosition",
         "ObstructionDetected",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentPosition",
         "PositionState",
         "TargetPosition"
      ],
      "UUID": "00000081-0000-1000-8000-0026BB765291"
   },
   "Doorbell": {
      "OptionalCharacteristics": [
         "Brightness",
         "Volume",
         "Name"
      ],
      "RequiredCharacteristics": [
         "ProgrammableSwitchEvent"
      ],
      "UUID": "00000121-0000-1000-8000-0026BB765291"
   },
   "Fan": {
      "OptionalCharacteristics": [
         "RotationDirection",
         "RotationSpeed",
         "Name"
      ],
      "RequiredCharacteristics": [
         "On"
      ],
      "UUID": "00000040-0000-1000-8000-0026BB765291"
   },
   "Fanv2": {
      "OptionalCharacteristics": [
         "CurrentFanState",
         "TargetFanState",
         "LockPhysicalControls",
         "Name",
         "RotationDirection",
         "RotationSpeed",
         "SwingMode"
      ],
      "RequiredCharacteristics": [
         "Active"
      ],
      "UUID": "000000B7-0000-1000-8000-0026BB765291"
   },
   "Faucet": {
      "OptionalCharacteristics": [
         "Name",
         "StatusFault"
      ],
      "RequiredCharacteristics": [
         "Active"
      ],
      "UUID": "000000D7-0000-1000-8000-0026BB765291"
   },
   "FilterMaintenance": {
      "OptionalCharacteristics": [
         "FilterLifeLevel",
         "ResetFilterIndication",
         "Name"
      ],
      "RequiredCharacteristics": [
         "FilterChangeIndication"
      ],
      "UUID": "000000BA-0000-1000-8000-0026BB765291"
   },
   "GarageDoorOpener": {
      "OptionalCharacteristics": [
         "LockCurrentState",
         "LockTargetState",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentDoorState",
         "TargetDoorState",
         "ObstructionDetected"
      ],
      "UUID": "00000041-0000-1000-8000-0026BB765291"
   },
   "HeaterCooler": {
      "OptionalCharacteristics": [
         "LockPhysicalControls",
         "Name",
         "SwingMode",
         "CoolingThresholdTemperature",
         "HeatingThresholdTemperature",
         "TemperatureDisplayUnits",
         "RotationSpeed"
      ],
      "RequiredCharacteristics": [
         "Active",
         "CurrentHeaterCoolerState",
         "TargetHeaterCoolerState",
         "CurrentTemperature"
      ],
      "UUID": "000000BC-0000-1000-8000-0026BB765291"
   },
   "HumidifierDehumidifier": {
      "OptionalCharacteristics": [
         "LockPhysicalControls",
         "Name",
         "SwingMode",
         "WaterLevel",
         "RelativeHumidityDehumidifierThreshold",
         "RelativeHumidityHumidifierThreshold",
         "RotationSpeed"
      ],
      "RequiredCharacteristics": [
         "CurrentRelativeHumidity",
         "CurrentHumidifierDehumidifierState",
         "TargetHumidifierDehumidifierState",
         "Active"
      ],
      "UUID": "000000BD-0000-1000-8000-0026BB765291"
   },
   "HumiditySensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentRelativeHumidity"
      ],
      "UUID": "00000082-0000-1000-8000-0026BB765291"
   },
   "InputSource": {
      "OptionalCharacteristics": [
         "Identifier",
         "InputDeviceType",
         "TargetVisibilityState",
         "Name"
      ],
      "RequiredCharacteristics": [
         "ConfiguredName",
         "InputSourceType",
         "IsConfigured",
         "CurrentVisibilityState"
      ],
      "UUID": "000000D9-0000-1000-8000-0026BB765291"
   },
   "IrrigationSystem": {
      "OptionalCharacteristics": [
         "Name",
         "RemainingDuration",
         "StatusFault"
      ],
      "RequiredCharacteristics": [
         "Active",
         "ProgramMode",
         "InUse"
      ],
      "UUID": "000000CF-0000-1000-8000-0026BB765291"
   },
   "LeakSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name"
      ],
      "RequiredCharacteristics": [
         "LeakDetected"
      ],
      "UUID": "00000083-0000-1000-8000-0026BB765291"
   },
   "LightSensor": {
      "OptionalCharacteristics": [
         "Name",
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery"
      ],
      "RequiredCharacteristics": [
         "CurrentAmbientLightLevel"
      ],
      "UUID": "00000084-0000-1000-8000-0026BB765291"
   },
   "Lightbulb": {
      "OptionalCharacteristics": [
         "Brightness",
         "Hue",
         "Saturation",
         "Name"
      ],
      "RequiredCharacteristics": [
         "On"
      ],
      "UUID": "00000043-0000-1000-8000-0026BB765291"
   },
   "LockManagement": {
      "OptionalCharacteristics": [
         "Logs",
         "AudioFeedback",
         "LockManagementAutoSecurityTimeout",
         "AdministratorOnlyAccess",
         "LockLastKnownAction",
         "CurrentDoorState",
         "MotionDetected",
         "Name"
      ],
      "RequiredCharacteristics": [
         "LockControlPoint",
         "Version"
      ],
      "UUID": "00000044-0000-1000-8000-0026BB765291"
   },
   "LockMechanism": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "LockCurrentState",
         "LockTargetState"
      ],
      "UUID": "00000045-0000-1000-8000-0026BB765291"
   },
   "Microphone": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "Volume",
         "Mute"
      ],
      "UUID": "00000112-0000-1000-8000-0026BB765291"
   },
   "MotionSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name"
      ],
      "RequiredCharacteristics": [
         "MotionDetected"
      ],
      "UUID": "00000085-0000-1000-8000-0026BB765291"
   },
   "OccupancySensor": {
      "OptionalCharacteristics": [
         "Name",
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery"
      ],
      "RequiredCharacteristics": [
         "OccupancyDetected"
      ],
      "UUID": "00000086-0000-1000-8000-0026BB765291"
   },
   "Outlet": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "On",
         "OutletInUse"
      ],
      "UUID": "00000047-0000-1000-8000-0026BB765291"
   },
   "SecuritySystem": {
      "OptionalCharacteristics": [
         "StatusFault",
         "StatusTampered",
         "SecuritySystemAlarmType",
         "Name"
      ],
      "RequiredCharacteristics": [
         "SecuritySystemCurrentState",
         "SecuritySystemTargetState"
      ],
      "UUID": "0000007E-0000-1000-8000-0026BB765291"
   },
   "ServiceLabel": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "ServiceLabelNamespace"
      ],
      "UUID": "000000CC-0000-1000-8000-0026BB765291"
   },
   "Slat": {
      "OptionalCharacteristics": [
         "Name",
         "CurrentTiltAngle",
         "TargetTiltAngle",
         "SwingMode"
      ],
      "RequiredCharacteristics": [
         "SlatType",
         "CurrentSlatState"
      ],
      "UUID": "000000B9-0000-1000-8000-0026BB765291"
   },
   "SmokeSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusTampered",
         "StatusLowBattery",
         "Name"
      ],
      "RequiredCharacteristics": [
         "SmokeDetected"
      ],
      "UUID": "00000087-0000-1000-8000-0026BB765291"
   },
   "Speaker": {
      "OptionalCharacteristics": [
         "Name",
         "Volume"
      ],
      "RequiredCharacteristics": [
         "Mute"
      ],
      "UUID": "00000113-0000-1000-8000-0026BB765291"
   },
   "StatelessProgrammableSwitch": {
      "OptionalCharacteristics": [
         "Name",
         "ServiceLabelIndex"
      ],
      "RequiredCharacteristics": [
         "ProgrammableSwitchEvent"
      ],
      "UUID": "00000089-0000-1000-8000-0026BB765291"
   },
   "Switch": {
      "OptionalCharacteristics": [
         "Name"
      ],
      "RequiredCharacteristics": [
         "On"
      ],
      "UUID": "00000049-0000-1000-8000-0026BB765291"
   },
   "Television": {
      "OptionalCharacteristics": [
         "Brightness",
         "ClosedCaptions",
         "DisplayOrder",
         "CurrentMediaState",
         "TargetMediaState",
         "PictureMode",
         "PowerModeSelection",
         "RemoteKey"
      ],
      "RequiredCharacteristics": [
         "Active",
         "ActiveIdentifier",
         "ConfiguredName",
         "SleepDiscoveryMode"
      ],
      "UUID": "000000D8-0000-1000-8000-0026BB765291"
   },
   "TelevisionSpeaker": {
      "OptionalCharacteristics": [
         "Active",
         "Volume",
         "VolumeControlType",
         "VolumeSelector",
         "Name"
      ],
      "RequiredCharacteristics": [
         "Mute"
      ],
      "UUID": "00000113-0000-1000-8000-0026BB765291"
   },
   "TemperatureSensor": {
      "OptionalCharacteristics": [
         "StatusActive",
         "StatusFault",
         "StatusLowBattery",
         "StatusTampered",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentTemperature"
      ],
      "UUID": "0000008A-0000-1000-8000-0026BB765291"
   },
   "Thermostat": {
      "OptionalCharacteristics": [
         "CurrentRelativeHumidity",
         "TargetRelativeHumidity",
         "CoolingThresholdTemperature",
         "HeatingThresholdTemperature",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentHeatingCoolingState",
         "TargetHeatingCoolingState",
         "CurrentTemperature",
         "TargetTemperature",
         "TemperatureDisplayUnits"
      ],
      "UUID": "0000004A-0000-1000-8000-0026BB765291"
   },
   "Valve": {
      "OptionalCharacteristics": [
         "SetDuration",
         "RemainingDuration",
         "IsConfigured",
         "ServiceLabelIndex",
         "StatusFault",
         "Name"
      ],
      "RequiredCharacteristics": [
         "Active",
         "InUse",
         "ValveType"
      ],
      "UUID": "000000D0-0000-1000-8000-0026BB765291"
   },
   "Window": {
      "OptionalCharacteristics": [
         "HoldPosition",
         "ObstructionDetected",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentPosition",
         "TargetPosition",
         "PositionState"
      ],
      "UUID": "0000008B-0000-1000-8000-0026BB765291"
   },
   "WindowCovering": {
      "OptionalCharacteristics": [
         "HoldPosition",
         "TargetHorizontalTiltAngle",
         "TargetVerticalTiltAngle",
         "CurrentHorizontalTiltAngle",
         "CurrentVerticalTiltAngle",
         "ObstructionDetected",
         "Name"
      ],
      "RequiredCharacteristics": [
         "CurrentPosition",
         "TargetPosition",
         "PositionState"
      ],
      "UUID": "0000008C-0000-1000-8000-0026BB765291"
   }
}
```