Code Monkey home page Code Monkey logo

dsckeybusinterface's People

Contributors

aboulfad avatar bjrolfe avatar bricedet avatar colinng avatar dilbert66 avatar elektrik1 avatar juliustrafi avatar kricon avatar shafr avatar sj-louw avatar taligentx avatar uberflyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsckeybusinterface's Issues

[QUESTION] Zone Expander

GREAT WORK!

Did anyone found the way to also act as a zone expander? Would be very nice to add "virtual" sensors or zones. I couldn't find any reference/information on how zones expanders work. If someone has any guess we might work on it! Thanks in advance.

Blyn QR codes not working

Hello,

QR codes cannot be scanned nor parsed as an image from gallery. Hovering display just never scans it, opening as an image directly - blynk app errors: Not a valid blynk QR code.

Not sure if it is app issue or QR code itself. Tested using newest blynk app from google market on Android device.

[Question] - Is possible to get user id from panel?

@taligentx, can we get the user id from panel? Is it possible?
For example,
1)In panel we program user1 have code 0001, user2 have code 0002.
2)when panel is armed/disarmed access code entered

Can we by entered code or other data determinate which user armed/disarmed panel?
On real keypad entered code 0001 - we get user1, entered code 0002 - we get user2 in sketch.

[0x16] Unknown panel ....

Hello
some additional data for DSC PC1565 panel.
4704.33: 00010110 0 00001110 00100010 11100110 00101100 [0x16] Unknown panel | Zone wiring: EOL | *8 programming

also in installation mode in section [903] Module Supervision Field:
19035.68: 00000101 0 10000001 11101111 10010001 11000111 [0x05] Partition 1: Ready Backlight - Unrecognized data: 0xEF | Partition 2: disabled
19035.75: 00001010 0 10000001 11101111 01000001 00000000 00000000 00000000 00000000 10111011 [0x0A] Ready Backlight - Unrecognized data: 0xEF | Zone lights: 1 7

  • reports zones with broken supervising.

br
Zahari

PC1616/PC1832/PC1864 series support - data logs needed

Post logs here as captured by the KeybusReader example for the missing data listed below. In KeybusReader, set dsc.hideKeypadDigits = true; to keep access codes typed in to the panel obscured for posting publicly.

Changes:

  • 2018.07.17: Removed zones 33-64 with DEOL resistors fault and tamper
  • 2018.06.18: Removed virtual keypad partitions 3-8
  • 2018.06.10: Added zones 33-64 fault and tamper
  • 2018.06.04: Added: partitions 3-8 keypad keys. Removed zones 33-64 status, zones 33-64 alarm.
  • 2018.06.03: Removed: multiple partitions (again), fire, arrow keys.
  • 2018.05.31: Re-added multiple partitions. Added: fire, arrow keys.
  • 2018.05.23
    • Completed: PC1616/PC18x partition 1 armed, partition 1 alarm, zones 1-32 status, zones 1-32 in alarm
    • Removed: multiple partitions, zone expander decoding - these will require hands-on testing.
  • 2018.05.09: Completed: zone expander zones 9-15
  • 2018.05.07: Added zone expander request, PC1616/PC18x keypad keys

[Question] - esp8266 pin configuration

I'm a little bit confused regarding esp8266 pins to use since there is a difference in sketches vs. decriptions.
According to your description the following pins shall be used (esp8266: D1,D2,D8), but in the Status and KeybusReader sketch D9 is used!

In Status and Keybus Reader sketch
#define dscClockPin 3 //esp8266 v1.0 D9
#define dscReadPin 4 //esp8266 v1.0 D2
#define dscWritePin 5 //esp8266 v1.0 D1

In Status-MQTT-Homebridge sketch
#define dscClockPin D1
#define dscReadPin D2
#define dscWritePin D8

also - I assume it is possible to define either Dx or GPIOx, example GPIO 5 or D1

[Question] - how to stop dscKeybusInterface

Hello! How I can stop dscKeybusInterface? I use nodemcu v3 I want to use OTA, but when my writePIN konnected to the GREEN key-bus wire I can't do OTA, it starts and failed. I my sketch without dsc.start(), keeping all wires connected to panel - ota work fine. Any ideas about it? I use last SDK & Core.

[QUESTION] support for MQTT+Openhab

I have tried to use the ESP8266 HomeAssistant-MQTT.ino and tried to connect it with OpenHab. It did not work out, I do not know why.. Would it be a lot of work to make an example code for OpenHab through MQTT?

