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
Question
pos 22
Hi
I was posting here earlier regarding HC2 integration with the DSC alarm. After tricky research with a lot of needed info missing and testing of the Fibaro alarm plugin, I decided to start to write my own integration code. No need to use the crappy EnvisaLink plugin in HC2.
I have used EnvisaLink 4 and used the API to it (95% is same as IT-100 API). You do not need to allow traffic to Internet från the EnvisaLink to Eyezon or so.
Just plug in the EnvisaLink, power it up and you are ready to go directly (well, maybe change password..). The code is running in a virtual device. The code is working very well, has different debug levels and also has log to syslog implemented.
Scenes can use the “traps” from the alarm sensors through global variables. Extending it to read and write anything to/from the DSC alarm is very easy from here. I do however wonder if there is a better way than using global variables (that cannot be created from lua). I mean… there should be a way to directly talk between scenes and VD:s… But I haven’t found any…
Comments and feedback to the code is very much appreciated before I give the code its final touch… But don’t be to hard on me. I am rather new to Lua and HC2. And it is a beta after all that I have spent a day on… The API poll function is used to have control of the TCP socket. Documentation of the code is in the top of the lua file. Right now the code it is rather basic. I will implement buttons and writing to the alarm as well from scenes and also implement more stuff from the API. But as said... I would very much appreciate some feedback before I continue the work.
Please login or register to see this link.
Here are a few log output screenshots:
Please login or register to see this image.
Link to comment
Share on other sites
Top Posters For This Question
28
11
6
1
Popular Days
Apr 18
11
May 7
5
Mar 1
4
May 9
3
Top Posters For This Question
pos 28 posts
smprofx 11 posts
devfern24 6 posts
PoPcorN176 1 post
Popular Days
Apr 18 2017
11 posts
May 7 2017
5 posts
Mar 1 2017
4 posts
May 9 2017
3 posts
Popular Posts
pos
Hi I was posting here earlier regarding HC2 integration with the DSC alarm. After tricky research with a lot of needed info missing and testing of the Fibaro alarm plugin, I decided to sta
pos
Hi all I have now made release 1.15 available of the DSC <-> HC2 alarm integration As of this version all global variables as well as presentation VD + its labels are aut
pos
Version 1.7 available here: Please login or register to see this link.
Posted Images
45 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.