<Product Revision="3" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/0208:000A:0100</MetaDataItem>
    <MetaDataItem name="ProductPic">images/hank/hkzw-so05-smartplug.png</MetaDataItem>
    <MetaDataItem id="000A" name="ZWProductPage" type="0100">https://products.z-wavealliance.org/products/1891/</MetaDataItem>
    <MetaDataItem name="Name">Smart Plug</MetaDataItem>
    <MetaDataItem name="ProductManual">https://Products.Z-WaveAlliance.org/ProductManual/File?folder=&amp;filename=Manuals/1891/HKZW-SO05 Manual.pdf</MetaDataItem>
    <MetaDataItem id="000A" name="FrequencyName" type="0100">CEPT (Europe)</MetaDataItem>
    <MetaDataItem name="ResetDescription">1) Insert the Plug into a socket,
2) Press and hold the Z button for more than 20 seconds,
3) If holding time more than 20seconds, the RGB LED indicator will keep yellow for 2 seconds, which means resetting is completed. 
Use this procedure only in the event that the network primary controller is missing or otherwise inoperable.
</MetaDataItem>
    <MetaDataItem name="InclusionDescription">1) Connect the power supply.
2) Set the Z-Wave network main controller into inclusion mode (see Z-Wave network controller operating manual).
3) Triple click the Z-button or power up the device , RGB LED indicator should blink fast in blue.
4) Smart Plug should be recognized and included into the Z-Wave network.
</MetaDataItem>
    <MetaDataItem id="000A" name="Identifier" type="0100">HKZW-SO05</MetaDataItem>
    <MetaDataItem name="Description">Smart plug is a Z-Wave Switch plugin module specifically used to enable Z-Wave command and control (on/off) of any plug-in tool. It can report wattage consumption or kWh energy usage, and can indicate the power level with a RGB LED. 
Smart Plug is also a security Z-Wave device and supports the Over The Air (OTA) feature for the product’s firmware upgrade .
</MetaDataItem>
    <MetaDataItem name="ExclusionDescription">1) Insert the Plug into a socket.
2) Set the Z-Wave network controller into the exclusion mode (see Z-Wave controller operating manual).
3) Triple click the Z button.
4) RGB LED indicator will blink orange till the removing process is completed, than the indicator will keep orange for 3 seconds.
</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="24 May 2019" revision="3">Initial Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/1891/xml</Entry>
    </ChangeLog>
  </MetaData>
  <!--
      Hank HKZW-SO05
      http://products.z-wavealliance.org/products/1891
      http://products.z-wavealliance.org/ProductManual/File?folder=&filename=Manuals/1891/HKZW-SO05%20Manual.pdf
    -->
    <!-- Configuration -->
  <CommandClass id="112">
    <Value genre="config" index="20" instance="1" label="Overload Protection" max="1" min="0" size="1" type="list" value="1">
      <Help>Smart Plug keep detecting the load power, once the current exceeds 10.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 genre="config" index="21" instance="1" label="Device status after power failure" max="2" min="0" size="1" type="list" 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 genre="config" index="24" instance="1" label="Notification when load status change" max="2" min="0" size="1" type="list" 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 genre="config" index="27" instance="1" label="Indicator Modes" max="1" min="0" size="1" type="list" 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 genre="config" index="151" instance="1" label="Threshold of power report" max="65535" min="0" size="2" type="short" units="W" 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 genre="config" index="152" instance="1" label="Percentage threshold of power report" max="255" min="0" size="1" type="byte" units="%" 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 genre="config" index="171" instance="1" label="Power report frequency" max="2678400" min="5" size="4" type="int" units="seconds" value="30">
      <Help>
            The interval of sending power report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
    </Value>
    <Value genre="config" index="172" instance="1" label="Energy report frequency" max="2678400" min="5" size="4" type="int" units="seconds" value="300">
      <Help>
            The interval of sending power report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
    </Value>
    <Value genre="config" index="173" instance="1" label="Voltage report frequency" max="2678400" min="5" size="4" type="int" units="seconds" value="0">
      <Help>
            The interval of sending voltage report to association device(Group Lifeline).
            0 - The function is disabled.
          </Help>
    </Value>
    <Value genre="config" index="174" instance="1" label="Electricity report frequency" max="2678400" min="5" size="4" type="int" units="seconds" 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" label="Lifeline" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
