Visonic - Door/Window Sensor - MCT-302 - Not Working ?

Hi Lolodomo

I have a 433 Visonic Door/Window Sensor MCT-302 which has been created as a Door Sensor (urn:schemas-micasaverde-com:device:DoorSensor:1)

When I look at the device and UI, and then separate the two sensor blocks nothing seems to change on the UI or update any of the variables

Looking at the other Z-Wave Door/Window Sensor, they are created as a motion sensor (urn:schemas-micasaverde-com:device:MotionSensor:1)

Is it possible just to change the device type (xml) or should I not do that as it still has a tripped & last tripped variable ?

I can see the sensor LED flashing 3 times when I open or close it, so I was hoping it would be able to show me that status via the UI etc.

Checking the log

It simply shows 3 separate instances of the following entry only.

50 02/09/13 13:23:15.325 luup_log:39: RFXtrx: cmds: D/0B99A1 Door 1 D/0B99A1 BatteryLevel 100 <0x2fcd7680>

All 3 of these individual battery updates are received within about 1 second.

No Tripped entries can be seen listed

It looks to have another device next to it with the same name but it is showing an icon and variable that is tripped? Checking the logs all I can ‘grep’ is as follows.

09 02/09/13 17:17:00.557 JobHandler_LuaUPnP::Run device 142 RFX Door D/0B99A1 room 0 type urn:schemas-micasaverde-com:device:DoorSensor:1 id DS/D/0B99A1 parent 39/0xe74490 upnp: 0 <0x2ac87000> 50 02/09/13 17:17:09.686 luup_log:39: RFXtrx: Found child device id DS/D/0B99A1 of type urn:schemas-micasaverde-com:device:DoorSensor:1 <0x2b3bb680> 09 02/09/13 17:18:12.924 JobHandler_LuaUPnP::Run device 142 RFX Door D/0B99A1 room 0 type urn:schemas-micasaverde-com:device:DoorSensor:1 id DS/D/0B99A1 parent 39/0xc9d3b8 upnp: 0 <0x2b7bf000> 50 02/09/13 17:18:21.266 luup_log:39: RFXtrx: Found child device id DS/D/0B99A1 of type urn:schemas-micasaverde-com:device:DoorSensor:1 <0x2c0f3680> 09 02/09/13 19:30:22.456 JobHandler_LuaUPnP::Run device 142 RFX Door D/0B99A1 room 0 type urn:schemas-micasaverde-com:device:DoorSensor:1 id DS/D/0B99A1 parent 39/0xeb1490 upnp: 0 <0x2b4b8000> 50 02/09/13 19:30:30.470 luup_log:39: RFXtrx: Found child device id DS/D/0B99A1 of type urn:schemas-micasaverde-com:device:DoorSensor:1 <0x2bdeb680>

UPDATE - It now does not record any more entries in the log, no matter how many times I open and close it.

You should get “cmds: D/0B99A1 Door 1 D/0B99A1 BatteryLevel 100” when opening your door and “cmds: D/0B99A1 Door 0 D/0B99A1 BatteryLevel 100” when closing your door. The “Tripped” variable will be set respectively to 1 and 0.
If you have several devices with the same altid, that’s very strange (normally impossible). Delete all these devices and reload. Then start again properly: open your door and check if the device is created (refresh your web browser). Then close your door and normally your device will be updated (Tripped set as 0).

Please replace the commented line at line 2366 in the lua file

	-- log("Decode x10security: " .. subtype_name .. " altid=" .. altid .. " CMD=" .. string.sub(data, 7, 8) 	)

