Comments (9)
Hi, I believe it's HomeKit stuff.
Plugin is able to only change states (Home / Away / etc) , once new state is received, it execute command on Risco page. There is no implemented "Turn Off Alarm" HTTPS request from Plugin to Risco as there is no available Button on HomeKit to allow me to do that.
from homebridge-risco-alarm.
but why does the the alarm in HomeKit switch to OFF and not stay on AWAY in HomeKit?
at least then we could simply press OFF to turn off alarm
from homebridge-risco-alarm.
I didn't tested that approach long time ago, not sure how to "Turn it off from HomeKit".
In theory code is ready for that:
`var riscoState;
// 0 - Characteristic.SecuritySystemTargetState.STAY_ARM:
// 1 - Characteristic.SecuritySystemTargetState.AWAY_ARM:
// 2- Characteristic.SecuritySystemTargetState.NIGHT_ARM:
// 3 - Characteristic.SecuritySystemTargetState.DISARM:
//logger.debug(body);
if (body.OngoingAlarm == true) {
riscoState = 4;`
from homebridge-risco-alarm.
yes. we are setting 4, that is TRIGGER in HomeKit, so it looks like 4 in the action screen (HOME, NIGHT, AWAY, OFF) default to OFF and not keeping the original state. I guess there is nothing we can do.
from homebridge-risco-alarm.
Characteristic.SecuritySystemTargetState.UUID = '00000067-0000-1000-8000-0026BB765291';
// The value property of SecuritySystemTargetState must be one of the following:
Characteristic.SecuritySystemTargetState.STAY_ARM = 0;
Characteristic.SecuritySystemTargetState.AWAY_ARM = 1;
Characteristic.SecuritySystemTargetState.NIGHT_ARM = 2;
Characteristic.SecuritySystemTargetState.DISARM = 3;
it does not support 4 so where is TRIGGER set ?
from homebridge-risco-alarm.
oh found it here https://github.com/KhaosT/HAP-NodeJS/blob/HEAD/src/lib/gen/HomeKit.ts#L2015
export class SecuritySystemCurrentState extends Characteristic {
// The value property of SecuritySystemCurrentState must be one of the following:
static readonly STAY_ARM = 0;
static readonly AWAY_ARM = 1;
static readonly NIGHT_ARM = 2;
static readonly DISARMED = 3;
static readonly ALARM_TRIGGERED = 4;
static readonly UUID: string = '00000066-0000-1000-8000-0026BB765291';
constructor() {
super('Security System Current State', SecuritySystemCurrentState.UUID);
this.setProps({
format: Formats.UINT8,
maxValue: 4,
minValue: 0,
validValues: [0, 1, 2, 3, 4],
perms: [Perms.READ, Perms.NOTIFY]
});
this.value = this.getDefaultValue();
}
}
from homebridge-risco-alarm.
so it does look like a HomeKit issue not Homebridge or this plugin.
from homebridge-risco-alarm.
yep, correct. I don't think we could do anything with this
from homebridge-risco-alarm.
but why does the the alarm in HomeKit switch to OFF and not stay on AWAY in HomeKit?
at least then we could simply press OFF to turn off alarm
from homebridge-risco-alarm.
Related Issues (20)
- login error but working HOT 13
- info on channel trigger HOT 2
- Clarity on Readme HOT 6
- Multiple instances of plugin HOT 3
- can i use this as standalone? HOT 4
- Public API verry soon available HOT 6
- Handle Zone HOT 9
- login [step1] > error: Username/Password mismatch HOT 85
- Not responding since ios13 HOT 14
- Username/password mismatch HOT 2
- Login doesn't work HOT 14
- Noob question regarding installing HOT 1
- problem HOT 1
- Arm Command only sets Partition 0 HOT 11
- Voice command in italian HOT 1
- Domoticz Accessory HOT 1
- how to configure multi partitions HOT 1
- Night Mode HOT 17
- risco cloud update HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-risco-alarm.