We have moved at community.getvera.com

Author Topic: Control of Merten Radio Roller Shutters 503519 & 507801  (Read 15664 times)

Offline huwu

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-1
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #15 on: March 25, 2010, 05:50:39 am »
...unfortunately not. I tried that last year.
My Z-Wave:Vera3, VeraEdge, 4*Dimmer, 14*RollerShutter, 4*PlugIn,9*Binary, 8*SmokeSensor, 2*Remote, 1*Siren, 1*RangeExtender, 1*Sensor, 1*BatterySwitch. Devices from:Duewi, Merten, HomePro, Trickle, Everspring, Fibaro, Aeon, Vision and MiCasa Verde

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #16 on: March 25, 2010, 12:22:58 pm »
Just some ideas for a shutter plugin. Any takers?


 New UPnP Variables:

  Device_Initialized:       ´      yes/no
  Current_Shutter_Position:         0..100 (%)
  Time_to_Open_Shutter:            0..  (s)
  Time_to_Close_Shutter:             0..  (s)
  Device_ID:                         2..  (MCV's device ID of the physical shutter device)
  Device_Type:                       merten, duewi, ...
  Use_Manufacturer_Specific_Methods:    yes/no

 New UPnP service:

  Set_Shutter_To_Position

 Implementation (pseudo-code):
 
  Set_Shutter_To_Position(pos)
  begin

   if pos < 0 then pos = 0 end
   if pos > 100 then pos = 100 end

   if pos = 0
    then
     
     Open(Device_ID)
     Wait(Time_to_Open_Shutter + 5)
     Current_Shutter_Position = 0
     Device_Initialized = true 

    end

   if pos = 100
    then
     
     Close(Device_ID)
     Wait(Time_to_Close_Shutter + 5)     
     Current_Shutter_Position = 100
     Device_Initialized = true 

    end
 
   If NOT Device_Initialized
    then

     if is_dark
      then
       Set_Shutter_To_Position( 100 ) // recursive call, check scope of variables ...
      else
       Set_Shutter_To_Position( 0 )
         
    end

   if pos < Current_Shutter_Position
    then

     if NOT Use_Manufacturer_Specific_Methods
      then

       Up(Device_ID)
       Wait((Current_Shutter_Position-pos)/100*Time_To_Open_Shutter)
       Stop(Device_ID)

      end
      else
       if Device_Type = merten
        then

         Save_Old_Z_Wave_Parameters(Device_ID)
         
         repeat Set_Z_Wave_Parameters(Device_ID, pos, Time_To_Open_Shutter) until success
         
         Open(Device_ID)

         Wait((Current_Shutter_Position-pos)/100*Time_To_Open_Shutter  + 5)
 
         repeat Restore_Old_Z-Wave_Parameters(Device_ID) until success

        end
       elseif Device_Type = duewi

        ...
 
        end

    end
 
   if pos > Current_Shutter_Position
    then

     if NOT Use_Manufacturer_Specific_Methods
      then

       Down(Device_ID)
       Wait((pos-Current_Shutter_Position)/100*Time_To_Close_Shutter)
       Stop(Device_ID)

      end
      else
       if Device_Type = merten
        then

         Save_Old_Z_Wave_Parameters(Device_ID)
         
         repeat Set_Z_Wave_Parameters(Device_ID, pos, Time_To_Close_Shutter) until success
         
         Close(Device_ID)

         Wait((pos-Current_Shutter_Position)/100*Time_To_Close_Shutter + 5)
 
         repeat Restore_Old_Z-Wave_Parameters(Device_ID) until success

        end
       elseif Device_Type = duewi

        ...
 
        end

      end

    end

   Current_Shutter_Position = pos

  end

Offline huwu

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-1
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #17 on: March 25, 2010, 12:59:29 pm »
I would ...gladly...

Problem is that the stop command does not work neither with Mertnen nor with düwi. By sending this command the shutter changes it's direction. The best thing is: not always but most of the tries!  >:(
My Z-Wave:Vera3, VeraEdge, 4*Dimmer, 14*RollerShutter, 4*PlugIn,9*Binary, 8*SmokeSensor, 2*Remote, 1*Siren, 1*RangeExtender, 1*Sensor, 1*BatterySwitch. Devices from:Duewi, Merten, HomePro, Trickle, Everspring, Fibaro, Aeon, Vision and MiCasa Verde

guest4690

  • Guest
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #18 on: March 25, 2010, 01:30:55 pm »
Just some ideas for a shutter plugin. Any takers?

say the word and i'll setup a project at code.mios.com

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #19 on: March 25, 2010, 01:46:38 pm »
@huwu:

The stop command seems to work for my merten devices (at least using Vera's UPnP interface/Intel's UPnP Device Spy) - but perhaps I should try harder ...  Which merten shutter firmware level are you at?

As a last resort one could use manufacturer-specific Z-Wave parameters - but this requires Z-Wave-reconfiguring the shutter ...

BTW, do you know the specific Z-Wave parameters for the duewi shutter devices? Never got a reply from duewi's customer support. The values of the Z-Wave parameters are mentioned in duewi's manual, but the numbers of the Z-Wave parameters are missing from the manual. :-(
« Last Edit: March 25, 2010, 01:53:15 pm by Ap15e »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #20 on: April 03, 2010, 06:49:33 pm »
The final word from merten about their shutter device:
Only dimming to level 0 and to level 100 does work.

But - big surprise:
Dimming the düwi shutter device does work (as of Vera1/1.0.979/2.78L1, duewi 054368/firmware 6,2,51,1,0,
using Intel's UPnP Device Spy)!

The following applies to düwi only:

The default running time of the düwi shutter device is 120 seconds for both directions,
thus invoking the UPnP service SetLoadLevelTarget(90) when the shutter is open
is equivalent to a running time of (1-0,9)*120 s. The running time can be adjusted
using Z-Wave parameter #0 (2 bytes, partly undocumented and partly reverse engineered):

running time:
0x00: continuous operation
0x01-0x7F: 1-127 seconds
0x80-0xFE: 130-1390 seconds
0xFF: 120 seconds (default)

One byte for each direction (example: Z-Wave parameter #0 = 8737 => 34s/33s)

The meaning of Z-Wave parameter #1 (value is 255 most of the time) is unknown.

Some additional observations:
  • GUI button 'Stop' and corresponding UPnP service does not work.
  • GUI button 'Up' moves the shutter down, GUI button 'Down' moves the shutter up ...
  • After adjusting the running times even the slide bar seems to work!
  • I got a report from a user that the düwi device may fail due to interference from the shutter motor. In this case an additional filter is required (costs about 25 €/direction).

Summary and short answer to vascodp's questions:
  • Yes, you can control düwi's shutter device to a predefined position (via UPnP, via Luup Lua extensions, and via Vera's Scenes)
  • No, you cannot control merten's shutter device to a predefined position (without writing a quite complex
    Lua script)
« Last Edit: April 04, 2010, 06:00:54 pm by Ap15e »

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #21 on: April 05, 2010, 01:23:38 pm »
Is it pssible to replace their (merten/düwi) controller entirely with an ESI AMBHZ (with euro voltage).  It used the Multi-Level Switch Class and dims to any position after you have run the calibration sequence on the motor?

It should work with any standard 4-Wire motor (high voltage) or a DBMHZ for 2-Wire (low voltage) motors.  I understand that this could get expensive, replacing controllers, and you might be looking for a way to get the same effect using Lua code.
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set

Offline vascodp

  • Sr. Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #22 on: April 05, 2010, 06:20:34 pm »

@Ap15e: Thanks a lot for your effort and contribution. I'm happy to learn that duewi addresses my requirements. However, I ordered a couple of Merten devices at the meanwhile, so I guess I'll need to invest some time in coding :(

What about light dimming ? Will I also have the same kind of issues, or I can easily dim to a preset level using Vera with Duewi or Merten devices ?

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #23 on: April 05, 2010, 07:14:16 pm »
My merten "radio sensor cover for dimmer inserts" (5026xx/5036xx/5046xx, firmware 6,2,27,2,2, capabilities 201,12,0,4,17,1|38,39,41,112,114,117,133,134,142) works like a charm. Command class 38 seems to be fully implemented.

One thing to note: The insert 577099 must be at version 3A (or greater) ...

Offline msevestre

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Control of Merten Radio Roller Shutters 503519 & 507801
« Reply #24 on: August 18, 2012, 01:30:37 pm »
Hello

The final word from merten about their shutter device:
Only dimming to level 0 and to level 100 does work.

But - big surprise:
Dimming the düwi shutter device does work (as of Vera1/1.0.979/2.78L1, duewi 054368/firmware 6,2,51,1,0,
using Intel's UPnP Device Spy)!

The following applies to düwi only:

The default running time of the düwi shutter device is 120 seconds for both directions,
thus invoking the UPnP service SetLoadLevelTarget(90) when the shutter is open
is equivalent to a running time of (1-0,9)*120 s. The running time can be adjusted
using Z-Wave parameter #0 (2 bytes, partly undocumented and partly reverse engineered):

running time:
0x00: continuous operation
0x01-0x7F: 1-127 seconds
0x80-0xFE: 130-1390 seconds
0xFF: 120 seconds (default)

One byte for each direction (example: Z-Wave parameter #0 = 8737 => 34s/33s)

The meaning of Z-Wave parameter #1 (value is 255 most of the time) is unknown.

Some additional observations:
  • GUI button 'Stop' and corresponding UPnP service does not work.
  • GUI button 'Up' moves the shutter down, GUI button 'Down' moves the shutter up ...
  • After adjusting the running times even the slide bar seems to work!
  • I got a report from a user that the düwi device may fail due to interference from the shutter motor. In this case an additional filter is required (costs about 25 €/direction).

Summary and short answer to vascodp's questions:
  • Yes, you can control düwi's shutter device to a predefined position (via UPnP, via Luup Lua extensions, and via Vera's Scenes)
  • No, you cannot control merten's shutter device to a predefined position (without writing a quite complex
    Lua script)

I am unsuccessfull setting any value above 0x8080 using my VeraLite. Setting 0xDCDC for example, lead to a stored value of 0x8080. Any value below 0x8080 is correctly stored and read.

Any clue why I can't set up 0xDCDC as an operation time value (parameter 0) using my Vera Lite ? (I'd like to have 15 minute operation time on each movement)

Anyone could try to setup this value to its Duwi shutter switch ?

Regards
Matt
« Last Edit: August 18, 2012, 01:39:13 pm by msevestre »