Dilbert66 / esphome-dsckeybus

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

DSCKeybus keypad control no longer working #108

Closed feradelectronics closed 7 months ago

feradelectronics commented 7 months ago

Since the last dev updates after creating short yaml configuration the DSCKeybus keypad is not working reliably. Cannot arm because system reports unknown. I can manually arm system from DSC keypad. DSCKeybus then reports system armed as expected. I can then disarm system with DSCKeybus. Seems that communication is ok. Please let me know how to resolve this.

Dilbert66 commented 7 months ago

I need to see logs and config. I can't guess as it works fine here.

feradelectronics commented 7 months ago

Thanks in advance.

-- This email has been checked for viruses by AVG antivirus software. www.avg.com INFO ESPHome 2023.11.3 INFO Reading configuration /config/esphome/dscalarm.yaml... WARNING GPIO2 is a strapping PIN and should only be used for I/O with care. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins INFO Detected timezone 'America/Edmonton' INFO Starting log output from dscalarm.local using esphome API INFO Successfully connected to dscalarm in 0.344s INFO Successful handshake with dscalarm in 0.121s [13:49:04][I][app:102]: ESPHome version 2023.11.3 compiled on Nov 22 2023, 13:30:54 [13:49:04][C][status_led:019]: Status LED: [13:49:04][C][status_led:020]: Pin: GPIO2

[13:49:04][C][wifi:391]: Local MAC: 9C:9C:1F:C7:83:80 [13:49:04][C][wifi:396]: SSID: 'D105B70'[redacted] [13:49:04][C][wifi:397]: IP Address: 192.168.1.31 [13:49:04][C][wifi:399]: BSSID: 54:A0:50:6D:6C:59[redacted]

[13:49:04][C][wifi:402]: Signal strength: -47 dB ▂▄▆█ [13:49:04][C][wifi:406]: Channel: 11 [13:49:04][C][wifi:407]: Subnet: 255.255.255.0 [13:49:04][C][wifi:408]: Gateway: 192.168.1.1 [13:49:04][C][wifi:409]: DNS1: 192.168.1.1 [13:49:04][C][wifi:410]: DNS2: 0.0.0.0