Soft WDT reset in HomeAssistant-MQTT

Hi, on a serial console I am observing soft WDT reset periodically, there are some articles in the net about it, eg. esp8266/Arduino#2866 which suggests issues with watchdog timer, but I don't know how to identify relevant code line for this. Any hints?

08:57:47.938 ->
WiFi connected: 192.168.1.41
08:57:48.963 -> MQTT connected: 192.168.1.30
08:57:48.963 -> DSC Keybus Interface is online.

08:59:35.135 -> Soft WDT reset
08:59:35.135 ->
08:59:35.135 -> ctx: cont
08:59:35.135 -> sp: 3ffefaf0 end: 3ffefd90 offset: 01b0
08:59:35.135 ->
08:59:35.135 -> >>>stack>>>
08:59:35.135 -> 3ffefca0: 00000007 3ffee738 3ffee610 40203ac0
08:59:35.168 -> 3ffefcb0: 3ffefcf0 3ffee610 00000000 40201ddf
08:59:35.168 -> 3ffefcc0: 3ffefcf0 00019a44 3ffee738 402051f4
08:59:35.168 -> 3ffefcd0: 00000000 3fffdad0 3ffee738 402035f2
08:59:35.168 -> 3ffefce0: 2f637364 00746553 3ffee738 40203508
08:59:35.168 -> 3ffefcf0: 514d0401 00000001 3ffe8775 3ffee73c
08:59:35.168 -> 3ffefd00: 3ffe84b4 00000000 3ffee738 40203456
08:59:35.168 -> 3ffefd10: 3fffdad0 0000001f 3ffeed3c 3ffefd40
08:59:35.204 -> 3ffefd20: 3fffdad0 00000001 3ffee738 40201f46
08:59:35.204 -> 3ffefd30: 3fffdad0 00000000 3ffeed60 40201fa8
08:59:35.204 -> 3ffefd40: 3fffdad0 3ffee80c 3ffeed3c 40204d74
08:59:35.204 -> 3ffefd50: 3fffdad0 3ffee80c 3ffeed3c 4020236c
08:59:35.204 -> 3ffefd60: 00000000 00000000 00000001 3ffeed68
08:59:35.238 -> 3ffefd70: 3fffdad0 00000000 3ffeed60 4020501c
08:59:35.238 -> 3ffefd80: feefeffe feefeffe 3ffeed70 40100718
08:59:35.238 -> <<<stack<<<

08:59:35.272 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
08:59:35.272 ->
08:59:35.272 -> load 0x4010f000, len 1384, room 16
08:59:35.272 -> tail 8
08:59:35.272 -> chksum 0x2d
08:59:35.272 -> csum 0x2d
08:59:35.272 -> v3ffe88b0
08:59:35.272 -> ~ld

08:59:35.505 ->
WiFi connected: 192.168.1.41
08:59:36.516 -> MQTT connected: 192.168.1.30
08:59:36.516 -> DSC Keybus Interface is online.

update
in tests I identified moment when it happens - each time when I try to send 1A over MQTT

ESP8266 broadcasting unwanted SSID

The esp8266 sketches broadcast a unsecured network / SSID (Example: ESP_123456). This behaviour can and should probably be disabled by using WiFi.mode(WIFI_STA); in the setup routine of the sketch.

Example:

...
  WiFi.begin(wifiSSID, wifiPassword);
  WiFi.mode(WIFI_STA);
  while (WiFi.status() != WL_CONNECTED) delay(500);
...

Only one Zone Alarm reported

Only one zone is reported in alarm state, its seems it's only the first tripped zone that is reported

Partition armed away
Zone open: 9
05/17/2018 16:06 | Zone alarm: 9
05/17/2018 16:06 | Partition in alarm
Zone open: 7                              // Zone configured as door entrance delay
Zone restored: 7
Zone open: 1                              // Motion detection - sholud also be Zone alarm state ??
Zone open: 2                              // Motion detection - sholud also be Zone alarm state ??
Zone restored: 1
Zone open: 5                              // Motion detection - sholud also be Zone alarm state ??
Zone restored: 2
Zone open: 2
Zone open: 1
Zone restored: 5
Partition disarmed
Zone restored: 1
Zone restored: 2
05/17/2018 16:07 | Zone alarm restored: 9
Zone open: 7
Zone restored: 9

Log_PowerSerie832_PC5015-ALARM_OnlyOneZone_Status.txt
Log_PowerSerie832_PC5015-ALARM_OnlyOneZone_KeybusReader.txt

