<Product Revision="1" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="Name">Walli Roller Shutter</MetaDataItem>
    <MetaDataItem name="Description">FIBARO Walli Roller Shutter is a smart wall switch designed to control motors of roller blinds, awnings, venetian blinds and other single phase, AC powered devices via Z-Wave network. It measures active power and energy consumed by the controlled load.</MetaDataItem>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/010F:1000:1D01</MetaDataItem>
    <MetaDataItem name="ProductPage">https://www.fibaro.com/en/products/smart-switches-and-outlets-walli-roller-shutter/</MetaDataItem>
    <MetaDataItem name="ProductSupport">https://manuals.fibaro.com/walli-roller-shutter/</MetaDataItem>
    <MetaDataItem name="ProductPic">images/fibaro/fgwr111.png</MetaDataItem>
    <MetaDataItem name="ProductManual">https://products.z-wavealliance.org/ProductManual/File?folder=&amp;filename=Manuals/3396/FGWREU-111-T-EN-0.19.pdf</MetaDataItem>
    <MetaDataItem name="WakeupDescription">FIBARO Walli Roller Shutter is powered with mains voltage so it is always awake.</MetaDataItem>
    <MetaDataItem name="InclusionDescription">
      To add the device to the Z-Wave network manually:
      1. Power the device.
      2. Set the main controller in (Security/non-Security Mode) add mode (see the controller's manual).
      3. Quickly, three times click one of the buttons.
      4. If you are adding in Security S2 Authenticated, scan the DSK QR code or input the underlined part of the DSK (label on the bottom of the box).
      5. LED will start blinking yellow, wait for the adding process to end.
      6. Adding result will be confirmed by the Z-Wave controller's message and the LED frame:
        - Green: successful (non-secure, S0, S2 non-authenticated),
        - Magenta: successful (Security S2 Authenticated),
        - Red: not successful.
    </MetaDataItem>
    <MetaDataItem name="ExclusionDescription">
      To remove the device from the Z-Wave network:
      1. Power the device.
      2. Set the main controller into remove mode (see the controller's manual).
      3. Quickly, three times click one of the buttons.
      4. LED will start blinking yellow, wait for the removing process to end.
      5. Successful removing will be confirmed by the Z-Wave controller's message and red LED colour.
    </MetaDataItem>
    <MetaDataItem name="ResetDescription">
      Reset procedure allows to restore the device back to its factory settings, which means all information about the Z-Wave controller and user configuration will be deleted. Resetting to factory defaults does not reset energy consumption memory.
      1. Quickly, three times click, then press and hold one of the buttons to enter the menu.
      2. Release button when the device glows yellow.
      3. Quickly click the button to confirm.
      4. After few seconds the device will be restarted, which is signalled with red LED colour.
    </MetaDataItem>
    <MetaDataItem id="1000" name="ZWProductPage" type="1D01">https://products.z-wavealliance.org/products/3396</MetaDataItem>
    <MetaDataItem id="1000" name="FrequencyName" type="1D01">CEPT (Europe)</MetaDataItem>
    <MetaDataItem id="1000" name="Identifier" type="1D01">FGWREU-111</MetaDataItem>
    <ChangeLog>
      <Entry author="Khashayar Hajian - me@khashayar.me" date="10 July 2019" revision="1">Initial Metadata Import from Z-Wave Alliance Database</Entry>
    </ChangeLog>
  </MetaData>

  <!-- Configuration Command Class -->
  <CommandClass id="112">
    <Value genre="config" index="11" label="LED frame – colour when moving" max="7" min="0" size="1" type="list" value="1">
      <Help>This parameter defines the LED colour when the motor is running.</Help>
      <Item label="LED disabled" value="0"/>
      <Item label="White" value="1"/>
      <Item label="Red" value="2"/>
      <Item label="Green" value="3"/>
      <Item label="Blue" value="4"/>
      <Item label="Yellow" value="5"/>
      <Item label="Cyan" value="6"/>
      <Item label="Magenta" value="7"/>
    </Value>

    <Value genre="config" index="12" label="LED frame – colour when not moving" max="7" min="0" size="1" type="list" value="0">
      <Help>This parameter defines the LED colour when the device motor is not running.</Help>
      <Item label="LED disabled" value="0"/>
      <Item label="White" value="1"/>
      <Item label="Red" value="2"/>
      <Item label="Green" value="3"/>
      <Item label="Blue" value="4"/>
      <Item label="Yellow" value="5"/>
      <Item label="Cyan" value="6"/>
      <Item label="Magenta" value="7"/>
    </Value>

    <Value genre="config" index="13" label="LED frame – brightness" max="100" min="0" type="byte" units="%" value="100">
      <Help>
        This parameter allows to adjust the LED frame brightness.
        0 - LED disabled
        1-100 - (1-100% brightness)
      </Help>
    </Value>

    <Value genre="config" index="24" label="Buttons orientation" max="1" min="0"  size="1" type="list" value="0">
      <Help>
        This parameter allows reversing the operation of the buttons.

        0 - default (1st button UP, 2nd button DOWN)
        1 - reversed (1st button DOWN, 2nd button UP)
      </Help>
      <Item label="Default" value="0"/>
      <Item label="Reversed" value="1"/>
    </Value>

    <Value genre="config" index="25" label="Outputs orientation" max="1" min="0"  size="1" type="list" value="0">
      <Help>
        This parameter allows reversing the operation of Q1 and Q2 without changing the wiring (e.g. in case of invalid motor connection).

        0 - default (Q1 - UP, Q2 - DOWN)
        1 - reversed (Q1 - DOWN, Q2 - UP)
      </Help>
      <Item label="Default" value="0"/>
      <Item label="Reversed" value="1"/>
    </Value>

    <Value genre="config" index="30" label="Alarm configuration - 1st slot" size="4" type="int" value="0">
      <Help>
        This parameter determines to which alarm frames and how the device should react.
        The parameters consist of 4 bytes, three most significant bytes are set according to the official Z-Wave protocol specification.

        1B [MSB] - Notification Type
        2B - Notification Status
        3B - Event/State Parameters
        4B [LSB] - action:
          0x00 - no action,
          0xX1 - open,
          0xX2 - close,
          0x0X - no action on LED frame,
          0x1X - LED frame blinks red,
          0x2X - LED frame blinks green,
          0x4X - LED frame blinks blue,
          0x8X - dis- able LED frame,
          0xFX - LED frame LAPD signal (red-white-blue)

        Default value: [0x00, 0x00, 0x00, 0x00] (disabled)
      </Help>
    </Value>

    <Value genre="config" index="31" label="Alarm configuration - 2nd slot (Water)" size="4" type="int" value="1358888960">
      <Help>
        This parameter determines to which alarm frames and how the device should react.
        The parameters consist of 4 bytes, three most significant bytes are set according to the official Z-Wave protocol specification.

        1B [MSB] - Notification Type
        2B – Notification Status
        3B – Event/State Parameters
        4B [LSB] – action:
          0x00 - no action,
          0xX1 - open,
          0xX2 - close,
          0x0X - no action on LED frame,
          0x1X - LED frame blinks red,
          0x2X - LED frame blinks green,
          0x4X - LED frame blinks blue,
          0x8X - dis- able LED frame,
          0xFX - LED frame LAPD signal (red-white-blue)

        Default value: [0x05, 0xFF, 0x00, 0x00] (Water Alarm, any notification, no action)
      </Help>
    </Value>

    <Value genre="config" index="32" label="Alarm configuration - 3rd slot (Smoke)" size="4" type="int" value="33488896">
      <Help>
        This parameter determines to which alarm frames and how the device should react.
        The parameters consist of 4 bytes, three most significant bytes are set according to the official Z-Wave protocol specification.

        1B [MSB] - Notification Type
        2B - Notification Status
        3B - Event/State Parameters
        4B [LSB] - action:
          0x00 - no action,
          0xX1 - open,
          0xX2 - close,
          0x0X - no action on LED frame,
          0x1X - LED frame blinks red,
          0x2X - LED frame blinks green,
          0x4X - LED frame blinks blue,
          0x8X - dis- able LED frame,
          0xFX - LED frame LAPD signal (red-white-blue)

        Default value: [0x01, 0xFF, 0x00, 0x00] (Smoke Alarm, any notification, no action)
      </Help>
    </Value>

    <Value genre="config" index="33" label="Alarm configuration - 4th slot (CO)" size="4" type="int" value="1358888960">
      <Help>
        This parameter determines to which alarm frames and how the device should react.
        The parameters consist of 4 bytes, three most significant bytes are set according to the official Z-Wave protocol specification.

        1B [MSB] - Notification Type
        2B - Notification Status
        3B - Event/State Parameters
        4B [LSB] - action:
          0x00 - no action,
          0xX1 - open,
          0xX2 - close,
          0x0X - no action on LED frame,
          0x1X - LED frame blinks red,
          0x2X - LED frame blinks green,
          0x4X - LED frame blinks blue,
          0x8X - dis- able LED frame,
          0xFX - LED frame LAPD signal (red-white-blue)

        Default value: [0x02, 0xFF, 0x00, 0x00] (CO Alarm, any notification, no action)
      </Help>
    </Value>

    <Value genre="config" index="34" label="Alarm configuration - 5th slot (Heat)" size="4" type="int" value="50266112">
      <Help>
        This parameter determines to which alarm frames and how the device should react.
        The parameters consist of 4 bytes, three most significant bytes are set according to the official Z-Wave protocol specification.

        1B [MSB] - Notification Type
        2B - Notification Status
        3B - Event/State Parameters
        4B [LSB] - action:
          0x00 - no action,
          0xX1 - open,
          0xX2 - close,
          0x0X - no action on LED frame,
          0x1X - LED frame blinks red,
          0x2X - LED frame blinks green,
          0x4X - LED frame blinks blue,
          0x8X - dis- able LED frame,
          0xFX - LED frame LAPD signal (red-white-blue)

        Default value: [0x02, 0xFF, 0x00, 0x00] (CO Alarm, any notification, no action)
      </Help>
    </Value>

    <Value genre="config" index="35" label="Alarm configuration – duration" size="2" type="short" value="600">
      <Help>
        This parameter defines duration of alarm sequence.
        When time set in this parameter elapses, alarm is cancelled, LED frame and relay restore normal operation, but do not recover state from before the alarm.

        0 – infinite
        1-32400 (1s-9h, 1s step) – duration

        Default value: 600 (10min)
      </Help>
    </Value>

    <Value genre="config" index="40" label="First button – scenes sent" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions result in sending scene IDs assigned to them.
        Values can be combined (e.g. 1+2=3 means that scenes for single and double click are sent).
        Enabling scenes for triple click disables entering the device in learn mode by triple clicking.

        1 - Key pressed 1 time
        2 - Key pressed 2 times
        4 - Key pressed 3 times
        8 - Key hold down and key released

        Default value: 0 (no scenes)
      </Help>
    </Value>

    <Value genre="config" index="41" label="Second button – scenes sent" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions result in sending scene IDs assigned to them.
        Values can be combined (e.g. 1+2=3 means that scenes for single and double click are sent).
        Enabling scenes for triple click disables entering the device in learn mode by triple clicking.

        1 - Key pressed 1 time
        2 - Key pressed 2 times
        4 - Key pressed 3 times
        8 - Key hold down and key released

        Default value: 0 (no scenes)
      </Help>
    </Value>

    <Value genre="config" index="60" label="Power reports – include self-consumption" size="1" type="list" value="0">
      <Help>This parameter determines whether the power measurements should include power consumed by the device itself.</Help>
      <Item label="self-consumption not included" value="0"/>
      <Item label="self-consumption included" value="1"/>
    </Value>

    <Value genre="config" index="61" label="Power reports – on change" max="500" min="0" size="2" type="short" units="%" value="15">
      <Help>
        This parameter defines minimal change (from the last reported) in measured power that results in sending new report.
        For loads under 50W the parameter is irrelevant, report are sent every 5W change.

        0 - reporting on change disabled
        1-500 (1-500%, 1% step) – minimal change

        Default value: 15 (15%)
      </Help>
    </Value>

    <Value genre="config" index="62" label="Power reports - periodic" max="32400" min="0" size="2" type="short" units="second" value="3600">
      <Help>
        This parameter defines reporting interval for measured power.
        Periodic reports are independent from changes in value (parameter 61).

        0 – periodic reports disabled
        30-32400 (30s-9h, 1s step) – time interval

        Default value: 3600 (1h)
      </Help>
    </Value>

    <Value genre="config" index="65" label="Energy reports – on change" max="500" min="0" size="2" type="short" units="kWh" value="10">
      <Help>
        This parameter defines minimal change (from the last reported) in measured energy that results in sending new report.

        0 - reporting on change disabled
        1-500 (0.01-5kWh, 0.01kWh step) – minimal change

        Default value: 10 (0.1kWh)
      </Help>
    </Value>

    <Value genre="config" index="66" label="Energy reports - periodic" max="32400" min="0" size="2" type="short" units="second" value="3600">
      <Help>
        This parameter defines reporting interval for measured energy.
        Periodic reports are independent from changes in value (parameter 65).

        0 – periodic reports disabled
        30-32400 (30s-9h, 1s step) – time interval

        Default value: 3600 (1h)
      </Help>
    </Value>

    <Value genre="config" index="150" label="Force calibration" size="1" type="list" value="0">
      <Help>
        By setting this parameter to 2 the device enters the calibration mode.
        The parameter relevant only if the device is set to work in positioning mode (parameter 151 set to 1 or 2).
      </Help>
      <Item label="Device is not calibrated" value="0"/>
      <Item label="Device is calibrated" value="1"/>
      <Item label="Force device calibration" value="2"/>
    </Value>

    <Value genre="config" index="151" label="Operating mode" size="1" type="list" value="1">
      <Help>This parameter allows adjusting operation according to the connected device.</Help>
      <Item label="Roller blind" value="1"/>
      <Item label="Venetian blind" value="2"/>
      <Item label="roller blind with built-in driver" value="5"/>
      <Item label="roller blind with built-in driver (impulse)" value="6"/>
    </Value>

    <Value genre="config" index="152" label="Venetian blind - time of full turn of the slats" max="65535" min="0" size="4" type="int" units="0.1 second" value="150">
      <Help>
        For Venetian blinds (parameter 151 set to 2) the parameter determines time of full turn cycle of the slats.
        The parameter is irrelevant for other modes.

        0-65535 (0 - 655.35s, every 0.01s) - time of turn

        Default value: 150 (1.5 seconds)
      </Help>
    </Value>

    <Value genre="config" index="153" label="Set slats back to previous position" size="1" type="list" value="1">
      <Help>
        For Venetian blinds (parameter 151 set to 2) the parameter determines slats positioning in various situations.
        The parameter is irrelevant for other modes.
      </Help>
      <Item label="Only in case of the main controller operation" value="0"/>
      <Item label="In case of the main controller operation, momentary switch operation, or when the limit switch is reached." value="1"/>
      <Item label="In case of the main controller operation, momentary switch operation, when the limit switch is reached or after receiving the Switch Multilevel Stop control frame" value="2"/>
    </Value>

    <Value genre="config" index="154" label="Delay motor stop after reaching end switch" max="255" min="0" size="2" type="short" units="0.1 second" value="10">
      <Help>
        The parameter determines the time after which the motor will be stopped after end switch contacts are closed.

        1-255 (0.1s - 25.5 seconds)
      </Help>
    </Value>

    <Value genre="config" index="155" label="Motor operation detection" max="255" min="0" size="2" type="short" units="watt" value="10">
      <Help>
        Power threshold interpreted as reaching a limit switch.

        1-255 (1-255W) - report interval
        0 - no detection

        Default value: 10 (10W)
      </Help>
    </Value>

    <Value genre="config" index="156" label="Time of up movement" max="65535" min="1" size="4" type="int" units="0.01 second" value="6000">
      <Help>
        This parameter determines the time needed for roller blinds to reach the top.
        For modes with positioning value is set automatically during calibration, otherwise, it must be set manually.

        1-65535 (0.01 - 655.35 seconds)

        Default value: 6000 (60 seconds)
      </Help>
    </Value>
    <Value genre="config" index="157" label="Time of down movement" max="65535" min="1" size="4" type="int" units="0.01 second" value="6000">
      <Help>
        This parameter determines the time needed for roller blinds to reach the bottom.
        For modes with positioning value is set automatically during calibration, otherwise, it must be set manually.

        1-65535 (0.01 - 655.35 seconds)

        Default value: 6000 (60 seconds)
      </Help>
    </Value>
  </CommandClass>

  <!-- The Association Group Information -->
  <CommandClass id="113">
    <Associations num_groups="3">
      <Group index="1" label="Lifeline" max_associations="1"/>
      <Group index="2" label="Roller Shutter" max_associations="5"/>
      <Group index="3" label="Slats" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
