Dilbert66 / esphome-dsckeybus

Esphome custom configuration for interfacing to a DSC POWERSERIES alarm system
177 stars 31 forks source link

Erroneous panel status changes #2

Closed slipx06 closed 3 years ago

slipx06 commented 3 years ago

I seem to have a problem when using the development version libraries from dscKeybusInterface. I get erroneous and very brief status changes being reported from my panel. I don't experience this using version 1.2 I should probably log this as an issue under that project but hoping you can help with debugging. See example below. During this time the alarm was in a disarmed state the entire time.

Capture

Dilbert66 commented 3 years ago

Can you post a some of the esplogs from the monitor window. This should help. I will also post a debugging version of dscalarm.h for debugging that will post more info.

Dilbert66 commented 3 years ago

What panel are you using?

Dilbert66 commented 3 years ago

I've added a new branch called debug. Use the dscalarm.h file from there and place it in the dsckeybussinterface dir instead of the other. This prints all commands received. I need to see what is triggering those changes. Your panel version might behave different than mine.

slipx06 commented 3 years ago

What panel are you using?

I'm using a DSC Power8 PC5005. I'll test with the debug branch and post some debug logs soon. Thanks.

Standard logs below. The alarm is currently armed_home

INFO Reading configuration /config/esphome/DscAlarm.yaml... INFO Starting log output from 192.168.1.112 using esphome API INFO Connecting to 192.168.1.112:6053 (192.168.1.112) INFO Successfully connected to 192.168.1.112 [22:38:08][I][app:100]: ESPHome version 1.14.5 compiled on Jul 27 2020, 09:54:39 [22:38:08][C][status_led:019]: Status LED: [22:38:08][C][status_led:020]: Pin: GPIO2 (Mode: OUTPUT, INVERTED)

[22:38:08][C][wifi:283]: SSID: [redacted] [22:38:08][C][wifi:284]: IP Address: 192.168.1.112 [22:38:08][C][wifi:286]: BSSID: [redacted]

[22:38:08][C][wifi:291]: Signal strength: -58 dB ▂▄▆█ [22:38:08][C][wifi:295]: Channel: 6 [22:38:08][C][wifi:296]: Subnet: 255.255.255.0 [22:38:08][C][wifi:297]: Gateway: 192.168.1.254

[22:38:08][C][template.binary_sensor:018]: Template Binary Sensor 'Garage Door' [22:38:08][C][template.binary_sensor:018]: Device Class: 'door' [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic) [22:38:08][C][template.binary_sensor:018]: Template Binary Sensor 'Sliding Door' [22:38:08][C][template.binary_sensor:018]: Device Class: 'door' [22:38:08][C][template.binary_sensor:018]: Template Binary Sensor 'Trouble Status' [22:38:08][C][template.binary_sensor:018]: Device Class: 'problem' [22:38:08][C][template.binary_sensor:018]: Template Binary Sensor 'Fire Status' [22:38:08][C][template.binary_sensor:018]: Device Class: 'safety' [22:38:08][C][template.text_sensor:020]: Template Sensor 'System Status'

[22:38:08][C][template.text_sensor:020]: Template Sensor 'Partition 1 Status '

[22:38:08][C][template.text_sensor:020]: Template Sensor 'Partition 2 Status '

[22:38:08][C][template.text_sensor:020]: Template Sensor 'Partition 1 Msg '

[22:38:08][C][template.text_sensor:020]: Template Sensor 'Partition 2 Msg '

[22:38:08][C][template.switch:058]: Template Switch 'Alarm Connection'

[22:38:08][C][template.switch:059]: Restore State: NO [22:38:08][C][template.switch:060]: Optimistic: NO

[22:38:08][C][logger:176]: Level: DEBUG [22:38:08][C][logger:177]: Log Baud Rate: 0 [22:38:08][C][logger:178]: Hardware UART: UART0 [22:38:08][C][restart:021]: Restart Switch 'restart_switch'