Issue with Blynk code scanning

Hi,
I'm trying to scan Blync code on my Android (A5 2016) and I have probles as image is very dark itself and when trying to scan from the monitor it is hardly visible, phone doesn't capture it at all.
When I try to download image and open it with Blync it says - not valid QR code.

How did you solve this issue?

Telegram bot

Hi, no one tried to use this library with the Telegram bot to control the alarm and receive the event?
I want to try, but not knowing where to start ... I am not very good at programming.

mqttPartitionTopic occasionally stays on "pending" (exitDelay) after arming

It's been over 6 months I interfaced POWER1864 all works like a charm. But occasionally mqttPartitionTopic topic stays "pending" and "armed_home" or "armed_away" is not published when panel is armed. Never faced problem with disarming.

runs on old arduino leonardo+eth shield.

Anyone experienced the same issue?

Homeassistant sketch not publishing status back to MQTT topics

For some reason I am able to arm/disarm (write to panel) via Homeassistant and Homebridge, but nothing seems to be coming into the dsc/Get/ZoneX/# mqtt topics (reading from panel then posting to these zone topics), for zone status... Do you maybe have any idea...?

Further testing seems that the Arduino reads the incoming messages in the dsc/Set topic fine. It then successfully executes the panel "A", "S" and "D" commands, but never posts the status back to the dsc/Get topic so that armed status can be read by Homeassistant/Homebridge. The same goes for the dsc/Get/ZoneX topics. The Arduino does not publish zone updates there. I am testing with the sketch in pull request: #15

"Web virtual keypad" doesn't work for me

Hi, sorry for my English, I'm using the google translator. I wanted to try "Web virtual keypad", but it doesn't work for me in the browser. I compile the program, but it doesn't work for me, in serial print it shows me
"........
WiFi connected
192.168.1.44
" and nothing more.
I have doubts if the libraries are being loaded correctly since in the IDE it shows me some in black, I enclose sending captures.

Captura de pantalla (1)
Captura de pantalla (2)

mqttPartitionTopic receives multiple "D" events

Hi,

