Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 1

Zipato RFID


HomeSystem.sk

Question

Recommended Posts

  • 0

There are no infos about in the api. So I think it doesn't work at the moment

Please login or register to see this image.

/emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> But it would be a nice feature...

I think there is a complicated way of doing it... But would be nice to have for example...

If userid = 1 and unlocked then

Else

Foo

End

Link to comment
Share on other sites

  • 0

So this is a great topic and one which I think will help Fibaro advance their product.

 

I have used the following to set an disarm the Motion Sensors and Door/ Window Sensors.

 

:-> :-> :->   Happy for some LUA Guru to point out where I could improve.  :-> :->  :->  :->

 

 
114 is the Keypad or DoorLock
 
--[[
%% properties
114 value
%% events
%% globals
HomeMode
--]]
 
-- Scene written by Brent Brown (Buster1959)
-- To use the scene you need to create a Predefined Variable within the Variable Panel with:
-- Variable values of "Home", "Away","Night" & "Vacation"
-- This will allow you to set Armed /Disarmed for alarm scene but also you can use these variables for scenes that 
-- do things like turn the heating to eco when on Vacation, or turn lights on/off at random times
 
 
local debug = 1 -- Set to 1 to debug the scene
 
local keppadID = 114 -- ID of Keypad or door lock
local homeMode = fibaro:getGlobalValue("HomeMode") -- Set variable for to that of HomeMode Predefined variable
local startSource = fibaro:getSourceTrigger();
local armMode = tonumber(fibaro:getValue(keypadID, "value"))
local sensorArray = {}
sensorArray["Landing"] = 99
sensorArray["FrontDoor"] = 33
--sensorArray["KitchenMotion"] = 22 -- Commented out for testing
sensorArray["BackDoor"] = 31
sensorArray["MasterBedroom"] = 49
sensorArray["Bathroom"] = 61
 
if debug == 1 then 
  for key, value in pairs(sensorArray) do fibaro:debug(key .. " : " .. value) end
end  
 
-- Check if keypad /door lock changes state & set HomeMode appropriatly
if tonumber(fibaro:getValue(114, "value")) == 1 then
  fibaro:setGlobal("HomeMode", "Away") 
  else
  fibaro:setGlobal("HomeMode", "Home")
end
 
-- Set Sensors dependant on the HomeMode state (Also put the armMode in to make this instant)
if homeMode == "Away" or homeMode == "Vacation" or armMode == 1 then
if debug == 1 then fibaro:debug("Setting Sensors to ARM because HomeMode is se to : " .. homeMode) end
  for key, value in pairs(sensorArray) do fibaro:call(value, "setArmed", "1") end
elseif homeMode == "Home" or armMode == 0  then  
if debug == 1 then fibaro:debug("Setting Sensors to DISARM because HomeMode is set to: " .. homeMode) end
  for key, value in pairs(sensorArray) do fibaro:call(value, "setArmed", "1") end
else
  if debug == 1 then fibaro:debug("HomeMode is set to : " .. homeMode) end
end
Edited by BusterB1959
Link to comment
Share on other sites

  • 0

 

So this is a great topic and one which I think will help Fibaro advnce their product.

 

I need some SuperUser = LUA Guru help I am getting:

 

[DEBUG] 08:48:03: line 111: attempt to concatenate local 'deviceId' (a nil value)

 after running the following code also if any gurus want to enhance, please do so and share:
 
 

 

Please use "Code"-Option.

 

Also are you sure that this is the right code or the whole one?

There are no 111 lines and there is no variable named deviceId too.

Link to comment
Share on other sites

  • 0

Please use "Code"-Option.

 

Also are you sure that this is the right code or the whole one?

There are no 111 lines and there is no variable named deviceId too.

Alex,

 

100% sure this is the code cut and pasted as is. Where do I place the "Code"-Option ? Sorry, not come across this?

 

Resolved the issue but got a new issue. fibaro:call(ID, "setArmed", "0") does NOT work but fibaro:call(ID, "setArmed", "1") works anyone know why?

Brent

Edited by BusterB1959
Link to comment
Share on other sites

  • 0

seem to get a lot of repeated values sent with rfid... anyway to add a small delay? example:

 

one swipe of rfid =

 

unlocked by user 1

unlocked by user 1

unlocked by user 1

 

or sometimes only two or one... no pattern!

Link to comment
Share on other sites

  • 0

Guys, just to be sure, is this the device you're takling about: 

Please login or register to see this link.

?

I might be interested in 2 of those

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

Link to comment
Share on other sites

  • 0

Guys, just to be sure, is this the device you're takling about:

Please login or register to see this link.

?

I might be interested in 2 of those

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

Yes

Link to comment
Share on other sites

  • 0

Yes, that is the one. I got mine when I had a Vera system, much more tightly integrated, you had an interface to ad codes, could look in the events who came in / out and when etc. I am sure the Fibaro people will get there but HC2 is a long way off yet!

Link to comment
Share on other sites

  • 0

Yes, that is the one. I got mine when I had a Vera system, much more tightly integrated, you had an interface to ad codes, could look in the events who came in / out and when etc. I am sure the Fibaro people will get there but HC2 is a long way off yet!

Not sure much will change regards integration with fibaro controller. Seems only more advanced users can utilise certain devices now. Would hate to be a HCL only user with this device! All those post commands etc...

Link to comment
Share on other sites

  • 0

seem to get a lot of repeated values sent with rfid... anyway to add a small delay? example:

 

one swipe of rfid =

 

unlocked by user 1

unlocked by user 1

unlocked by user 1

 

or sometimes only two or one... no pattern!

 

 

It is possible that RFID re-transmits commands to the controller (poor signal, does not "hear" acknowledges from controller every time),  tried to re-build mesh network for that node? 

Link to comment
Share on other sites

  • 0

As in the Log  window we can see informations with the state and the user like this :

unlocked by user 1

locked by user 2

unlocked by user 1

can we imagine to have this information on a triggered scene in the future ?

Link to comment
Share on other sites

  • 0

In the future - sure.

Not possible at the moment

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

Link to comment
Share on other sites

  • 0

Hi mr.roszak  , i thin we have another problem with this type of tag reader.

 

Immagine you have more than you tag reader ..... 

Both of them are in the Home state and you are in home.

Now you want to exit home and arm system ...... so you the first of them to arm the system.

 

After a while you turn back on home .... and you try to disarm system by the second one.

You don't get any action becouse the second tag reader is in the home state.

 

A solution might be that you can change the reader status by lua coda (like arm/disarm).

Is this possibile (now or in the future) ?

Link to comment
Share on other sites

  • 0

Looks like the Workaround for the disarming scene

Please login or register to see this image.

/emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> Surprise...

Please login or register to see this image.

/emoticons/default_biggrin.png" alt=":D" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

 

Tested it. Works without any problems... 

Please login or register to see this code.

Edited by boomx
Link to comment
Share on other sites

  • 0

Yeah , good ... it work.

Thank you very much boomx

 

I think I can try to use again now (after fibaro fix the setArmed functionality)

Link to comment
Share on other sites

  • 0

No problem

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> glad to help you...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...