[22:38:08][C][ota:029]: Over-The-Air Updates: [22:38:08][C][ota:030]: Address: 192.168.1.112:8266 [22:38:08][C][ota:032]: Using Password. [22:38:08][C][api:095]: API Server: [22:38:08][C][api:096]: Address: 192.168.1.112:6053 [22:38:20][D][binary_sensor:036]: 'Fire Status': Sending state ON [22:38:20][D][binary_sensor:036]: 'Fire Status': Sending state OFF [22:45:41][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [22:48:18][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [22:48:18][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [22:48:18][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_home' [22:49:03][D][binary_sensor:036]: 'Trouble Status': Sending state ON [22:49:03][D][binary_sensor:036]: 'Trouble Status': Sending state OFF

Dilbert66 commented 3 years ago

One thing I do want to point out is that the alarm panel does not recognize the "not_ready" status (when a door or window is open and the system can't be armed). It only recognizes the arm,disarm statuses, triggered and unavailable. If it gets anything else it shows "unknown". I suppose I could have the esphome code send "unavailable" as a status instead of sending "not_ready". This would explain the status of "unknown" showing up since whenever someone opens the door to go out or come in, the alarm status will switch from disarmed to no_ready. You can see that on your alarm system itself. I'll wait for the debug log to know more. On initial startup the esphome code is sometimes in an unknown state untill it gets the 05 cmds and 0x27 cmds from the panel to indicate the state of the partition and sensors.

slipx06 commented 3 years ago

Uploaded some debug logs. (https://pastebin.com/kCQZPYbF) The alarm was in a disarmed state the whole time. You can see the odd behaviour at 08:55:25 when it changes state to armed_away and then back to disarmed

[08:55:22][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [08:55:22][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [08:55:25][D][Debug01:187]: Received: 1,0,01,81,5,1,00,05,00,05,00,81,05,00,C7 [08:55:25][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_away' [08:55:25][D][Debug02:288]: Received: 0,0,01,81,5,1,00,05,00,05,00,81,05,00,C7 [08:55:25][D][Debug01:187]: Received: 1,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [08:55:25][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [08:55:25][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [08:55:25][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7

Some more logs whilst in a disarmed state. See 13:40. The alarm was not triggered so I don't know where it is getting these messages from

[13:37:51][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:37:56][D][Debug01:187]: Received: 0,0,00,81,3,0,00,05,00,05,00,81,03,00,C7 [13:37:56][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'not_ready' [13:37:56][D][Debug02:288]: Received: 0,0,00,81,3,0,00,05,00,05,00,81,03,00,C7 [13:37:56][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:37:56][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [13:37:56][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:37:58][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,2C,02,00,00 [13:37:58][D][Debug01:187]: Received: 0,0,00,81,1,0,00,B1,00,B1,00,DF,0F,00,00 [13:38:01][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:01][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:01][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:01][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:05][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:05][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:05][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:05][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:38:16][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:38:34][D][Debug01:187]: Received: 0,0,00,81,1,0,00,B1,00,B1,00,DF,0F,00,00 [13:38:52][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:39:02][D][Debug01:187]: Received: 0,0,00,89,1,0,00,05,00,05,00,89,01,00,C7 [13:39:02][D][Debug02:288]: Received: 0,0,00,89,1,0,00,05,00,05,00,89,01,00,C7 [13:39:02][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:39:02][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:39:10][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,2C,04,00,00 [13:39:28][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:39:46][D][Debug01:187]: Received: 0,0,00,81,1,0,00,3E,00,3E,00,81,01,00,C7 [13:40:04][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:40:13][D][Debug01:187]: Received: 0,0,00,81,17,0,00,05,00,05,00,81,11,00,C7 [13:40:13][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'not_ready' [13:40:13][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'triggered' [13:40:13][D][Debug02:288]: Received: 0,0,00,81,17,0,00,05,00,05,00,81,11,00,C7 [13:40:14][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:40:14][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [13:40:14][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [13:40:22][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,09,00,EF,00 [13:40:40][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:40:58][D][Debug01:187]: Received: 0,0,00,81,1,0,00,A5,00,A5,00,20,15,4F,00 [13:40:58][D][Debug02:288]: Received: 0,0,00,81,1,0,00,A5,00,A5,00,20,15,4F,00 [13:41:16][D][Debug01:187]: Received: 0,0,00,81,1,0,00,11,00,11,00,AA,AA,AA,AA [13:41:34][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,2C,08,00,00

Dilbert66 commented 3 years ago

Ok, I see what's happening. One of the main changes from the master branch to the develop was the capture of armed and triggered status from the 05 command instead of just using the 27 command. The reason for that was that on initial bootup the esp8266 doesnt know the system status until it gets a 05 or 27 command. The 27 command has the same info as the 05 (plus zone data) but is normally only sent on a zone change. The 05 is sent periodically. So what happens if you only look at the 27 command for status, you will need to wait till something changes to get valid status (ie a door opening, motion sensor triggering, arming, etc). By using the 05, the partition statuses get updated right away. The only statuses that won't be updated will be zones.

This works fine for most systems but in the case of your pc5005, it seems to send bogus arm and trigger commands periodically followed by the correct status. My PC5010 panel doesnt do that. I suspect it's a bug in the panel code. Either way, most keypads probably ignore the 05 and depend on the 27 for status. 05 is probably used by older keypads.

So to fix this. I can either remove the 05 arm/triggered check code or add logic to check for another variable. When my system is armed the lights set bit 1 so I can check for that to ensure that this is a valid status. I'll upload a new dsckeybusprocessdata.cpp file in the debug branch and you can try that.

08:55:22][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,[05],00,[81],[01],00,C7 cmd=05 lights=81 - ready lights only status=01 - disarmed and ready

[08:55:25][D][Debug01:187]: Received: 1,0,01,81,5,1,00,05,00,[05],00,[81],[05],00,C7 cmd=05 lights=81 ready light only status=05 - armed in away mode

[08:55:25][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_away' [08:55:25][D][Debug02:288]: Received: 0,0,01,81,5,1,00,05,00,05,00,81,05,00,C7 [08:55:25][D][Debug01:187]: Received: 1,0,00,81,1,0,00,05,00,[05],00,[81],[01],00,C7 cmd=05 lights=81 status=01 - disarmed and ready

triggered example:

[13:39:02][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 cmd=05 lights=81 status=01 - disarmed and ready 13:40:13][D][Debug01:187]: Received: 0,0,00,81,17,0,00,05,00,[05],00,[81],[11],00,C7 cmd=05 lights=81 status=11 - partition in alarm (triggered)

[13:40:13][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'not_ready' [13:40:13][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'triggered' [13:40:13][D][Debug02:288]: Received: 0,0,00,81,17,0,00,05,00,05,00,81,11,00,C7 [13:40:14][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 cmd=05 lights=81 status=01 - back to ready [13:40:14][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed'

Dilbert66 commented 3 years ago

If you could also post some sample debug messages with your system in actual armed mode, that would also be helpful to ensure the logic will work correctly on your system.

slipx06 commented 3 years ago

OK thanks. Let me try the new version. Here are some more logs for the current version showing the alarm being armed_home and then disarmed

[16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [16:25:29][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,0A,00,0A,00,80,01,00,00 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,64,00,64,00,06,6A,00,00 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,5D,00,5D,00,00,00,00,00 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,18,01,00,00 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,87,00,87,00,00,02,89,00 [16:25:29][D][Debug01:187]: Received: 0,0,00,81,1,0,00,BB,00,BB,00,00,00,BB,00 [16:25:30][D][Debug01:187]: Received: 0,0,00,81,1,0,00,E6,00,E6,00,1A,15,00,00 [16:25:30][D][Debug01:187]: Received: 0,0,00,81,1,0,00,75,00,75,00,00,75,00,00 [16:25:30][D][Debug01:187]: Received: 0,0,00,81,1,0,00,CE,00,CE,00,01,C0,00,00 [16:25:30][D][Debug01:187]: Received: 0,0,00,81,1,0,00,CE,00,CE,00,40,FF,FF,FF [16:25:30][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:25:30][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'pending' [16:25:30][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:25:30][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,75,00,75,00,00,75,00,00 [16:25:36][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:36][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:36][D][binary_sensor:036]: 'Passage': Sending state ON [16:25:37][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:37][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:37][D][binary_sensor:036]: 'Passage': Sending state OFF [16:25:38][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:38][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:38][D][binary_sensor:036]: 'Passage': Sending state ON [16:25:39][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:39][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:39][D][binary_sensor:036]: 'Passage': Sending state OFF [16:25:41][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,11,00,11,00,AA,AA,AA,AA [16:25:48][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:48][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:48][D][binary_sensor:036]: 'Passage': Sending state ON [16:25:50][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:50][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:25:50][D][binary_sensor:036]: 'Passage': Sending state OFF [16:25:59][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,E6,00,E6,00,2C,04,00,00 [16:25:59][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:59][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:25:59][D][binary_sensor:036]: 'Passage': Sending state ON [16:26:01][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:01][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:01][D][binary_sensor:036]: 'Passage': Sending state OFF [16:26:08][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:08][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:08][D][binary_sensor:036]: 'Passage': Sending state ON [16:26:09][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:09][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:09][D][binary_sensor:036]: 'Passage': Sending state OFF [16:26:17][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,11,00,11,00,AA,AA,AA,AA [16:26:19][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:19][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:19][D][binary_sensor:036]: 'Passage': Sending state ON [16:26:20][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:20][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:20][D][binary_sensor:036]: 'Passage': Sending state OFF [16:26:35][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,B1,00,B1,00,DF,0F,00,00 [16:26:37][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:37][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:37][D][binary_sensor:036]: 'Passage': Sending state ON [16:26:38][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:38][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:38][D][binary_sensor:036]: 'Passage': Sending state OFF [16:26:45][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:45][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:26:45][D][binary_sensor:036]: 'Passage': Sending state ON [16:26:46][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:46][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:26:46][D][binary_sensor:036]: 'Passage': Sending state OFF [16:26:53][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,11,00,11,00,AA,AA,AA,AA [16:26:59][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:26:59][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:26:59][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:26:59][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:00][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:00][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:00][D][binary_sensor:036]: 'Passage': Sending state ON [16:27:01][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:01][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:01][D][binary_sensor:036]: 'Passage': Sending state OFF [16:27:03][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,25,00,25,00,8B,08,00,C7 [16:27:11][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,E6,00,E6,00,2C,08,00,00 [16:27:29][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,11,00,11,00,AA,AA,AA,AA [16:27:31][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:31][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:31][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:31][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:34][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,20,C7 [16:27:34][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,20,C7 [16:27:34][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:34][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,05,00,05,00,8B,08,00,C7 [16:27:36][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:36][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:36][D][binary_sensor:036]: 'Passage': Sending state ON [16:27:37][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:37][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:37][D][binary_sensor:036]: 'Passage': Sending state OFF [16:27:38][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:38][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,10,27,00,8B,08,00,C7 [16:27:38][D][binary_sensor:036]: 'Passage': Sending state ON [16:27:39][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:39][D][Debug02:288]: Received: 0,1,00,8B,8,0,00,27,00,27,00,8B,08,00,C7 [16:27:39][D][binary_sensor:036]: 'Passage': Sending state OFF [16:27:41][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,75,00,75,00,00,75,00,00 [16:27:47][D][Debug01:187]: Received: 0,1,00,8B,8,0,00,2D,00,2D,00,8B,08,00,C7 [16:27:53][D][Debug01:187]: Received: 1,0,01,8B,8,0,01,27,00,27,00,8A,04,00,C7 [16:27:53][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_home' [16:27:53][D][Debug02:288]: Received: 0,0,01,8B,8,0,01,27,00,27,00,8A,04,00,C7 [16:27:53][D][Debug01:187]: Received: 0,0,01,8B,8,0,01,16,00,16,00,0E,32,F2,48 [16:27:54][D][Debug01:187]: Received: 0,0,01,8B,8,0,01,A5,00,A5,00,20,55,51,4C [16:27:54][D][Debug01:187]: Received: 0,0,01,8B,8,0,01,75,00,75,00,00,75,00,00 [16:27:54][D][Debug01:187]: Received: 0,0,01,8B,8,0,01,CE,00,CE,00,01,C3,0C,00 [16:27:54][D][Debug01:187]: Received: 0,0,01,8B,8,0,01,CE,00,CE,00,40,FF,FF,FF [16:27:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [16:27:54][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [16:27:54][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [16:27:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,EB,00,EB,00,01,20,15,51 [16:27:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,D5,00,D5,00,AA,AA,AA,AA [16:27:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,A5,00,A5,00,20,55,51,4E [16:27:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,EB,00,EB,00,01,20,15,51 [16:27:55][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,CE,00,CE,00,01,C3,0C,00 [16:27:55][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,CE,00,CE,00,40,FF,FF,FF [16:27:58][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,C3,00,C3,00,08,FF,CA,00 [16:28:05][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,11,00,11,00,AA,AA,AA,AA [16:28:07][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:07][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:07][D][binary_sensor:036]: 'Passage': Sending state ON [16:28:14][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:14][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:14][D][binary_sensor:036]: 'Passage': Sending state OFF [16:28:16][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:16][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:16][D][binary_sensor:036]: 'Passage': Sending state ON [16:28:16][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:16][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:16][D][binary_sensor:036]: 'Passage': Sending state OFF [16:28:17][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:17][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,10,27,00,8A,04,00,C7 [16:28:17][D][binary_sensor:036]: 'Passage': Sending state ON [16:28:19][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:19][D][Debug02:288]: Received: 0,0,01,8A,4,0,01,27,00,27,00,8A,04,00,C7 [16:28:19][D][binary_sensor:036]: 'Passage': Sending state OFF [16:28:23][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,E6,00,E6,00,0F,00,F5,00 [16:28:41][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,11,00,11,00,AA,AA,AA,AA [16:28:42][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,E6,00,E6,00,1B,00,00,01 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,64,00,64,00,0C,70,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,5D,00,5D,00,00,00,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,E6,00,E6,00,18,01,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,87,00,87,00,00,00,87,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,BB,00,BB,00,00,00,BB,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,A5,00,A5,00,20,55,51,4C [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,E6,00,E6,00,1A,15,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,75,00,75,00,00,75,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,CE,00,CE,00,01,C0,00,00 [16:28:46][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,CE,00,CE,00,40,FF,FF,FF [16:28:46][D][Debug01:187]: Received: 1,0,00,81,62,0,00,05,00,05,00,81,3E,00,C7 [16:28:46][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'no_messages' [16:28:46][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [16:28:46][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [16:28:46][D][Debug02:288]: Received: 0,0,00,81,62,0,00,05,00,05,00,81,3E,00,C7 [16:28:46][D][Debug01:187]: Received: 0,0,00,81,62,0,00,EB,00,EB,00,01,20,15,51 [16:28:47][D][Debug01:187]: Received: 0,0,00,81,62,0,00,C3,00,C3,00,08,FF,CA,00 [16:28:51][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [16:28:51][D][Debug02:288]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [16:28:52][D][Debug01:187]: Received: 0,0,00,81,1,0,00,C3,00,C3,00,08,FF,CA,00

Dilbert66 commented 3 years ago

Perfect. I see that bit 1 is getting set in the lights status on armed: 05,00,[8A],[04],00 lights status = 8A (bit 1 set in lower byte) arm status = 04 (armed home)

slipx06 commented 3 years ago

Thank you. Running the new version and will do some testing. Still getting these fire and trouble status changes. Any idea what could be causing that?

[17:17:49][D][Debug01:187]: Received: 0,0,00,C1,1,0,00,05,00,05,00,C1,01,00,C7 [17:17:49][D][binary_sensor:036]: 'Fire Status': Sending state ON

[17:17:49][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [17:17:49][D][binary_sensor:036]: 'Fire Status': Sending state OFF

[17:07:20][D][Debug01:187]: Received: 0,0,00,91,1,0,00,05,00,05,00,91,01,00,C7 [17:07:20][D][binary_sensor:036]: 'Trouble Status': Sending state ON

[17:07:21][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [17:07:21][D][binary_sensor:036]: 'Trouble Status': Sending state OFF

Dilbert66 commented 3 years ago

Same issue with the bogus status messages except with the other flags. I have to see what I can do with this since the trouble and fire bits can be set no matter what the state of the alarm so I can't use the armed bit for these. Might have to provide a customizable flag that you can set in the yaml to disable the trouble/fire check during the 05 cmd so that it can be set if the issue occurs on a panel.

[17:17:49][D][Debug01:187]: Received: 0,0,00,C1,1,0,00,05,00,05,00,[C1],01,00,C7 cmd: 05 status: c1 (fire bit on)

[17:17:49][D][binary_sensor:036]: 'Fire Status': Sending state ON

[17:17:49][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [17:17:49][D][binary_sensor:036]: 'Fire Status': Sending state OFF

[17:07:20][D][Debug01:187]: Received: 0,0,00,91,1,0,00,05,00,05,00,[91],01,00,C7 cmd: 05 status: 91 (trouble bit on) [17:07:20][D][binary_sensor:036]: 'Trouble Status': Sending state ON

[17:07:21][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [17:07:21][D][binary_sensor:036]: 'Trouble Status': Sending state OFF

Dilbert66 commented 3 years ago

If you can simulate a real trouble status, it would help to compare. Perhaps a power failure on the panel, etc. This way I can compare a valid sequence vs a bogus one.

Dilbert66 commented 3 years ago

On my panel , panelbyte 4 also hold the fire/trouble bits similar to the panelbyte 2 when valid. With your dump, panelbyte 4 was zero. Will be interesting what yours show for a valid trouble condition.

slipx06 commented 3 years ago

This is what a real trouble condition looks like. (Simulated power failure)

[18:08:31][D][Debug01:187]: Received: 0,0,00,91,1,0,00,05,00,05,00,91,01,10,C7 [18:08:31][D][binary_sensor:036]: 'Trouble Status': Sending state ON

[18:10:01][D][Debug01:187]: Received: 0,0,00,81,1,0,00,05,00,05,00,81,01,00,C7 [18:10:01][D][binary_sensor:036]: 'Trouble Status': Sending state OFF

Dilbert66 commented 3 years ago

Ok, that's perfect. panel byte 4 gets set correctly. I've pushed a new version of dsckeybusprocess.cpp in debug that should address this.

slipx06 commented 3 years ago

Thank you. The bogus trouble condition is gone. How do I test Fire Status. Trigger the fire alarm?

Dilbert66 commented 3 years ago

There should be a key on your keypad you can press (or have to press two keys at the same time for a few seconds). It should be in your user manual. If your system is monitored centrally, you need to call them first to let them know you are doing a test!!

You can reset the alarm with *72 (on my system anyhow). Might also need to enter your security code to silence the alarm. Been a long time since I messed with that.

slipx06 commented 3 years ago

I don't have any fire zones. So might just ignore those messages.

Dilbert66 commented 3 years ago

I'll test on my end some time. Ok changes pushed to master. Tks for your help. The fixes I did should also fix the bogus fire msgs.

slipx06 commented 3 years ago

It looks like this is still not completely solved. The alarm was armed in armed_home last night and I noticed bogus armed_night and no_entry_delay messages being sent. Some samples below. Maybe I need an option to ignore 05 cmd's on my panel

[02:29:42][D][Debug01:187]: Received: 1,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [02:29:42][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [02:29:42][D][Debug02:289]: Received: 0,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [02:29:42][D][Debug01:187]: Received: 1,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [02:29:42][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home'

[03:40:32][D][Debug01:187]: Received: 1,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [03:40:32][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [03:40:32][D][Debug02:289]: Received: 0,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [03:40:32][D][Debug01:187]: Received: 1,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [03:40:32][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [03:40:32][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_home'

[03:59:27][D][Debug01:187]: Received: 1,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [03:59:27][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [03:59:27][D][Debug02:289]: Received: 0,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [03:59:27][D][Debug01:187]: Received: 1,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [03:59:27][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home'

[04:41:14][D][Debug01:187]: Received: 1,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [04:41:14][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [04:41:14][D][Debug02:289]: Received: 0,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [04:41:14][D][Debug01:187]: Received: 1,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [04:41:14][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [04:41:14][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_home'

[04:56:09][D][Debug01:187]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [04:56:09][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'no_entry_delay' [04:56:09][D][Debug02:289]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [04:56:09][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [04:56:09][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home'

[05:05:44][D][Debug01:187]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [05:05:44][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'no_entry_delay' [05:05:44][D][Debug02:289]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [05:05:44][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [05:05:44][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home'

[05:06:54][D][Debug01:187]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [05:06:54][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'no_entry_delay' [05:06:54][D][Debug02:289]: Received: 0,0,01,8A,6,0,01,05,00,05,00,8A,06,00,C7 [05:06:54][D][Debug01:187]: Received: 0,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [05:06:54][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home'

[05:12:20][D][Debug01:187]: Received: 1,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [05:12:20][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_night' [05:12:20][D][Debug02:289]: Received: 0,0,01,8A,5,1,00,05,00,05,00,8A,05,00,C7 [05:12:20][D][Debug01:187]: Received: 1,0,01,8A,4,0,01,05,00,05,00,8A,04,00,C7 [05:12:20][D][text_sensor:015]: 'Partition 1 Msg ': Sending state 'armed_home' [05:12:20][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'armed_home'

Dilbert66 commented 3 years ago

That is a chatty panel you have. Never seen this on mine. ok, well I've added a new option to the yaml called "enable05ArmStatus" and pushed it to the debug branch. Set it to false to prevent use of 05 for those statuses. The only issue is that when on the initial start up of your esp it will not know what state your alarm is at that time (weither open, disarmed,armed, etc) until something happens like disarming, opening a door, motion sensor activating, etc.
You'll need to update your yaml to get the new flags and keybus init change. Most files were changed so you will need to update all.

slipx06 commented 3 years ago

Getting some compile errors for the new version

src/main.cpp:156:3: warning: multi-line comment [-Wcomment]
   //   lambda: !lambda "auto DSCkeybus = new DSCkeybushome();\n\nDSCkeybus->onSystemStatusChange([&](std::string\
   ^
src/main.cpp: In lambda function:
src/main.cpp:363:40: error: 'getKeybusConnectionStatus' was not declared in this scope
       return getKeybusConnectionStatus();
                                        ^
src/main.cpp: In lambda function:
src/main.cpp:372:42: error: no matching function for call to 'DSCkeybushome::DSCkeybushome()'
       auto DSCkeybus = new DSCkeybushome();
                                          ^
src/main.cpp:372:42: note: candidates are:
In file included from src/main.cpp:35:0:
src/dscAlarm.h:20:4: note: DSCkeybushome::DSCkeybushome(const char*, bool)
    DSCkeybushome( const char *accessCode, bool enable05ArmStatus)
    ^
src/dscAlarm.h:20:4: note:   candidate expects 2 arguments, 0 provided
src/dscAlarm.h:18:7: note: DSCkeybushome::DSCkeybushome(const DSCkeybushome&)
 class DSCkeybushome : public Component, public CustomAPIDevice {
       ^
src/dscAlarm.h:18:7: note:   candidate expects 1 argument, 0 provided
src/dscAlarm.h:18:7: note: DSCkeybushome::DSCkeybushome(DSCkeybushome&&)
src/dscAlarm.h:18:7: note:   candidate expects 1 argument, 0 provided
src/main.cpp:412:24: error: could not convert '{DSCkeybus}' from '<brace-enclosed initializer list>' to 'std::vector<esphome::Component*>'
       return {DSCkeybus};
                        ^
src/main.cpp: In lambda function:
src/main.cpp:364:3: warning: control reaches end of non-void function [-Wreturn-type]
   });
   ^
src/main.cpp: In lambda function:
src/main.cpp:413:3: warning: control reaches end of non-void function [-Wreturn-type]
   });
   ^
*** [/data/alarm/.pioenvs/alarm/src/main.cpp.o] Error 1
Dilbert66 commented 3 years ago

You need to do a "Clean Build" from the ... menu on the esphome config. It has a cached yaml file. Then you can recompile/upload.

Dilbert66 commented 3 years ago

image

slipx06 commented 3 years ago

Ok that worked. Let me test

Assume I can ignore


WARNING Found 'auto DSCkeybus = new DSCkeybushome("$accessCode",$enable05ArmStatus);

DSCkeybus->onSystemStatusChange([&](std::string statusCode) {
   id(system_status).publish_state(statusCode);
});

DSCkeybus->onPartitionStatusChange([&](uint8_t partition,std::string statusCode) {
   switch(partition) {
     case 1: id(p1).publish_state(statusCode); break;
     case 2: id(p2).publish_state(statusCode); break;
  }
});
DSCkeybus->onPartitionMsgChange([&](uint8_t partition,std::string msg) {
   switch(partition) {
     case 1: id(m1).publish_state(msg); break;
     case 2: id(m2).publish_state(msg); break;
  }
});

 DSCkeybus->onTroubleStatusChange([&](bool open) {
    id(trouble_status).publish_state(open);
});

DSCkeybus->onFireStatusChange([&](uint8_t partition, bool open) {
  switch (partition) {
      case 1: id(f1).publish_state(open); break;
  }
});

DSCkeybus->onZoneStatusChange([&](uint8_t zone, bool open) {
  switch (zone) {
    case 1: id(z1).publish_state(open); break;
    case 2: id(z2).publish_state(open); break;
    case 3: id(z3).publish_state(open); break;
    case 4: id(z4).publish_state(open); break;
    case 5: id(z5).publish_state(open); break;
    case 11: id(z11).publish_state(open); break;
    case 12: id(z12).publish_state(open); break;        
  }
});
return {DSCkeybus};' (see custom_component->0->lambda) which looks like a substitution, but 'accessCode' was not declared
slipx06 commented 3 years ago

The new version looks to be working fine. Also seeing the new Partition messages. Will monitor tonight. Thanks for helping so quickly

taligentx commented 3 years ago

Hi @slipx06 - I've opened up an issue to take a look at the Keybus data from the PC5005 to see if this an isolated instance or if it's common to all PC5005 panels. If you get a chance to capture some data, feel free to add it to https://github.com/taligentx/dscKeybusInterface/issues/158, thanks!

Dilbert66 commented 3 years ago

Hi Nikhil, please see my comment in thread 158. The issue was resolved with a debounce update.