[SOLVED] OpenWebNet alarm in Openhab

Can you share the 3 python scripts as well?
It may be useful for others until the OpenWebNet binding will support alarm.
I also suggest you add BTicino in the thread title so that is more focused.

Yes, sure.
I’ve created this repository with all the code: https://github.com/francesco-re-1107/openwebnet-alarm
And I’ll change the title so it is more specific.

1 Like

Thanks! You may also mark the thread as SOLVED on the answer (even yours) that has solved your problem.

Hi, so with this solution you no longer need F422? is a 3477 enough? I refer to cases where I only have the burglar alarm system without lights and roller shutters.

Hi,
probably yes, you will no longer need F422 but I can’t tell you for sure.

Regards

Hi, I wanted to test openhabian 2.5
I wanted to know if the scripts work.
I don’t know exec well.
What would be the path for openhabian?

This is what you used on windows.

executeCommandLine (“C: \ Python27 \ python.exe C: \ openwebnet \ disable_alarm.py”)

While in openhabian linux?

also the scripti you created should be placed in the addon script folder?

Hi,
if you want to use my scripts in openhabian you need to:

  1. Download Python (version 2.7.x) from here
  2. Download my scripts from here and put them in /home/openwebnet for example
  3. Install the Exec binding in your openhab instance (more info here)
  4. Use
    executeCommandLine(“/path/to/python/installation/python /home/openwebnet/enable_alarm.py”)
    command in your .rules file when you want to execute a script

Ok thank you very much I try and update you

Unfortunately I was unable to manage the scripts.
I have given up for myself as I am not a programmer a mountain too high to climb …
However I solved it like this:
I installed a 3477 on the anti-theft scs bus.
I have configured the first Aux 1 channel ON and the second Aux 1 channel OFF. Then I have 2 shelly 1s that will command the two interface contacts.
This is a tip for everyone who has only the alarm scs bus at home.
Then I also ran a rule that allows me to use the shelly contacts alternately.

Hi @Francesco_Re, do you know if your Scripts of the WHO=5 events in general are supported when communicating to the MYHOMESERVER1 Gateway at all?

I’ve a setup with the MYHOMESERVER1 and also a Bticino Alarm Unit but when I try the command to request the Alarm Status “#50##” as any other WHO=5 command I receive the NACK message.

Also I don’t see any possible configuration for AUX commands in my Central Unit, I guess MyHomeUp to MyAlarm would not work with WHO=5 at all, too bad really…

Hi,
I know for sure that you can’t send WHO=5 commands directly to your web server. What I did is to define an automation (I’ve called it aux command) in the alarm unit that enables you to enable/disable alarm with custom OWN command like *9*6*9##.

The procedure of defining an automation is pretty much this:

  1. Antifurto
  2. Automazioni
  3. Rinomina
  4. Memorizza
  5. Evento
  6. Codice OPEN

P.S.
I’m using an F453 web server so I’m not 100% sure about MYHOMESERVER1

Hi Francesco, thank you for your reply.

I meant to say I’ve tried the WHO=5 Request Status method where you seemed to avoid using AUX channels '#50##’ but it doesn’t work to me.

Unfortunately my Alarm Unit KIT48ZIP it’s rather different from the one you have tested.
It seems like it doesn’t allow me to specify in any way the OPEN Code, nor the Gateway.

I guess the MYHOMESERVER1 OpenWebnet Server communicate with the Alarm Unit but I don’t know how (it’s not documented) and I cannot find a way to setup Aux Commands via Bticino Tialarm Commands.

I guess there is no way to locally control my Burglar Alarm system, that’s a shame.

Thanks again.
Gil

Ah yeah, sorry.
The command *#5*0## should work directly without any aux commands.
Unfortunately the documentation is very poor and it is difficult to understand what the issue could be.

I’m sorry
Regards

Hello, I’mt rying to control my 3486 from OH since months. I actually manage it via Domoticz and AUX commands as you suggest. I found that way years ago in Domoticz forum. I have both MHS1 and LN4890 touch gateways. MHS1 does not allow to send open commands to 3486 so I defined both gateways to Domoticz and I enabled only 3486 on LN4890 to control it via buttons. I tried to do the same thing in OH but I never suceeded in this because I’m not a programmer, also if I know very well networks and operating systems. Could you kindly suggest initial steps and what to learn to try to implement your solutions? I have OH3 in Raspberry pi4, fully functional for WHO 1,2,4.

Thanks in advance.

EDIT:
I was able to use the check script in a bash terminal this way:
/usr/bin/python /usr/local/src/openwebnet-alarm-master/alarm_status.py
I see that somewhen it asnswers correctly and somewhen it ends without returning any value, so I modify it to print the result of the command and I can see that only few times it returns a value. Is there any control on the timmout or checking the answer I can add?
root@mhw:/usr/local/src/openwebnet-alarm-master # /usr/bin/python /usr/local/src/openwebnet-alarm-master/alarm_status.py
0
59*##

root@mhw:/usr/local/src/openwebnet-alarm-master # /usr/bin/python /usr/local/src/openwebnet-alarm-master/alarm_status.py

root@mhw:/usr/local/src/openwebnet-alarm-master #

hallo,
I would like to complete the integration of the BTicino Alarm in the OpenWebNet binding.
Since documentation is very unprecise, I would need some good and patient testers here to perform some accurate tests and and send logs.
Anyone available? Maybe @fmalfatto ?
I guess also @Giovanni_Fabiani may want to contribute to testing/coding.
Let me know and I will open a new dedicated Thread

i am up for testing for the MyHOME - alarm centeral with GSM/PSTN communicator. I have a bunch of motion sensors inputs sirene.

Hello @massi,
I could do testing, just tell me how to proceed.

I could test too, not on main production server because I need to maintain it always active, but I have a small PI3 with a test instance of OH3 and I can use it to test. I’m not a Java programmer, so I need some advice to configure debug and obtain useful logs. What I’m always missing in OH (due to my zero competence in Java debugging) is the lack of readable logs. Each time a have an exception, I can read hundred of lines in openhab.log, but I’m unable to find the error and hint about identify it.
This would be indeed a great step in my environment ! TY again for your effort.

Hi @massi,

I’m a kind of noob in testing, but a have a BTicino alarm and a BTicino system (MH202) configured in OH 3.4 M3. Let me know if I can be of any help.

Thanks for your work.

G

hi @psk
you can test the new Alarm support with this version published here
Instructions to install it via marketplace or manually (preferred):