[SOLVED]
Very thanks, i have the alarm control panel working successfully using your code but only recieves and send data from āAlarm Panel Cardā if i press a key in the real DSC keypad or if i send a key using esphome service āesphome.alarma_dsc_alarm_keypressā.
When i do this, recieve an status message ā01: Readyā for only 25 seconds and i can to use the Alarm Panel Card from Lovelace but then go unavaliable again and i cant to communicate using the āAlarm Panel Cardā. The esphome service communicates ok with the alarm even if Partition 1 says unavaliable.
Here are the logs, in this case i send it a ā###ā command via esphome.alarma_dsc_alarm_keypress service.
[15:52:20][C][logger:189]: Logger:
[15:52:20][C][logger:190]: Level: VERBOSE
[15:52:20][C][logger:191]: Log Baud Rate: 0
[15:52:20][C][logger:192]: Hardware UART: UART0
[15:52:20][C][restart:021]: Restart Switch 'restart_switch'
[15:52:20][C][restart:021]: Icon: 'mdi:restart'
[15:52:20][C][captive_portal:148]: Captive Portal:
[15:52:20][C][ota:029]: Over-The-Air Updates:
[15:52:20][C][ota:030]: Address: alarma-dsc.local:3232
[15:52:20][C][ota:032]: Using Password.
[15:52:20][C][api:095]: API Server:
[15:52:20][C][api:096]: Address: alarma-dsc.local:6053
[15:52:26][D][Debug:126]: Writing keys: ###
[15:52:27][D][Debug22:247]: Panel command data: 05,00,85,01,00,C7,00,C7,00,C7
[15:52:27][D][Debug33:254]: Partition data 00: 85,01,00,00,00,00,00,00,00,01,01,00,00
[15:52:27][D][text_sensor:015]: 'dscalarm Partition 1 Msg ': Sending state '01: Ready'
[15:52:27][D][text_sensor:015]: 'dscalarm Partition 1 Status ': Sending state 'disarmed'
[15:52:32][D][Debug22:247]: Panel command data: A5,00,20,32,31,A0,00,00,C8,00
[15:52:32][D][Debug33:254]: Partition data 00: 85,01,00,00,00,00,00,00,00,00,01,00,00
[15:52:52][D][Debug22:247]: Panel command data: 05,00,85,40,00,C7,00,C7,00,C7
[15:52:52][D][Debug33:254]: Partition data 00: 85,40,00,00,00,00,00,00,00,01,00,00,00
[15:52:52][D][text_sensor:015]: 'dscalarm Partition 1 Msg ': Sending state '40: Keypad blanked'
[15:52:52][D][text_sensor:015]: 'dscalarm Partition 1 Status ': Sending state 'unavailable'
[15:56:31][D][Debug22:247]: Panel command data: A5,00,20,32,31,B0,00,00,D8,00
[15:56:32][D][Debug33:254]: Partition data 00: 85,40,00,00,00,00,00,00,00,00,00,00,00
ĀæMay be a problem with the alarm installation and configuration? I think that the technician who make the installation a few years ago wasnt an expert in DSC Alarm because he installed me resistors in all the zones (including the zones that i dont use).
UPDATE2: Was a config issue from the DSC 1832 board, the configs 3 and 6 must to be off in [019] menu options (i think that the installer wanted to save energy)