Replies: 13 comments 9 replies
-
Ok, I see the issue. You are using an ESP8266 and from the errors I see it's low on memory. That causes all kinds of issues. With all the latest changes on ESPHOME lately, a lot more ram is being used and of course, this new branch also also uses a good chunk of memory. That's why I recommend an ESP32 for this branch. I will see if can add some defines in the library to disable some functions to limit ram useage on the ESP8266 and allow it work ok |
Beta Was this translation helpful? Give feedback.
-
Try setting the logging level to NONE or ERROR and see if that helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks @Dilbert66, Also seeing the following errors when compiling: Compiling /data/dscalarm01/.pioenvs/dscalarm01/src/dscKeybusPrintData.cpp.o |
Beta Was this translation helpful? Give feedback.
-
Compiling /data/dscalarm01/.pioenvs/dscalarm01/lib975/ESPAsyncTCP-esphome/SyncClient.cpp.o |
Beta Was this translation helpful? Give feedback.
-
I have set log level to Error. |
Beta Was this translation helpful? Give feedback.
-
I will order a ESP32 and swop it out in the week, see if that helps. |
Beta Was this translation helpful? Give feedback.
-
I just fired up my esp8266 with the latest "new" branch code and so far I dont' see any issues. i'll keep monitoring it. At this point I'm not sure why you are seeing the errors. Are you using the latest ESPHOME 2022.5.0? Edit: spoke too soon. Seeing the out of memory errors now. Might still be the issue you are having. Anyhow , I will see if I can optimize a few things. Ok, I had too many clicents connected to the esp so I see this is definively a ram issue. More tweaks needed |
Beta Was this translation helpful? Give feedback.
-
Have you disabled the web server in your config? I had to disable that to compile on my ESP8266. Running the latest ESPHome and new branch without issues. |
Beta Was this translation helpful? Give feedback.
-
By the way folks, if there are features you want to see or change let me know. Since I basically rewrote most of the library, I can add or tweak things since it's still in dev. |
Beta Was this translation helpful? Give feedback.
-
Also disable or remove the time: section in the yaml if you have it. That's also uneeded on the esp8266. |
Beta Was this translation helpful? Give feedback.
-
Oh wow, did not realise you had made so many updates. So I guess I'm not running the latest "new" branch. I see you removed the cmdWaitTime: "250" parameter needed for my panel so not sure if I should update now. |
Beta Was this translation helpful? Give feedback.
-
This sensor is not working anymore? Also when arming the sensor below goes to pending ->disarmed ->armed
|
Beta Was this translation helpful? Give feedback.
-
Yes, that was my bad. I had removed the logic for it since I felt it was duplicating the line1/line2 status but in retrospect it has other uses so I put it back in. I've also added a fix for the pending/disarmed flip flop. Make sure you update your yaml I've pushed the updates now. Edit: This update should also fix the out of memory issues on the esp8266. |
Beta Was this translation helpful? Give feedback.
-
Hi @Dilbert66,
Thank you for making these efforts available to the community.
I have this set up with HA and all working great. Zones are reacting perfect. Can arm and disarm etc, all working good. The only issue I'm having is using alarm_keypress.
Whenever I try to send alarm_keypress to the alarm panel, the physical keypad shows a "System Unavailable" message for about 10 seconds. During this time the keypad is unresponsive. It clears up and the system returns to normal function. Any guidance or ideas on how to troubleshoot or what the problem could be?
EDIT:
When sending the keypress, I see the following in the log:
[16:12:34][D][Debug:794]: Writing keys: *64388 to partition 1
[16:12:34][D][info:799]: partition is 0
[16:12:34][I][Moduledata::874]: 05: FF 01 28 FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:34][I][Paneldata: :874]: 5D: 5D 00 00 00 00 00 00 5D 00 00 00 00 00 00 00 00
[16:12:34][I][Paneldata: :874]: E6: E6 00 18 01 00 00 00 00 00 FF 00 00 00 00 00 00
[16:12:34][I][Moduledata::874]: 0A: FF 01 1B FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:34][I][Paneldata: :874]: E6: E6 00 20 80 A5 00 00 00 00 80 AB 00 00 00 00 00
[16:12:34][D][info:2431]: procesprogramzones: 05,
[16:12:35][I][Paneldata: :874]: 05: 05 00 80 A5 81 01 00 C7 00 C7 01 00 00 00 00 00
[16:12:35][D][info:1593]: status A5, last status 01,line2status 00,selection 01,partition=1,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1': Sending state 'Enter '
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2': Sending state 'master code '
[16:12:35][D][info:1593]: status 01, last status 01,line2status 00,selection 01,partition=2,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1 partition 2': Sending state 'System is Ready'
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2 partition 2': Sending state 'Ready to Arm <>'
[16:12:35][D][text_sensor:067]: 'dscalarm01 Partition 1 Status ': Sending state 'unavailable'
[16:12:35][D][binary_sensor:036]: 'dscalarm01 Partition 1 Ready': Sending state OFF
[16:12:35][I][Moduledata::874]: 05: FF 01 11 FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:35][I][Moduledata::874]: 05: FF 01 0F FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:35][I][Moduledata::874]: 05: FF 01 1B FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:35][I][Moduledata::874]: 05: FF 01 11 FF FF FF FF FF FF FF 01 00 00 00 00 00
[16:12:35][I][Paneldata: :874]: 64: 64 00 06 6A 00 00 00 00 00 00 00 00 00 00 00 00
[16:12:35][D][text_sensor:067]: 'dscalarm01 beeps': Sending state '3'
[16:12:35][D][text_sensor:067]: 'dscalarm01 partition 2 beeps': Sending state '3'
[16:12:35][D][info:1593]: status A5, last status A5,line2status 00,selection 01,partition=1,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1': Sending state 'Enter '
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2': Sending state 'master code '
[16:12:35][D][info:1593]: status 01, last status 01,line2status 00,selection 01,partition=2,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1 partition 2': Sending state 'System is Ready'
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2 partition 2': Sending state 'Ready to Arm <>'
[16:12:35][I][Paneldata: :874]: 5D: 5D 00 20 00 00 00 00 7D 02 00 00 00 00 00 00 00
[16:12:35][I][Paneldata: :874]: E6: E6 00 18 01 20 00 00 00 00 1F 00 00 00 00 00 00
[16:12:35][I][Paneldata: :874]: A5: A5 00 22 56 B0 32 E6 00 E5 00 00 00 00 00 00 00
[16:12:35][D][text_sensor:067]: 'dscalarm01 event': Sending state '2022.05.21 16:12 P:1 Master code:40'
[16:12:35][I][Paneldata: :874]: 0A: 0A 00 80 A9 00 00 00 00 00 33 00 00 00 00 00 00
[16:12:35][D][info:2431]: procesprogramzones: 04,
[16:12:35][I][Paneldata: :874]: E6: E6 00 20 80 A9 00 00 00 00 80 AF 00 00 00 00 00
[16:12:35][D][info:2431]: procesprogramzones: 05,
[16:12:35][D][text_sensor:067]: 'dscalarm01 System Status': Sending state 'online'
[16:12:35][I][Paneldata: :874]: 05: 05 00 80 A9 81 01 00 C7 00 C7 01 00 00 00 00 00
[16:12:35][D][info:1593]: status A9, last status A5,line2status 00,selection 01,partition=1,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1': Sending state '*6: User functions'
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2': Sending state 'Time and Date'
[16:12:35][E][json:034]: Could not allocate memory for JSON document! Requested 496 bytes, largest free heap block: 496 bytes
[16:12:35][D][info:1593]: status 01, last status 01,line2status 00,selection 01,partition=2,skip=0
[16:12:35][D][text_sensor:067]: 'dscalarm01 line1 partition 2': Sending state 'System is Ready'
[16:12:35][E][json:034]: Could not allocate memory for JSON document! Requested 496 bytes, largest free heap block: 496 bytes
[16:12:35][D][text_sensor:067]: 'dscalarm01 line2 partition 2': Sending state 'Ready to Arm <>'
[16:12:35][E][json:034]: Could not allocate memory for JSON document! Requested 496 bytes, largest free heap block: 496 bytes
Beta Was this translation helpful? Give feedback.
All reactions