by this line (be carefull, the line is different

	log("Decode x10security: " .. subType .. " altid=" .. altid .. " status=" .. string.byte(data, 4) 	)

Reload and check the RFXtrx logs in real time. Each time you open or close your door, the plugin should produce this log. If this is the case, please tell me what is logged when you open and close. If not, that could be a bug in the RFXtrx.

Edit: what(s your firmware version of Vera and RFXtrx ?

Hi lolodomo

I deleted the original 2 and started again.

I have Alpha 6 version of the RFXCOM plugin and leaving things ‘as they were’ it still create two separate devices, one (device :142) is updated when opening and closing the door and the other (device : 141) looks to be updated after a period of time (approx 3 mins) with the status of the door.

Device 142, when open, looks to have its status reported very regularly about every minute, but not when it is closed.

Door Opens

50 02/10/13 14:45:02.583 luup_log:39: RFXtrx: cmds: D/0B99A1 Door 1 D/0B99A1 BatteryLevel 100 <0x2fdd5680> 06 02/10/13 14:45:02.584 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507323 now: 1360507502 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:02.585 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:02.586 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507428 now: 1360507502 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:02.587 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680> 50 02/10/13 14:45:03.183 luup_log:39: RFXtrx: cmds: D/0B99A1 Door 1 D/0B99A1 BatteryLevel 100 <0x2fdd5680> 06 02/10/13 14:45:03.185 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507502 now: 1360507503 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:03.185 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:03.186 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507502 now: 1360507503 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:03.187 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680> 50 02/10/13 14:45:03.783 luup_log:39: RFXtrx: cmds: D/0B99A1 Door 1 D/0B99A1 BatteryLevel 100 <0x2fdd5680> 06 02/10/13 14:45:03.784 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507503 now: 1360507503 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 14:45:03.785 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 14:45:03.786 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507503 now: 1360507503 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 14:45:03.786 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>

Door Stays/Remains Open

[code]

50 02/10/13 14:51:06.223 luup_log:39: RFXtrx: cmds: D/8B99A1 Door 1 D/8B99A1 BatteryLevel 100 <0x2fdd5680>
06 02/10/13 14:51:06.224 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507694 now: 1360507866 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:06.225 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:06.226 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507694 now: 1360507866 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:06.227 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>
50 02/10/13 14:51:06.863 luup_log:39: RFXtrx: cmds: D/8B99A1 Door 1 D/8B99A1 BatteryLevel 100 <0x2fdd5680>
06 02/10/13 14:51:06.864 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507866 now: 1360507866 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:1 <0x2fdd5680>
06 02/10/13 14:51:06.864 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:06.865 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507866 now: 1360507866 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2fdd5680>
06 02/10/13 14:51:06.866 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>
50 02/10/13 14:51:07.413 luup_log:39: RFXtrx: cmds: D/8B99A1 Door 1 D/8B99A1 BatteryLevel 100 <0x2fdd5680>
06 02/10/13 14:51:07.414 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360507866 now: 1360507867 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:07.415 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:07.416 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507866 now: 1360507867 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680>
06 02/10/13 14:51:07.416 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>[/code]

Door Closed

50	02/10/13 14:43:46.971	luup_log:39: RFXtrx: cmds: D/0B99A1 Door 0 D/0B99A1 BatteryLevel 100 <0x2fdd5680>
06	02/10/13 14:43:46.972	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 0 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:46.973	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507323 now: 1360507426 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:46.974	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>
50	02/10/13 14:43:47.513	luup_log:39: RFXtrx: cmds: D/0B99A1 Door 0 D/0B99A1 BatteryLevel 100 <0x2fdd5680>
06	02/10/13 14:43:47.514	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:47.515	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507426 now: 1360507427 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:47.516	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>
50	02/10/13 14:43:48.163	luup_log:39: RFXtrx: cmds: D/0B99A1 Door 0 D/0B99A1 BatteryLevel 100 <0x2fdd5680>
06	02/10/13 14:43:48.164	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:48.165	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360507427 now: 1360507428 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680>
06	02/10/13 14:43:48.166	Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>

I’ve not changed any of the code in the lua file, I wanted to share the above first to see if that helps, if you want me to edit lua let me know.

To set the scene.

The door is closed and has been for 10 mins now, but what’s strange is that device 142 reports the door is closed, using just one log entry.

06 02/10/13 15:18:03.794 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:18:03.794 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360508936 now: 1360509483 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:18:03.795 Device_Variable::m_szValue_set device: 142 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>

But device 141 says its open. Using 3 log entries.

06 02/10/13 15:19:37.694 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360509408 now: 1360509577 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:37.695 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:37.696 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360509408 now: 1360509577 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:37.696 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 15:19:38.294 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360509577 now: 1360509578 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:38.295 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:38.295 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360509577 now: 1360509578 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:38.296 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 15:19:38.844 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1360509578 now: 1360509578 #hooks: 0 upnp: 0 v:0xb70708/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 15:19:38.844 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb70080/NONE duplicate:0 <0x2fdd5680> 06 02/10/13 15:19:38.845 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1360509578 now: 1360509578 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2fdd5680> 06 02/10/13 15:19:38.846 Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0xadaf60/NONE duplicate:1 <0x2fdd5680>

Very strange…

Alpha 6 is very old. Please try with alpha 8. It is not normal that you have two devices created. I will investigate only after you confirm the same behaviour with alpha 8.

It is normal to have the status reported regurlarly.

Now i see that the devices have different door id. So either you have two visonic devices or there is a mismatch in the rfxtrx.

But verify first with a recent version of the plugin.

what is displayed in RFXmngr?

Bert, it looks like messages arrives with 2 different id: 0B99A1 and 8B99A1. Note that these id are very close, just one bit difference.

Before loosing time, you and me, first we should be sure that the result is the same with a recent version of my plugin and a recent version of the RFXtrx firmware.

To be honest, that is a surprise for me to see that Visonic devices are already managed. I did not know that certain Visonic devices were using 433 MHz frequency.

On a MCT302, you have a primary contact and a secondary contact. Here is why you have 2 devices (and two sensor ids). Vera device corresponds to your main contact and Vera device 141 to your auxiliary contact. So I imagine 141 remains open because you don’t use this contact ?
I am discussing with RFXCOM to understand if it is normal to have the auxiliary contact reporting something even if not used by the user.

The other question is, if I understand, why the main contact is not reporting at the same frequency when opened or closed ?

This is what the user guide says about the auxilary contact:
Remember! If your application does not require the auxiliary input, be sure to set DIP switch SW2 to OFF and to short the input terminals together with a piece of jumper wire.

Hi Bert & Lolodomo

Sorry for the delay in getting back to you…

I’ve managed to turn off DIP switch 2 and put a piece of wire between the two aux points and now it seems to be working fine… It did create another device initially so I had 3, but I deleted them all and then did a reload/refresh again so I could start again…

So after moving the sensor block on the MCT-302 to simulate opening and closing the door I now have one device called “RFX Door D/0B99A1”
(Which looks to be the same name as before)

Thanks so much for your help, i’ll let you know if I notice anything strange occur.

Hi lolodomo

When using the Visonic Door/Window sensor, it sends upto 3 successive notifications when a door is opened or closed. This results in 3 emails or Prowl alerts when the door is touched. Is there a way to suppress the other alerts in Vera once it has confirmed receipt of the first one?

(I’ve just noticed, that was my 1000 post !! :slight_smile: )

I will add a new feature that will let you choose for door and motion sensors whether you will be triggered or not when the value is unchanged.

This feature is now added: variable RepeatEvent now available for motion and door sensors: when the variable is set to 0, tripped event is notified only when the sensor state changes.

Hi lolodomo

Thanks so much, I can see it in Beta 1 I’ll have a play :wink:

Hi Lolodomo (& Bert)

Would it be possible in a future release to have an invert variable option so that e.g a normally open (N.O) wired door bell connected directly to the MCT-302 auxiliary switch, can show up as closed, rather than always opened?

I’ve looked at the MCT-302 manual and it talks about N.O (Normally Open) but for the life of me I can’t get it to work, with an E.O.L set up and a transistor. (It would be so much easier if you could just wire it directly into the terminals and invert the readings)

So it’s my hope that an invert feature is a simple way to get around it?