Comments (12)
Just an FYI. The Flip Flop with DSC switching from ARMED to STAY at the end is still open so this will stay open. I will look again if I have any way of knowing the armed state prior to the end when I get back into firmware stuff this fall but I recall spending many days on that issue and ended up accepting it as a feature at the time. I also added to the ST readme as a current issue.
from alarmdecoder-smartthings.
Ok after looking at the rest api it appears the problem is in the webapp. The following was returned by
/api/v1/alarmdecoder
when panel was stay armed. Note it is not setting the panel_armed_stay
correctly
{
"last_message_received": "!KPM:[01010011000000000D--],008,[000200000000000000000000000000],\"Exit Delay In Progress \"",
"panel_alarming": false,
"panel_armed": true,
"panel_armed_stay": false,
"panel_bypassed": {
"null": true
},
"panel_fire_detected": false,
"panel_on_battery": false,
"panel_panicked": false,
"panel_powered": true,
"panel_ready": false,
"panel_relay_status": [],
"panel_type": "DSC",
"panel_zones_faulted": []
}
from alarmdecoder-smartthings.
I will test this but I believe the issue is deeper in the DSC firmware. It has trouble knowing if it is arming stay or away during the exit delay. I seem to recall that it would jump from arming to "stay" at the very end.
from alarmdecoder-smartthings.
@f34rdotcom the problem does not appear to be in the dsc firmware as you can see from the above messages there is 1 bit different in the KPM message 01010011000000000D vs 01010001000000000D the 7th bit from the left would seem to indicate a stay arm.
from alarmdecoder-smartthings.
Not to mention the fact that this use to work with a previous version of the alarm decoder stack.
from alarmdecoder-smartthings.
The 7th bit is BYPASS bit.
https://www.alarmdecoder.com/wiki/index.php/Protocol#Bit_field
This is how DSC arms in that it bypasses zones in stay mode. During the "Exit Delay" on DSC the panel message you sent shows bit field #2 is "ARMED AWAY" on both of your messages.
This is what I have seen as well. Here is a test I just did. Note the HOME bit does not change till the end of the arming cycle. Can you please send me the full arming sequence. These messages are the RAW messages from the AD2* firmware. The layers above this in the web app also have some DSC specific logic that may have broken or changed to deal with the differences(quirks) between panels that I have encountered in development. One work around would be to presume it was STAY arming exit delay if the BYPASS bit #7 is set. I am not an expert in DSC panel programming but if this is expected behaviour then this would be an easy quirk to work around.
[10010001000000100D0-],001,[000200000000000000000000000000],"System is Ready to Arm <>"
[10010001000000100D0-],001,[000200000000000000000000000000],"System is Ready to Arm <>"
[10010001000000100D0-],001,[000200000000000000000000000000],"System is Ready to Arm <>"
!INF: Sending my code 1234
!Sending.done
!INF: The ARMED AWAY bit #2 is now active.
[01010011000000100D0-],008,[000200000000000000000000000000],"Exit Delay In Progress "
[01010011000000100D0-],008,[000200000000000000000000000000],"Exit Delay In Progress "
[01010011000000100D0-],008,[000200000000000000000000000000],"Exit Delay In Progress "
!INF:...This went on for a while... My exit delay is too long.
[01010011000000100D0-],008,[000200000000000000000000000000],"Exit Delay In Progress "
!INF: The ARMED AWAY bit turns off and the STAY bit turns on at the end of the exit dealy.
[00110011000000100D0-],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
[00110011000000100D0-],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
!INF: With DSC specifically the best indicator of how the panel was armed is the LRR message at the end of the arming cycle. 441 is the OPEN/CLOSE contact ID for STAY MODE.
!LRR:040,1,CID_3441,00
[00110011000000100D0-],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
[00110011000000100D0-],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
[00110011000000100D0-],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
from alarmdecoder-smartthings.
Stay arm
2019-01-10 03:42:11 | !KPM:[01010011000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
2019-01-10 03:42:11 | !KPM:[01010611000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
// After exit delay
2019-01-10 03:44:11 | !KPM:[00110011000000000D--],004,[000200000000000000000000000000],"System Armed In Stay Mode <>"
Away arm
2019-01-10 03:39:05 | !KPM:[01010601000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
2019-01-10 03:39:06 | !KPM:[01010001000000000D--],008,[000200000000000000000000000000],"Exit Delay In Progress "
// After exit delay
019-01-10 03:41:05 | !KPM:[01010001000000000D--],005,[000200000000000000000000000000],"System Armed In Away Mode "
from alarmdecoder-smartthings.
from alarmdecoder-smartthings.
I switched it back to default
from alarmdecoder-smartthings.
Problem remains...are we any closer to a fix on this?
from alarmdecoder-smartthings.
FYI. The update I am working on allows for changing the device type and inverting the contact if needed. I just did some testing on a 1832 and so far Arm AWAY or STAY it seems to show the correct state after exit delay. It also shows the EXIT delay and the EXIT DELAY virtual contact activates.
from alarmdecoder-smartthings.
If possible a short term tweak which would significantly improve the situation would be to assume arm stay during the exit delay rather than arm away.
Updated to the latest to try to get alarm decoder hooked backed into smart things. The current situation is an improvement though still not great as smart things switched the house to arm (away) during the exit period for arm (stay). Which results in sirens if i walk past any motion sensor being monitored by smart things rather than DSC.
from alarmdecoder-smartthings.
Related Issues (20)
- Problem installing virtual Devices with Simulator HOT 11
- Zones not updating in Smartthings HOT 9
- smart app not discovering device HOT 1
- Suggestion: Motion Sensors HOT 2
- SHM integration issue HOT 2
- Device is often (almost always) "Not Ready" HOT 13
- Status updates not going to ST any HOT 20
- Smoke and CO? HOT 15
- Change to "close" seems to work but its wrong. HOT 1
- Arming/Disarming Countdown Timer
- API Status Message for Bypassed Zones HOT 1
- Instant GUI Panel
- Adding Armed state to REST API HOT 2
- Another random Exception adding zone :( HOT 1
- Any way to detect night mode? HOT 18
- Unable to Add Virtual Motion Sensor HOT 7
- Change of MAC address or IP address of AD2PI Appliance requires reinstalling HOT 1
- ZoneTracked is limited to 12 zones even if we make 20. HOT 3
- Re-Integrating My AD2Pi with SmartThings HOT 2
- New smartthings app HOT 9
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 alarmdecoder-smartthings.