running the esp MQTT example, I have noticed whenever the motion detectors trigger, the mqttPartitionTopic receives multiple D events (I think 4 D's per trigger). Unsure if this is the intended behaviour of the panel, dsc software or MQTT sketch ?

PS: this is from closed issue #89

mosquitto_sub -t home/dsc/Get/Zone3
0
1
0

1
0
1
0

1
0
mosquitto_sub  -t home/dsc/Get/Partition1
D
D
D
D
D
D
D

D
D
D
D
D
D
D
D
D

D
D
D
D

D
D
D
D

D

D
D
D
D

Arduino freeze after long run - known problem?

Hi,

I'm using an arduino Uno for this, but after a long time (weeks if not months) it seems unresponsive and the only way to recover is to restart it with power recycle.

Is it possible that dsc.handlePanel(); never returns? I put it into my loop, but loop does not seem working any more.

HTTP Server Example -Arm/Disarm not working

Good morning
I have (almost) successfully implemented HTTP Server example. Virtual keypad reads all messages and numeric buttons also write back into the key bus, however all the other "combo" buttons (stay arm, arm, etc. ) do not work.
When you press those buttons , it beeps on the virtual keypad and the serial output only sends open/close braces {}.
I have a PC1616 system
Thanks!

Installer Code unlocking - testing/feedback

Ok someone had to request this! I’ve been reading in the reference manual about keypad lockout and I can’t figure out if there’s a way to find out if it is enabled, obviously without the installer code.

So I am curious about the suggestion you make about the workaround:

...possibly automatically power-cycling the panel with a relay to skip the lockout time.

That would require knowing that a keypad lockout happened, and an event will be registered, but why do you think that it isn’t saved even if the unit power cycles?

DSC 1832: 0xE6, 0xCE - Unrecognized data

Hello,
first, amazing work, thank you !
I have just connected my module and ran the reader sketch, I get lot's of things working but notice these two unrecognized data that I found you referenced in the below linked issue comment. Those two events seem to repeat few times during the time I connected the module I built.

FYI: my panel is connected to a monitoring company using cellular connection, has 9 zones (?) and panel model is RFK5500-433 (supports wireless RC).

I will send the entire log file if there's another run you require to debug this. Thank you again :)

  433.47: 11100110 0 00011010 01000000 00000000 00000000 00000001 00000001 00000000 00000000 01000010 [0xE6] 0x1A: Unrecognized data
  433.47: 11111111 1 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 10000000 [Keypad] Unrecognized key: 0xFF

...
  433.57: 11001110 0 00000001 00010000 00000000 00000000 00000000 11011111 [0xCE] Unrecognized data
  433.63: 11001110 0 01000000 11111111 11111111 11111111 11111111 00001010 [0xCE] Partition 1,2 activity

There are some other "errors":

  225.67: 00010110 0 00001110 01000001 11110101 01011010 [0x16] Unknown panel | Zone wiring: NC | Interval 4m
  191.06: 11111111 1 11111111 11111111 11111110 11111111 11111111 11111111 11111111 11111111 [Keypad] Unknown Keybus notification

I've mostly decoded 0xE6 and 0xEB and have pushed a new develop branch for feedback and testing, supporting partitions 2-8, zones 33-64, and writing to partitions 1 and 2.
...
Originally posted by @taligentx in #2 (comment)

Zones 17-32 not working

At first I want to thank for this work. It's exactly what I was looking for.
My alarm has 20 active zones and I found that zones over 16 were not working. After a little debugging I found a bug in the dscKeybusProcessData.cpp file.
In "processPanel_0x34()" where the panelData should be written to zones 17-24, the data are written to zones 9-16. Exactly the same happens with zones 25-32.
To solve this you must modify line 336
openZones[1] = panelData[6];
with
openZones**[2]** = panelData[6];
and line 359:
openZones[1] = panelData[6];
with
openZones**[3]** = panelData[6];

After that all seems to work OK.

Gerber and Ascii drill files

Hi,

I sent the included pcb files in the download to a manufacturer. They came back and said they cant use the files, they need the Gerber and Ascii drill files. Any chance this is available and can be sent to me please?

Pushbullet esp8266 more notification

Hi @taligentx ,

I upload sketch with pushbullet (change only messages to my language). It works, but i need a little more notification to add ( alarm armed, alarm disarmed, arm AWAY, arm STAY, sabotage zones. I try to add this messages, but did not work. I do not know how to add this notification properly. I try only copy paste from yours sketch and change values.

I add it like this but no working, sketch comile without problem

   if (dsc.armed[partition]) {
    dsc.armed[partition] = false;  // 

    char pushMessage[42] = "Armed partycja ";
    char partitionNumber[2];
    itoa(partition + 1, partitionNumber, 10);
    strcat(pushMessage, partitionNumber);

    if (dsc.armedChanged[partition]) sendPush(pushMessage);
    else sendPush("Dissarmed");
   }

    if (dsc.armedAway[partition]) {
    dsc.armedAway[partition] = false;  // 

    char pushMessage[44] = "AWAY ";
    char partitionNumber[2];
    itoa(partition + 1, partitionNumber, 10);
    strcat(pushMessage, partitionNumber);

    if (dsc.armedStay[partition]) sendPush(pushMessage);
    else sendPush("STAY");
   }

The next question is possible add a notification of 24 hours waterflow line, 24 hours gas line, etc.?

Edit:
I see another problem with sketch. When i lost AC power and get it again, i don`t see pushbullet notification? It works only when alarm is armed?

A way to stop dscKeybusInterface

Hi there,
Is there is a way to stop dscKeybusInterface?
I mean, like dsc.begin but dsc.stop

I am integrating the code with a different Wifi manager (IoTWebconf instead of WiFiManager) and for some reason (that I don´t know) if dscKeybusInterface is started, it fails to connect to WiFi.
So I workarounded starting dscKeybusInterface after Wifi connection is stablished.

if (iotWebConf.getState() == IOTWEBCONF_STATE_ONLINE) {
                if (!DSCBegined){
                    // Starts the Keybus interface and optionally specifies how to print data.
                    // begin() sets Serial by default and can accept a different stream: begin(Serial1), etc.
                    dsc.begin();
                    DSCBegined = true;
                    Serial.println(F("DSC Keybus Interface is online."));
                }
        doDSC();
      }

And then it´s work fine, but if Wifi connection is lost, it will retry connecting with no success because dscKeybusInterface is begined. So I need stop dscKeybusInterface until Wifi connection is restablished and then dsc.begin again.

Can anyone suggest a way to do this?

Thanks in advance for your sugestions.
Best regards.

Request: pereodical status update for Home Assistant

Hello!
It's more feature request: could HASS sketch be modified to send pereodical status update to MQTT? Cause you will loose control from "alarm control panel" if HASS will be restarted after power failure (so no arm/disarm buttons).

P.S. 1:
Confirming work on PC1565

P.S. 2:
Also for Wemos D1 R1 (!) actual pins are:
D3 (5), D4 (4), D10 (15)
and board can be powered directly from AUX via Vin

P.S. 3:
what is meaning of 1kOhm resistor in connection scheme to transistor? It's also working without it (accidentally forgotten to add it when was rewiring)

Redirect/replace dscKeybusPrintData stream->print to a buffer

Hi,
I would like to redirect the dscKeybusReader so I can send the print data to whatever output device: serial, file, IP (MQTT, syslog,...)

I know very little of C++, but I managed to get that stream inherits from print class, and dsc.begin sets stream output to Serial. Is there an easy way to redirect the stream to a buffer that can be accessed by a method to direct the print data to the appropriate output device?

What I have done so far is to add a new method and did a global and replace for stream->print with the new method, but realize there must be a cleaner OO way to do this. Any suggestions? Ideally the object/buffer should be accessible in the sketch so the user has control over it and use the “output” of their choice.

I think this would be interesting to add, along with OTA, one can run any example and retrieve detailed logs from the comfort of their sofa:) I’d be more than happy to continue my work and create a PR with some help/guidance.

Missing release 1.1

Version 1.1 of this library is missing in the "Release" page. Up to 1.0 only is there.

setTime not working, triggered an alarm

UPDATE: This turned out to be a bug in dsc.write(char*). See #100 (comment) below

I am using the develop branch.

setTime doesn't seem to be working correctly. After calling it, the panel time didn't change. Example:

dsc.setTime(2019, 6, 1, 1, 1, "accesscode");

In fact, I tried this multiple times, and suddenly my alarm went off. Probably not the most popular house in the neighbourhood now.

When the alarm was blaring, I ran to the physical keypad and entered my access code once. It didn't stop the alarm. In panic I pressed Reset, and entered the access code again and again.... lol. Eventually the alarm noise stopped and the "Ready" LED was on.

I observed two problems:

  1. The alarm went off :), and the time didn't get updated.

  2. I noticed that the partition 1's alarm flag is still set to 1. It doesn't seem to have gotten reset back to 0 (like the openZone for example) after the alarm has been disarmed. Is this supposed to be reset to 0 by my sketch after reading it?

Why did my alarm go off? Was it something to do with setTime not working for me?

Have you tested setTime() on your system, e.g. repeatedly / multiple times etc?

HomeKit Security System Support

Hi,
this is to capture our discussion and progress on how to properly update HomeKit SecuritySystem Service when a change happens in the Alarm system (accessory to Homekit)

To prove and discover how it is supposed to work, I coded a simple HAP-Node script, that adds the SS service/acc and listens on MQTT for commands.

In order to get HomeKit SS icon to go from OFF to Arming then to Home, the sketches in this library have to send over to MQTT:

Solution 1: The "exit in progress" (not done) and then "SA" (done) as they happen on the Security Panel to mqttPartitionTopic. (In the included short video, I simulated this library sketches by sending EX for Exit delay in progress and SA for STAY ARM using mosquitto_pub.)

THEN the corresponding HomeKit script (HAP-Node, HomeBridge, MQTTThing, ...) has to handle the exit and different arming types by updating the respective SecuritySystem service characteristics [SecuritySystemCurrentState, SecuritySystemTargetState] (Issue #126 )

Solution 2 OR this library sketch publishes SA to two different MQTT topics getTargetState then to getCurrentState, first one corresponding to exit delay in progress, the second to indicate system is armed. The HomeKit script then updates the appropriate characteristics.

Depending on the chosen solution, the https://github.com/taligentx/dscKeybusInterface/blob/master/examples/esp8266/Homebridge-MQTT/Homebridge-MQTT.ino needs to send some payload to indicate there is an exit in progress. Or publish SA to those two homekit topics...

ESP8266 freezes after few days

I made your project (VirtualKeypad-Blynk.ino), it is very useful and powerful. I use your ESP8266 blynk example, I havent modified it. The ESP sends data to my Blynk server which is on my local area network, working on an Orange PI Zero. I have also made your pcb with a 2n2222 transistor. Everything working fine for few days, 2 or 3 days. After the ESP freezes and need to hard reset. After reset it, working again. I have made some investigation, I have added a terminal and do some printing. It say "Keybus buffer overflow". I increased the dscBufferSize in the library: src/dscKeybusInterface.h. Now I havent got buffer overflow, but it freezes as before. Does anybody have the same problem? Or yours working for months or years? I have 5v swithing regulator like this:
https://www.banggood.com/3A-UBEC-Module-Low-Ripple-Bluesky-Mini-Switch-Mode-DC-BEC-5V-12V-2-6S-Supply-p-993056.html?rmmds=search
, and I am powering the ESP on the Vin pin with 5V.

Please help me!

panel pc585 pc1565 keypad FAP

the F A P buttons of the pc585 and pc1565 keypad do not send any data to the serial port when pressed for 3 seconds

in the pc1832 panel works perfectly

Virtual keypad keys

Hi, i do not quite understand how the virtual keypad keys works ... So the code set in the virtual keyboard will put the panel under guard?

Sorry for my english, i'm using an translator

Wiring for arming and disarming alarm.

Hi,
Sorry to open an issue just for a question buy I didn´t know how to contact you.
In regards of wiring... I want to arm the alarm with Home Asisstant. Do I need to make the connection with the transistor as indicated for Virtual keypad or not?

In case I need it: I see that the normal connection and the Virtual Keypad connection both uses the same green DSC wire. To use the Virtual Keypad should I replace the 10k resistor wiring with the 1k+transistor connection or should I connect both things to the same wire (leaving both connections at the same time)

Thanks in advance for your answer.

Best regards.

[Enhancement] Init value for Fire and Alarm status

WAIT - I WILL INSTEAD TRY TO HAVE MY OWN INIT IN THE BEGINING OF THE LOOP, IT MAY BE BETTER IF THIS IS CONTROLLED BY RESPECTIVELY IMPLEMENTATION

Provide an init value for at least Fire and Alarm at startup, meaning let the Change flag be true once.

  • dsc.partitionAlarmChanged
  • dsc.fireStatusChanged

The logic as of today provides updates only if there has been a status change. In the Homey app there is an absence of the status in the Fire and Tamper alarm device since nothing is provided. The status change for these are quite rare!

It may be needed to have a minor delay, or trigg on another status change in order to ensure listening systems such Homey is established.

// Publish alarm status to Homey
    if (dsc.partitionAlarmChanged) {
      dsc.partitionAlarmChanged = false;  // Resets the partition alarm status flag
      if (dsc.partitionAlarm) Homey.setCapabilityValue("alarm_tamper", true);
      else Homey.setCapabilityValue("alarm_tamper", false);
    }

Store/update panel time

Hi, do we have any possibility to read values from display.
One issue I am facing - 2x per year we are shifting from Summer to Winter time and vice verse. (Plus my clock is not accurate) I would be happy to get an access to current data/time setting and if they are shitted, then push an update to correct one

esp8266 KeybusReader error / BLYNK Zones 17-64 problem

Hi,

Serial output

DSC Keybus Interface is online.
3.00: [0x00] Unrecognized data[CRC OK]

all connect properly (i think) using bc547b (cross collector and emiter in ori schematic diagram) this same problem when use sketch VirtualBlynk. In serial see only DSC Keybus Interface is online or nothing. Connected with server, blynk aplication connected to server properly but nothing works when zone is open or using keyboard. Whats going on? I mistake something? I using esp 12E not nodemcu (waiting for delivery).

QR code with 64 zones didn`t working i send you PM about problem. Hope you understand.

P.S. I use PC5020 + extended zone module pc5108 ( 4 pcs conected at this moment, but have 7 or 8 pcs ) 2 x LCD keyboard and PGM 5208?

P.S 2 Today i did next module for esp8266 with bc547b all pinouts is ok, on diffrent keybus reader sketch from dj slow library in arduino works ok. I think the problem is on sketch or esp. Any ideas?

P.S. 3
No WAI! i read the sketch again and see the problem. Problem is pin configuration, i have naked esp8266 12e and change the pin configuration

#define dscClockPin 5 ( change from D1) // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
#define dscReadPin 4 (change from D2) // esp8266: D1, D2, D8 (GPIO 5, 4, 15)
#define dscWritePin 15 (change from D8) // esp8266: D1, D2, D8 (GPIO 5, 4, 15)

Now it works with some problems, in 32 zones there is a little buggy for me (can`t report zone 17-32 and up like this issue #31) - only info on lcd "zones open" but no light buttons , 1-16 work ok, I need 64 zones for my alarm. Qr code in sketch for 64 zones is faulty. Please update link or clone and share good blynk with 64 zones. In blynk can i use 2 buttons next or prev?

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.