more G-Labs products

Author Topic: Zipato mini keypad RFID (alarm and scenes)  (Read 4665 times)

April 05, 2015, 06:08:25 PM
Read 4665 times

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
Hello anyone use this?
http://www.homegenie.it/forum/index.php?topic=715.30

is fantastic to have this integrate in homegenie.
I paired but nothing work lol

April 06, 2015, 02:51:47 PM
Reply #1

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
I Paired and associated wth master( the usb key).
Now when I use the RFID TAG HG receive battery status   ;D (something work)

It seem that the item work with
CLASS 0x71 COMMAND CLASS ALARM V2
CLASS 0x63 COMMAND CLASS USER CODE

Something know if  these classes are implemented? Or how I can implement?

Thx

April 06, 2015, 09:40:50 PM
Reply #2

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Not sure, but probably a combination of value here :
https://github.com/genielabs/HomeGenie/blob/6ad0bd5568157da81f4a4ed3a328daecd8c81834/MigFiles/SupportLibraries/ZWaveLib/Enums/CommandClass.cs

and a new cs file here :
https://github.com/genielabs/HomeGenie/tree/6ad0bd5568157da81f4a4ed3a328daecd8c81834/MigFiles/SupportLibraries/ZWaveLib/CommandClasses

But your 2 code seems already there :
Code: [Select]
        UserCode = 0x63,
        .....
        Alarm = 0x71,

Did you try to see the zwave message by launching HomeGenie in command line ?
For example on raspberry :
Code: [Select]
mono /usr/local/bin/homegenie/HomeGenie.exe

April 10, 2015, 05:56:02 PM
Reply #3

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
Hello Nolio,
this is the debug of the activation of the alarm:

[17:54:21.927708] SPI > 01 14 00 04 00 0C 0E 63 03 00 00 8F BA B8 54 2A 00 01 04 00 00 7B
[17:54:21.933997] SPO < 06
# Argument cannot be null.
Parameter name: value
  at System.BitConverter.ToString (System.Byte[] value) [0x00000] in <filename unknown>:0
  at ZWaveLib.Utility.ByteArrayToHexString (System.Byte[] ba) [0x00000] in <filename unknown>:0
  at ZWaveLib.Values.UserCodeValue.TagCodeToHexString () [0x00000] in <filename unknown>:0
  at MIG.Interfaces.HomeAutomation.ZWave.controller_ParameterChanged (System.Object sender, ZWaveLib.ZWaveEvent eventData) [0x00000] in <filename unknown>:0
  at ZWaveLib.ZWaveNode.RaiseUpdateParameterEvent (ZWaveLib.ZWaveEvent zevent) [0x00000] in <filename unknown>:0
  at ZWaveLib.Controller.znode_ParameterChanged (System.Object sender, ZWaveLib.ZWaveEvent eventData) [0x00000] in <filename unknown>:0
  at ZWaveLib.ZWaveNode.RaiseUpdateParameterEvent (ZWaveLib.ZWaveEvent zevent) [0x00000] in <filename unknown>:0
  at ZWaveLib.ZWaveNode.MessageRequestHandler (System.Byte[] receivedMessage) [0x00000] in <filename unknown>:0
  at ZWaveLib.Controller.ZwaveMessageReceived (System.Object sender, ZWaveLib.ZWaveMessageReceivedEventArgs args) [0x00000] in <filename unknown>:0
[17:54:21.984817] SPI > 01 08 00 04 00 0C 02 84 07 7E
[17:54:21.991008] SPO < 06
[17:54:22.000056] SPO < 01 09 00 13 0C 02 80 02 05 08 64
[17:54:22.041623] SPI > 06 01 04 01 13 01 E8
[17:54:22.047688] SPO < 06
[17:54:22.098498] SPI > 01 05 00 13 08 00 E1
[17:54:22.104564] SPO < 06
[17:54:22.155271] SPI > 01 09 00 04 00 0C 03 80 03 64 1A
[17:54:22.161092] SPO < 06

April 17, 2015, 08:33:34 PM
Reply #4

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
Nice,
now it work.
I have a zwave element that react with the tag rfid.
Now I would like to set arm and disarm status matching this zwave element. Where is the wrong code?

