Giter VIP home page Giter VIP logo

Comments (17)

platini76 avatar platini76 commented on September 15, 2024

possiamo sentirci su whastapp? poi finito possiamo rendere pubblico il lavoro.
mia email [email protected]

from homebridge-risco-alarm.

valeandres avatar valeandres commented on September 15, 2024

Ciao ragazzi, è possibile inserire una zona (da tastiera a muro ho le zone A, B, C, D). Come posso fare? Mi aiutate?

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

infatti... per me il night mode è solo la zona x...

from homebridge-risco-alarm.

vddgil avatar vddgil commented on September 15, 2024

Are you planning to do it ?

I have the same configuration 1 zone and a partial arming ...

It seems that the keyword is partially for risco, I can help if you need to !

from homebridge-risco-alarm.

allemattio avatar allemattio commented on September 15, 2024

I have already submitted a pull request to use the partially command for the night mode

from homebridge-risco-alarm.

vddgil avatar vddgil commented on September 15, 2024

Awesome,

While reading the code i saw the STAY_ARM state. It seems the the code arm the alarm when in that state. Is this correct ?

Thanks a lot !

from homebridge-risco-alarm.

szlaskidaniel avatar szlaskidaniel commented on September 15, 2024

Hi @allemattio , I've merged your changes into 1.26 v

from homebridge-risco-alarm.

allemattio avatar allemattio commented on September 15, 2024

Great!
Thank you so much

from homebridge-risco-alarm.

allemattio avatar allemattio commented on September 15, 2024

@szlaskidaniel I forgot to add the partialCommand to the readme, my bad!
Also in the readme it's not clear the instruction on how to retrieve the site ID, i found the soluzion by viewing the readme.rd as RAW, otherwise it's not clear

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

sorry but I really don't know how to config. I send you my iphone screenshot and my configuration
img_23b1ebc4a063-1

my config:

"accessories": [
{
"accessory": "RiscoAlarm",
"name": "RiscoAlarm",
"polling": true,
"pollInterval": 30000,
"riscoUsername": "XXX",
"riscoPassword": "XXX",
"riscoSiteId": XXXXX,
"riscoPIN": "XXX",
"armCommand": "armed",
"partialCommand": "partially",
"disarmCommand": "disarmed"
}
],

I want to set:
In casa: =DISARMED
Fuori casa: ARMED
Notte: PARTITION 1
Non attivo: DISARMED

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

ok I found a config that work partially

        "armCommand": "armed",
        "partialCommand": "0:armed",
        "disarmCommand": "disarmed"

but in my homekit app happeds:

at home -> [2018-10-15 23:17:39] [RiscoAlarm] Setting state to STAY_ARM
[2018-10-15 23:17:45] [RiscoAlarm] New Risco state set.
??????? it must disarm!! I am at home..... :)

Out home: disarm ok

NIGHT MODE: it arm only partition 1 ok.... but...
if it comes from away state.... ARMED.... it don't work...

NOT ACTIVE : DISARM

from homebridge-risco-alarm.

szlaskidaniel avatar szlaskidaniel commented on September 15, 2024

Hi, this is how change state from HomeKit works now:

switch (state) {
            case Characteristic.SecuritySystemTargetState.STAY_ARM:
                // stayArm = 0
                riscoArm = true;
                cmd = self.armCmd;
                break;
            case Characteristic.SecuritySystemTargetState.NIGHT_ARM:
                // stayArm = 2
                riscoArm = true;
                cmd = self.partialCommand;
                break;
            case Characteristic.SecuritySystemTargetState.AWAY_ARM:
                // stayArm = 1
                riscoArm = true;
                cmd = self.armCmd;
                break;
            case Characteristic.SecuritySystemTargetState.DISARM:
                // stayArm = 3
                riscoArm = false
                cmd = self.disarmCmd;
                break;
 };

As you can see, when you set STAY_ARM - it uses now FULL ARM command (armCommand).
Let me know how do you see above logic - that should work the most universal for everyone.
Like: STAY_ARM should do PartialArm command ? Or new config command ?

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

for me th first state (at home) must be DISARM... if I am at home I need to have alarm off... or I lose something?

from homebridge-risco-alarm.

szlaskidaniel avatar szlaskidaniel commented on September 15, 2024

True, but there will be no difference compared to "Disarmed". It is just un-usable with Risco configuration for me.
I'll publish new v 1.2.4 with above change. Maybe someone will use it in different associations.

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

YOU have some reasons, because apple homekit consider AT HOME as ARMED.
AND THIS IS A BUG FOR ME.

from homebridge-risco-alarm.

allemattio avatar allemattio commented on September 15, 2024

I think that for Apple "At Home" means to activate only some partitions.
i.e:

  • at home -> activate only outdoor sensors
  • away -> activate everything
  • night -> activate outdoor sensors and some indoor sensor
  • deactivated -> deactivate everything

Clearly this is not possible with this plugin as it uses Risco Web API and they don't easily allow that.
My edit allows to activate the partial command offered by Risco Web API for the Apple "Night" mode, maybe it's possible to modify the plugin to activate the partial command also in "At home" mode.

It's clear that for Apple "At Home" means "Activate Something" while the state in which the security system is off is "Deactivated"
So to me it's not wrong that this plugin activate the alarm when setting "At Home", to deactivate the security system just trigger the deactivated mode.

from homebridge-risco-alarm.

platini76 avatar platini76 commented on September 15, 2024

YOU HAVE reason 100%
and maybe this is the right configuration.

from homebridge-risco-alarm.

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.