Coder Social home page Coder Social logo

Partitions about homebridge-envisalink HOT 3 CLOSED

dustindclark avatar dustindclark commented on August 18, 2024
Partitions

from homebridge-envisalink.

Comments (3)

adrianmihalko avatar adrianmihalko commented on August 18, 2024

Ok, I just figured out that it is easy as:

"partitions": [
        {
          "name": "Partition 1"
        },
        {
          "name": "Partition 2"
        }
      ],

Everything is working great, except that Alarm status is not updated.

Mar 24 13:09:35 ubuntu homebridge[29653]: Partition 2 Ready
Mar 24 13:09:35 ubuntu homebridge[29653]: Setting Obstructed true
Mar 24 13:09:35 ubuntu homebridge[29653]: [3/24/2018, 1:09:35 PM] [Envisalink] Attempting to set alarm state to:  0
Mar 24 13:09:35 ubuntu homebridge[29653]: [3/24/2018, 1:09:35 PM] [Envisalink] Arming alarm to Stay/Night.
Mar 24 13:09:35 ubuntu homebridge[29653]: sendcommand 0312C6
Mar 24 13:09:35 ubuntu homebridge[29653]: Command 031 Acknowledged
Mar 24 13:09:36 ubuntu homebridge[29653]: Exit Delay of Partition 2 in Progress
Mar 24 13:09:56 ubuntu homebridge[29653]: Partition 2 has been armed by Quick Arm, Auto Arm, Keyswitch, DLS or Wireless Key
Mar 24 13:09:56 ubuntu homebridge[29653]: Partition 21 is Armed
Mar 24 13:10:33 ubuntu homebridge[29653]: Zone 009 is open
Mar 24 13:10:33 ubuntu homebridge[29653]: Set status on accessory Lakás/mozgás to {"name":"Zone Open","pre":"Zone","bytes":3,"post":"is open","se
Mar 24 13:10:37 ubuntu homebridge[29653]: Zone 009 is restored
Mar 24 13:10:37 ubuntu homebridge[29653]: Set status on accessory Lakás/mozgás to {"name":"Zone Alarm Restore","pre":"Zone","bytes":4,"post":"is 

I set Home mode alarm, it arms fine in this mode, but Alarm status in Homebridge stays Off. What can be the problem here?

img_1341
img_1342

from homebridge-envisalink.

adrianmihalko avatar adrianmihalko commented on August 18, 2024

If I check raw status messages with telnet I see 652 (Partition Armed) command:

madrian@ubuntu:/usr/lib/node_modules/homebridge-envisalink$ telnet localhost 4026
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
6562D3
7012CA
6522100

Where 652 is the command
2 is the partition
1 is the mode
00 is the checksum.

EnvisalinkPlatform.prototype.partitionUpdate = function (data) {
    var watchevents = ['601', '602', '609', '610', '650', '651', '652', '654', '656', '657'];
    if (data.code == "652") {
        //0: AWAY, 1: STAY, 2:  ZERO-ENTRY-AWAY, 3:  ZERO-ENTRY-STAY
        if (data.mode == '1' || data.mode == "3") {
            this.awayStay = Characteristic.SecuritySystemCurrentState.STAY_ARM;
        } else {
            this.awayStay = Characteristic.SecuritySystemCurrentState.AWAY_ARM;
        }
    }

If am not wrong, this code set the alarm status in Homebridge, but I have no idea why it's not catching/working 6522100 status message.

from homebridge-envisalink.

dustindclark avatar dustindclark commented on August 18, 2024

Fixed and published in v0.2.14 thanks to @rafiqsarlie.

from homebridge-envisalink.

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.