Dilbert66 / esphome-dsckeybus

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

Unavailable when transitioning from armed to disarmed #5

Closed slipx06 closed 3 years ago

slipx06 commented 3 years ago

When disarming the panel it briefly shows an unavailable state before the disarmed state. Could you take a look.

[12:22:14][D][Debug22:251]: Panel command data: 05,00,8A,04,00,C7,00,C7,00,C7 [12:22:14][D][Debug33:258]: Partition data 00: 8A,04,01,00,01,00,00,00,00,00,00,00,00 [12:22:14][D][text_sensor:015]: 'Partition 1 Msg ': Sending state '04: Armed stay' [12:22:14][D][Debug11:205]: Panel data: EB,00,01,20,16,A9,DC,02,9A,00,43,00 [12:22:18][D][Debug11:205]: Panel data: C3,00,08,FF,CA,00,00,00,00,00,00,00 [12:22:19][D][Debug11:205]: Panel data: A5,00,20,16,A9,E0,00,00,64,00,00,00 [12:22:19][D][Debug22:251]: Panel command data: A5,00,20,16,A9,E0,00,00,64,00 [12:22:19][D][Debug33:258]: Partition data 00: 8A,04,01,00,01,00,00,00,00,00,00,00,00 [12:22:36][D][Debug11:205]: Panel data: 64,00,0C,70,00,00,00,00,00,00,00,00 [12:22:36][D][Debug11:205]: Panel data: 5D,00,00,00,00,00,00,5D,00,00,00,00 [12:22:36][D][Debug11:205]: Panel data: E6,00,18,01,00,00,00,00,00,FF,00,00 [12:22:36][D][Debug11:205]: Panel data: 87,00,00,00,87,00,00,00,00,00,00,00 [12:22:36][D][Debug11:205]: Panel data: BB,00,00,00,BB,00,00,00,00,00,00,00 [12:22:36][D][Debug11:205]: Panel data: A5,00,20,56,A9,E0,E2,FF,85,00,00,00 [12:22:37][D][Debug11:205]: Panel data: E6,00,1A,15,00,00,01,01,00,00,17,00 [12:22:37][D][Debug11:205]: Panel data: 75,00,00,75,00,00,00,00,00,00,00,00 [12:22:37][D][Debug11:205]: Panel data: CE,00,01,C0,00,00,00,8F,00,00,00,00 [12:22:37][D][Debug11:205]: Panel data: 11,00,AA,AA,AA,AA,AA,AA,AA,02,00,00 [12:22:37][D][Debug11:205]: Panel data: CE,00,40,FF,FF,FF,FF,0A,00,00,00,00 [12:22:37][D][Debug11:205]: Panel data: EB,00,01,20,16,A9,E0,00,E2,FF,8C,00 [12:22:37][D][Debug22:251]: Panel command data: EB,00,01,20,16,A9,E0,00,E2,FF [12:22:37][D][Debug33:258]: Partition data 00: 8A,04,00,00,00,00,00,01,00,00,00,00,00 [12:22:37][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'unavailable' [12:22:37][D][Debug11:203]: Panel data: 05,00,81,3E,00,C7,00,C7,00,C7,01,00 [12:22:37][D][Debug11:205]: Panel data: 05,00,81,3E,00,C7,00,C7,00,C7,01,00 [12:22:37][D][Debug22:251]: Panel command data: 05,00,81,3E,00,C7,00,C7,00,C7 [12:22:37][D][Debug33:258]: Partition data 00: 81,3E,00,00,00,00,00,00,00,01,01,00,00 [12:22:37][D][text_sensor:015]: 'Partition 1 Msg ': Sending state '3E: Disarmed' [12:22:37][D][text_sensor:015]: 'Partition 1 Status ': Sending state 'disarmed' [12:22:41][D][Debug11:203]: Panel data: 05,00,81,01,00,C7,00,C7,00,C7,01,00 [12:22:41][D][Debug11:205]: Panel data: 05,00,81,01,00,C7,00,C7,00,C7,01,00 [12:22:41][D][Debug22:251]: Panel command data: 05,00,81,01,00,C7,00,C7,00,C7 [12:22:41][D][Debug33:258]: Partition data 00: 81,01,00,00,00,00,00,00,00,00,01,00,00 [12:22:41][D][text_sensor:015]: 'Partition 1 Msg ': Sending state '01: Ready' [12:22:55][D][Debug11:205]: Panel data: E6,00,2C,80,00,00,00,00,92,00,00,00 [12:23:06][D][Debug11:205]: Panel data: E6,00,1B,00,00,01,00,00,00,00,00,00

slipx06 commented 3 years ago

I also cannot compile the latest master version

`INFO Reading configuration /config/esphome/DscAlarm.yaml... INFO Generating C++ source... INFO Compiling app... INFO Running: platformio run -d /config/esphome/alarm Processing alarm (board: nodemcuv2; framework: arduino; platform: espressif8266@2.2.3)

HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

Dilbert66 commented 3 years ago

Do a clean build. This is most likeley due to me changing the defined pins to use numeric values instead of D1,D2,, D8 since some boards don't have those pin definitiions setup in the arduino lib.

Dilbert66 commented 3 years ago

Also the latest master should correct the temporary unavailable status when disarming

slipx06 commented 3 years ago

I have tried a clean build and it is still failing with the message above. Double checked and re downloaded.

Dilbert66 commented 3 years ago

Try deleting the temporary compile directory "alarm" in your esphome directory then recompile. The error seems to indicate that there some old compiled libs around

slipx06 commented 3 years ago

That worked. Thanks

slipx06 commented 3 years ago

Ok running the new master and just noticed that my services have not updated to use the new naming convention esphome.dscalarm.*

image

slipx06 commented 3 years ago

Can confirm that the unavailable issue when transitioning from armed to disarmed is not present in the master version.

[15:57:40][D][text_sensor:015]: 'DSCAlarm Partition 1 Msg ': Sending state '08: Exit delay' [15:57:40][D][text_sensor:015]: 'DSCAlarm Partition 1 Status ': Sending state 'pending' [16:00:03][D][text_sensor:015]: 'DSCAlarm Partition 1 Status ': Sending state 'armed_home' [16:00:04][D][text_sensor:015]: 'DSCAlarm Partition 1 Msg ': Sending state '04: Armed stay' [16:00:35][D][text_sensor:015]: 'DSCAlarm Partition 1 Status ': Sending state 'disarmed' [16:00:35][D][text_sensor:015]: 'DSCAlarm Partition 1 Msg ': Sending state '3E: Disarmed' [16:00:35][D][text_sensor:015]: 'DSCAlarm Partition 1 Status ': Sending state 'disarmed' [16:00:40][D][text_sensor:015]: 'DSCAlarm Partition 1 Msg ': Sending state '01: Ready'

Dilbert66 commented 3 years ago

You can just use your previous names so that your services won't be impacted. I had to change them on mine since it was conflicting with another test system I am running and causing issues. Alternatively, you can remove the alarm integration and re-add it. I find that deleting invalid esphome entities is a real pain sometimes and you have to do it from the .config directory The yaml names are meant to be changed and personalized to each users system.

Dilbert66 commented 3 years ago

What I might do with the naming is just use a substitition so that it will match the system name for each zone/partition

slipx06 commented 3 years ago

Sorry just noticed my yaml was still named as "alarm". Will close the issue.