if ( Modules.InDomain("HomeAutomation.ZWave").WithAddress("12").Get().Parameter("Sensor.Alarm").Value == "0" ) {
        Program.WithName("Security Alarm System").RaiseEvent("HomeGenie.SecurityArmed", "1", "Security System");
         Program.WithName("Security Alarm System").Parameter("HomeGenie.SecurityTriggered").Value = "1";
        Program.WithName("Security Alarm System").Parameter("Status.Level").Value = "1";
 }else{
         Program.WithName("Security Alarm System").RaiseEvent("HomeGenie.SecurityArmed", "0", "Security System");
         Program.WithName("Security Alarm System").Parameter("HomeGenie.SecurityTriggered").Value = "0";
        Program.WithName("Security Alarm System").Parameter("Status.Level").Value = "0";

 

thank you

April 19, 2015, 08:01:57 AM
Reply #5

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Hi,
How did you solve your problem ?
Did you take a look at the following native script "504 Tag Reader" ?

For you script, here another example :
Code: [Select]
When.ModuleParameterChanged( (module, parameter) =>
{
  if ( module.Is("??????")  ) {
if (parameter.DecimalValue == ?????) {
          if ( Modules.WithName("Security Alarm System").IsOff ) {
            Modules.WithName("Security Alarm System").On();
          }
        }
if (parameter.DecimalValue == ??????) {
          if ( Modules.WithName("Security Alarm System").IsOn ) {
            Modules.WithName("Security Alarm System").Off();
          }
        }

    }
return true;
});
Program.GoBackground();

April 19, 2015, 10:55:43 AM
Reply #6

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
Hi Nolio,
I installed domoticz (very laggy) because is necessary register tags rfid.
I used this sequence on domoticz:

VERY IMPORTANT : YOU MUST ASSOCIATE THE FIRST GROUP TO THE 1. OTHERWISE NOTHING WORK ( 6 blink fast)

To program a new tag in the reader proceed as follow:
1. press the tamper switch on the reader and wait 5 seconds (to force the reader to wake up and sends its current code LIST)
2. go to the hardware setup of openzwave
3. select the tag reader from the node list.
4. from the 'Node MANAGEMENT' select the option 'START User Code Enrollment'
5. press the away button on the reader, when the red light is on, scan the tag.
6. the tag should now be included (you can follow this in the log screen)
7. press the tamper switch again to force the reader to send the current code
7. from the 'Node MANAGEMENT' select the option 'User Code Management'
8. you should now see the new tag
9. make a note which Code/Value belongs to which tag

After this you will find a sensor.alarm on 0 / 255 on Homgenie that react with tag batch. I created a c sharp code based from your and tag alarm arming is working:

When.ModuleParameterChanged( (module, parameter) =>
{
      if (Modules.InDomain("HomeAutomation.ZWave").WithAddress("12").Get().Parameter("Sensor.Alarm").DecimalValue == 255) {
             if ( Modules.WithName("Security Alarm System").IsOff ) {
               Modules.WithName("Security Alarm System").On();
             }
        }else{
             if ( Modules.WithName("Security Alarm System").IsOn ) {
               Modules.WithName("Security Alarm System").Off();
             }
        }
    return true;
});


Thank you for your code, I don't see the native script. Where they are?

Definitively homegenie is the best software for domotic, the problem is communitity that is a little bit poor. We will grow fast.

Bye
« Last Edit: April 30, 2015, 06:56:45 PM by igorrobertifoc »

April 19, 2015, 11:17:24 AM
Reply #7

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Oki great !
The script is in "zwave" group on my side. Just in case i joint it ...

About domoticz, i want to try an installation because it seems you can have a view of your zwave network (like this : http://www.domoticz.com/forum/download/file.php?id=1156&sid=5fa305e0f5751a4536b3618bada93ebd), because i suspect trouble with my routing zwave .... Any advice on that part ?

April 19, 2015, 11:27:51 AM
Reply #8

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
I have 2 sensor that point on the same id? I have this on homegenie and domoticz... both the same problem. Is difficult to reset the key usb zwave.


Domoticz result really laggy with measures. About 15-30 seconds to receive a mesure or motion detection.
I installed on my laptop for testing and configuration but on raspberry I use Home Genie.
Domoticz has a better community, if you have a problem you will find lots of people that write onthe thread.
Domoticz has a more trasparent connection with openzwave.. but when is work home genie is better.

April 19, 2015, 12:24:17 PM
Reply #9

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
You can try to unassociate/associate one of this two devices ...

April 19, 2015, 01:22:22 PM
Reply #10

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
I did lots of time. The problem is the hard reset of the key usb. Did you reset your key?

April 19, 2015, 03:24:49 PM
Reply #11

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Oki. No i didn't do a reset of my zstick by HG.

May 01, 2015, 05:33:58 PM
Reply #12

igorrobertifoc

  • ***
  • Information
  • Full Member
  • Posts: 65
I updatet the firmware 3.08 of the stick and now it work wthout double id  :)

December 07, 2015, 04:24:02 AM
Reply #13

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
what device is this?   the link in the first post is about squeezebox media player.  please post some pics / screenshots of how it looks