<?xml version="1.0" encoding="utf-8"?>
<Product xmlns='https://github.com/OpenZWave/open-zwave' Revision="1">
    <!--
      http://products.z-wavealliance.org/products/1789
      http://products.z-wavealliance.org/ProductManual/File?folder=&filename=Manuals/1789/HKZW-SO01_manual.pdf
    -->
    <!-- Configuration -->
    <CommandClass id="112">
        <Value type="list" genre="config" instance="1" index="20" label="Overload Protection" size="1" min="0" max="1" value="1">
            <Help>Smart Plug keep detecting the load power, once the current exceeds 16.5a for more than 5s, smart plug's relay will turn off</Help>
            <Item label="Disabled" value="0"/>
            <Item label="Enabled" value="1"/>
        </Value>
        <Value type="list" genre="config" instance="1" index="21" label="Device status after power failure" size="1" min="0" max="2" value="0">
            <Help>Define how the plug reacts after the power supply is back on.
                  0 - Smart Plug memorizes its state after a power failure.
                  1 - Smart Plug does not memorize its state after a power failure. Connected device will be on after the power supply is reconnected.
                  2 - Smart Plug does not memorize its state after a power failure. Connected device will be off after the power supply is reconnected.
            </Help>
            <Item label="Memorize" value="0"/>
            <Item label="On" value="1"/>
            <Item label="Off" value="2"/>
        </Value>
        <Value type="list" genre="config" instance="1" index="24" label="Notification when load status change" size="1" min="0" max="2" value="1">
            <Help>
              Smart Plug can send notifications to association device(Group Lifeline) when state of smart plug's load change
              0 - The function is disabled
              1 - Send Basic report.
              2 - Send Basic report only when Load condition is not changed by Z-WAVE Command
            </Help>
            <Item label="Disabled" value="0"/>
            <Item label="Basic" value="1"/>
            <Item label="Basic without Z-WAVE Command" value="2"/>
        </Value>
        <Value type="list" genre="config" instance="1" index="27" label="Indicator Modes" size="1" min="0" max="1" value="0">
            <Help>After smart plug being included into a Z-Wave network, the LED in the device will indicator the state of load.
              0 - The LED will follow the status(on/off) of its load
              1 - When the state of Switch's load changed, THe LED will follow the status(on/off) of its load, but the red LED will turn off after 5 seconds if there is no any switch action.
            </Help>
            <Item label="Enabled" value="0"/>
            <Item label="Disabled" value="1"/>
        </Value>
        <Value type="short" genre="config" instance="1" index="151" label="Threshold of power report" units="W" size="2" min="0" max="65535" value="50">
          <Help>
            Power threshold to be interpereted, when the change value of load power exceeds the setting threshold, the smart plug will send meter report to association device(Group Lifeline)
          </Help>
        </Value>
        <Value type="byte" genre="config" instance="1" index="152" label="Percentage threshold of power report" units="%" size="1" min="0" max="i255" value="10">
          <Help>
            Power percentage threshold to be interpreted, when change value of the load power exceeds the setting threshold, the smart plug will send meter report to association device(Group Lifeline).
          </Help>
        </Value>
        <Value type="int" genre="config" instance="1" index="171" label="Power report frequency" units="seconds" size="4" min="5" max="2678400" value="30">
          <Help>
            The interval of sending power report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
        </Value>
        <Value type="int" genre="config" instance="1" index="172" label="Energy report frequency" units="seconds" size="4" min="5" max="2678400" value="300">
          <Help>
            The interval of sending power report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
        </Value>
        <Value type="int" genre="config" instance="1" index="173" label="Voltage report frequency" units="seconds" size="4" min="5" max="2678400" value="0">
          <Help>
            The interval of sending voltage report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
        </Value>
        <Value type="int" genre="config" instance="1" index="174" label="Electricity report frequency" units="seconds" size="4" min="5" max="2678400" value="0">
          <Help>
            The interval of sending electricity report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
        </Value>
    </CommandClass>

    <!-- Association Groups -->
    <CommandClass id="133">
        <Associations num_groups="1">
            <Group index="1" max_associations="5" label="Lifeline"/>
        </Associations>
    </CommandClass>

</Product>
