Giter VIP home page Giter VIP logo

Comments (12)

mvalla avatar mvalla commented on September 18, 2024

i have a documentation for who=5

can you provide a link to the documentation for WHO=5 ?

from openhab-addons.

Tagada76 avatar Tagada76 commented on September 18, 2024

Hello massimo,
Link : https://www.myopen-legrandgroup.com/content/uploads/2016/06/WHO_5.pdf

Regards
Arnaud

from openhab-addons.

mvalla avatar mvalla commented on September 18, 2024

can you update the logs in the description and use "insert code button" (top of text box) when copy-paste the log here?

from openhab-addons.

Tagada76 avatar Tagada76 commented on September 18, 2024

`2019-08-26 11:38:46.562 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: 51*##

2019-08-26 11:38:46.567 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: 55*##

2019-08-26 11:38:46.570 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: 57*##

2019-08-26 11:38:46.574 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: 59*##`

from openhab-addons.

mvalla avatar mvalla commented on September 18, 2024

@Tagada76 you should copy it again from the OH log and paste it in the comment using code fences (put a ``` before and after)

from openhab-addons.

francemgit avatar francemgit commented on September 18, 2024

Hi,

I'm interested to WHO 5 too.
Hereafter few logs after sending Alarm status frame on bus ( System active, System not engaged, Battery OK, Network OK) :

2019-09-15 09:40:59.808 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: *5*1*##
2019-09-15 09:40:59.824 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: *5*9*##
2019-09-15 09:40:59.836 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: *5*5*##
2019-09-15 09:40:59.847 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## INVALID FRAME: *5*7*##

from openhab-addons.

gilbertococchi avatar gilbertococchi commented on September 18, 2024

Hi @mvalla and @Tagada76 I am happy to help adding support for WHO5 on Massimo's Openhab Binding.

Can you please explain what Alarm central you have?

I also have Bticino Alarm connected to My Home Up but I am not fetching any WHO 5 event from the OpenWebnet Windows client at all.

From @francesco-re-1107 experience on https://github.com/francesco-re-1107/openwebnet-alarm it seems like it's possible to check some Alarm information but controlling the alarm only by using auxiliary commands really.
I cannot test openwebnet-alarm because it doesn't allow non numerical password...

It would help to understand how to intercept all the Burglar Central messages first.

from openhab-addons.

fmalfatto avatar fmalfatto commented on September 18, 2024

Any new? I confirm I have the 3486 central and I would help if possible. The who 5 support is mandatory for me to shift from Domoticz to Openhab.

from openhab-addons.

m4rky-m4rk avatar m4rky-m4rk commented on September 18, 2024

A work around would be to use, if you have any, the alarms relay outputs. They can be used to indicate the alarms state if connected to the BUS via a contacts interface. The alarm state info is then avaiilable on the BUS and in openHAB. I use this method to monitor my alarm state, useful for some rules, while keeping the activation and deactivation of the alarm system completely isolated from my home automation.

from openhab-addons.

fmalfatto avatar fmalfatto commented on September 18, 2024

Yes, Mark, I agree, but my goal is to control just activation/deactivation as result of other conditions, such activate it at a certain hour only IF all sensors are allowing, deactivate it when we approach home AND all is under control...
Domoticz allows me via AUX commands to activate/deactivate zones and to write rules or scripts for it, mantaining the securitiy because their execution is only allowed to known IPs and users and under https (reverse proxy needed)
I could also use Domoticz to generate something when an alarm command is received and check it from Openhab, but I would like to avoid to maintain active two separate portals for the same thing.

from openhab-addons.

fmalfatto avatar fmalfatto commented on September 18, 2024

I was able to have my 3486 engaged/disengaged, thanks to some info I found here: https://community.openhab.org/t/solved-openwebnet-alarm-in-openhab/83906
I have both MHS1 (not sending anything to 3486) and LN4890 unofficial gateway. This one is reaching the 3486.
Here are the steps I did:

  1. downloaded the library from the link I posted and put in /usr/local/src/openwebnet-alarm-master
  2. installed the exec binding and regex tranformation
  3. defined the "alarm_3486.things" file:
    Thing exec:command:alarm_state [command="/usr/bin/python /usr/local/src/openwebnet-alarm-master/alarm_status.py", interval=5, timeout=1, autorun=true ]
  4. defined the "alarm_3486.items" file:
    Switch Allarme "Allarme" ["Switchable"] String Stato_allarme {channel="exec:command:alarm_state:output"}
  5. defined 4 rules:
    allarme_off.rules
    allarme_on.rules
    allarme_rec_off.rules
    allarme_rec_on.rules
    This way:
    rule "Alarm state changed from 1 to 0" when Item Stato_allarme changed from 1 to 0 then Allarme.sendCommand(OFF) end // rule "Alarm state changed from 0 to 1" when Item Stato_allarme changed to 1 then Allarme.sendCommand(ON) end // rule "Alarm received OFF command" when Item Allarme received command OFF then executeCommandLine("/usr/bin/python","/usr/local/src/openwebnet-alarm-master/disable_alarm.py") end rule "Alarm received ON command" when Item Allarme received command ON then executeCommandLine("/usr/bin/python","/usr/local/src/openwebnet-alarm-master/enable_alarm.py") end //
  6. PROBLEM There is a problem from the downloaded script "alarm_status.py". It does not always return the correct status 0 or 1 because of wrong decoding of the message returned from gateway, so I had to manage the empty return code forcing a "N" in such case:
    from OpenWebNet import OpenWebNet server = OpenWebNet("192.168.1.50","20000","12345") res = server.stato_allarme() #check result if res == "*5*8*##": #alarm is enabled print "1" if res == "*5*9*##": #alarm is disabled print "0" if res == "": print "N"
    In fact from events.log I see that the state of 3486 continously change, but this problem needs a debug of the python script that is too difficult for me:
    `2021-09-25 08:54:48.885 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Stato_allarme' changed from 0 to N
    2021-09-25 08:54:54.303 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Stato_allarme' changed from N to 0
    2021-09-25 08:55:10.589 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Stato_allarme' changed from 0 to N
    2021-09-25 08:55:15.997 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Stato_allarme' changed from N to 0

So the whole structure works, but it is not smart. Is there anyone able to improve it?
Thanks in advance!
`

from openhab-addons.

mvalla avatar mvalla commented on September 18, 2024

Alarm (WHO=5) support has been added to the binding in openHAB 3.4 official distribution via openhab#13694

from openhab-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.