[13:49:04][C][logger:417]: Level: DEBUG [13:49:04][C][logger:418]: Log Baud Rate: 115200 [13:49:04][C][logger:420]: Hardware UART: UART0 [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Door (z1)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'door' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Smoke (z2)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'smoke' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Motion (z3)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'motion' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Zone 4 (z4)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'door' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Zone 5 (z5)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'door' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Zone 6 (z6)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'door' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Zone 7 (z7)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'motion' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Partition 1 Ready (rdy_1)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Partition 1 Armed (arm_1)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Trouble Status (tr)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'problem' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Battery Status (bat)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'problem' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'AC Status (ac)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'plug' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'Fire partition 1 Status (fa_1)' [13:49:04][C][template.binary_sensor:028]: Device Class: 'smoke' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'partition 1 Alarm Status (al_1)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'PGM 1 (r1)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'PGM 2 (r2)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'PGM 3 (r3)' [13:49:04][C][template.binary_sensor:028]: Template Binary Sensor 'PGM 4 (r4)' [13:49:04][C][template.text_sensor:020]: Template Sensor 'System Status (ss)'

[13:49:04][C][template.text_sensor:020]: Template Sensor 'zone status (zs)'

[13:49:04][C][template.text_sensor:020]: Template Sensor 'Partition 1 Status (ps_1)'

[13:49:04][C][template.text_sensor:020]: Template Sensor 'Partition 1 Msg (msg_1)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'line1 Partition 1 (ln1_1)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'line2 Partition 1 (ln2_1)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'event (evt)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'beeps (bp_1)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'partition 2 beeps (bp_2)'

[13:49:05][C][template.text_sensor:020]: Template Sensor 'Trouble Msg (tr_msg)'

[13:49:05][C][template.switch:068]: Template Switch 'Connection'

[13:49:05][C][template.switch:091]: Restore Mode: always OFF [13:49:05][C][template.switch:057]: Optimistic: NO [13:49:05][C][restart:068]: Restart Switch 'restart_switch'

[13:49:05][C][restart:091]: Restore Mode: always OFF [13:49:05][C][safe_mode_switch:068]: Safe Mode Switch '(Safe Mode)'

[13:49:05][C][safe_mode_switch:091]: Restore Mode: always OFF

[13:49:05][C][dht:018]: Pin: GPIO17 [13:49:05][C][dht:024]: Model: DHT22 (or equivalent) [13:49:05][C][dht:027]: Update Interval: 60.0s

[13:49:05][C][dht:029]: Device Class: 'temperature' [13:49:05][C][dht:029]: State Class: 'measurement' [13:49:05][C][dht:029]: Unit of Measurement: '°C' [13:49:05][C][dht:029]: Accuracy Decimals: 1

[13:49:05][C][dht:030]: Device Class: 'humidity' [13:49:05][C][dht:030]: State Class: 'measurement' [13:49:05][C][dht:030]: Unit of Measurement: '%' [13:49:05][C][dht:030]: Accuracy Decimals: 0 [13:49:05][C][bluetooth_proxy:088]: Bluetooth Proxy: [13:49:05][C][bluetooth_proxy:089]: Active: NO [13:49:05][C][esp32_ble:374]: ESP32 BLE: [13:49:05][C][esp32_ble:376]: MAC address: 9C:9C:1F:C7:83:82 [13:49:05][C][esp32_ble:377]: IO Capability: none [13:49:05][C][esp32_ble_tracker:645]: BLE Tracker: [13:49:05][C][esp32_ble_tracker:646]: Scan Duration: 300 s [13:49:05][C][esp32_ble_tracker:647]: Scan Interval: 320.0 ms [13:49:05][C][esp32_ble_tracker:648]: Scan Window: 30.0 ms [13:49:05][C][esp32_ble_tracker:649]: Scan Type: ACTIVE [13:49:05][C][esp32_ble_tracker:650]: Continuous Scanning: True [13:49:05][C][sntp:053]: SNTP Time: [13:49:05][C][sntp:054]: Server 1: '0.pool.ntp.org' [13:49:05][C][sntp:055]: Server 2: '1.pool.ntp.org' [13:49:05][C][sntp:056]: Server 3: '2.pool.ntp.org'

[13:49:05][C][mdns:116]: Hostname: dscalarm [13:49:05][C][ota:097]: Over-The-Air Updates: [13:49:05][C][ota:098]: Address: dscalarm.local:3232 [13:49:05][C][ota:101]: Using Password. [13:49:05][C][api:139]: API Server: [13:49:05][C][api:140]: Address: dscalarm.local:6053 [13:49:05][C][api:142]: Using noise encryption: YES [13:49:09][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:49:09][I][Moduledata::1097]: 11: FF 01 FF FC FF FF FF FF FF 03 00 00 00 00 00 00 [13:49:24][I][Paneldata: :1097]: E6: E6 00 2C 08 00 00 00 00 1A 00 00 00 00 00 00 00 [13:49:33][I][Paneldata: :1097]: C3: C3 00 00 FF C2 00 00 00 00 00 00 00 00 00 00 00 [13:49:39][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:49:39][I][Moduledata::1097]: 11: FF 01 FF FC FF FF FF FF FF 03 00 00 00 00 00 00 [13:49:40][D][dht:048]: Got Temperature=21.7°C Humidity=21.9% [13:49:40][D][sensor:094]: 'System Temperature': Sending state 21.70000 °C with 1 decimals of accuracy [13:49:40][D][sensor:094]: 'System Humidity': Sending state 21.90000 % with 0 decimals of accuracy [13:49:40][I][Paneldata: :1097]: 88: 88 00 C7 10 C7 10 C7 01 00 00 00 00 00 00 00 00 [13:49:40][I][Paneldata: :1097]: 88: 88 00 C7 10 C7 10 C7 01 00 00 00 00 00 00 00 00 [13:49:40][I][Paneldata: :1097]: 88: 88 00 C7 10 C7 10 C7 01 00 00 00 00 00 00 00 00 [13:49:40][I][info:1929]: status 01, last status 01,line2status 40,selection 01,partition=1,skip=0,force=1 [13:49:40][D][text_sensor:064]: 'line1 Partition 1 (ln1_1)': Sending state 'System is Ready' [13:49:40][D][text_sensor:064]: 'line2 Partition 1 (ln2_1)': Sending state 'Ready to Arm <>' [13:49:40][D][text_sensor:064]: 'System Status (ss)': Sending state 'online' [13:49:40][D][text_sensor:064]: 'Partition 1 Status (ps_1)': Sending state 'disarmed' [13:49:40][D][text_sensor:064]: 'zone status (zs)': Sending state '' [13:49:40][D][text_sensor:064]: 'Trouble Msg (tr_msg)': Sending state 'BELL SUP ' [13:49:40][W][component:214]: Component custom_component took a long time for an operation (0.07 s). [13:49:40][W][component:215]: Components should block for at most 20-30ms. [13:49:41][I][debug:1030]: Setting Alarm state: D to partition 1 [13:49:54][I][Paneldata: :1097]: B1: B1 00 FF FF FF FF 00 00 00 00 AD 00 00 00 00 00 [13:50:03][I][Paneldata: :1097]: C3: C3 00 00 FF C2 00 00 00 00 00 00 00 00 00 00 00 [13:50:09][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:50:09][I][Moduledata::1097]: 11: FF 01 FF FC FF FF FF FF FF 03 00 00 00 00 00 00 [13:50:24][I][Paneldata: :1097]: E6: E6 00 2C 10 00 00 00 00 22 00 00 00 00 00 00 00 [13:50:33][I][Paneldata: :1097]: C3: C3 00 00 FF C2 00 00 00 00 00 00 00 00 00 00 00 [13:50:39][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:50:39][I][Moduledata::1097]: 11: FF 01 FF FC FF FF FF FF FF 03 00 00 00 00 00 00 [13:50:40][D][dht:048]: Got Temperature=21.8°C Humidity=21.9% [13:50:40][D][sensor:094]: 'System Temperature': Sending state 21.80000 °C with 1 decimals of accuracy [13:50:40][D][sensor:094]: 'System Humidity': Sending state 21.90000 % with 0 decimals of accuracy [13:50:40][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:50:40][I][Paneldata: :1097]: 11: 11 00 AA AA AA AA AA AA AA 02 00 00 00 00 00 00 [13:50:40][I][info:1929]: status 01, last status 01,line2status 40,selection 01,partition=1,skip=0,force=1 [13:50:40][D][text_sensor:064]: 'line1 Partition 1 (ln1_1)': Sending state 'System is Ready' [13:50:40][D][text_sensor:064]: 'line2 Partition 1 (ln2_1)': Sending state 'Ready to Arm <>' [13:50:41][D][text_sensor:064]: 'System Status (ss)': Sending state 'online' [13:50:41][D][text_sensor:064]: 'Partition 1 Status (ps_1)': Sending state 'disarmed' [13:50:41][D][text_sensor:064]: 'zone status (zs)': Sending state '' [13:50:41][D][text_sensor:064]: 'Trouble Msg (tr_msg)': Sending state 'BELL SUP ' [13:50:41][W][component:214]: Component custom_component took a long time for an operation (0.07 s). [13:50:41][W][component:215]: Components should block for at most 20-30ms. [13:50:54][I][Paneldata: :1097]: 27: 27 00 91 01 10 C7 00 90 00 00 00 00 00 00 00 00

feradelectronics commented 7 months ago

logs_dscalarm_logs.zip here are the files

Dilbert66 commented 7 months ago

The dev version will not work with the yaml you are using now. Everthing has been converted to external components. You need to convert your setup to the new yaml format and recompile. You do not need to download any code anymore. Just the yaml itself. As to why it's not arming, I can't see anything in the logs as the command is not even getting to the panel from what I see. The disarm cmd is there though.

feradelectronics commented 7 months ago

i will try and confirm. thanks.

Dilbert66 commented 7 months ago

The system unknown error indicates a possible config issue with the keypad card itself and not the esphome component. Let me know how you send your arming cmd normally.

feradelectronics commented 7 months ago

I reprogrammed with the new dscalarm.yaml and configured as needed. Thanks,. Regarding the HA Alarm panel, still displays the same as originally mentioned above. This is the standard alarm panel with HA. Do i need to use the DSCKeybus alarm panel instead?

Dilbert66 commented 7 months ago

You do not need to change anything on the HA panel itself. That works with all code.

feradelectronics commented 7 months ago

You way want to update documents. This worked by changing configuration.yaml -> alarm_control_panel:

alarm_control_panel:

Dilbert66 commented 7 months ago

Good point! I will do that. Thanks!