Ajax alarm system

@eavanvalkenburg I took a little piece of log. You can find hereunder.
Maybe could be useful for your debugging.
Tell us if you need something more.
Thank you for your support.

2023-01-10 22:01:19.378 WARNING (MainThread) [pysiaalarm.base_server] Code not found, replying with DUH to account: 001
....
2023-01-10 22:01:30.428 WARNING (MainThread) [pysiaalarm.base_server] Code not found, replying with DUH to account: 001
.....
2023-01-10 22:01:43.915 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 0F310038"SIA-DCS"4613L0#001[#001|Nri1/PE502]_21:01:23,01-10-2023
2023-01-10 22:01:43.916 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '001', 'ti': None, 'id': None, 'ri': '1', 'code': 'PE', 'message': '502', 'xdata': None, 'timestamp': '21:01:23,01-10-2023'}
2023-01-10 22:01:43.922 WARNING (MainThread) [pysiaalarm.base_server] Code not found, replying with DUH to account: 001

I should have said that I logged an issue on github: https://github.com/home-assistant/core/issues/85386. If you think it may be due to a change in alarm panel, is it the right place to post the issue? Could someone take ownership?

Hi all … something changes without no actions by my side. Now state and attributes are corrected. … mystery

Isn’t this just as a result of a colour scheme change within HA?

If so, how could we recover it? I just have no clue knowing that I’m using regular alarm control panels that are created by SIA integration

Beside the icon color defect, I noticed that alarm control panels get disconnected very often which never occurred before. It has been running flawlessly for months. After I upgraded to 2013.1.0, it turns out that a few days later hub+ firmware got automatically upgraded as well. It is now running EU 2.14.0. So it is quite hard to make an assumption on what made this regression. To be honest I’m not very keen to downgrade.
EDIT
I must add that I’m using the default theme. I set-up now card_mod as a workaround. Here is the code. However I haven’t found yet how to do it for the button of the main alarm control panel.One step at a time :wink:

  - type: glance
    show_state: false
    entities:
      - entity: alarm_control_panel.5656_ccc_zone_3_alarm
        card_mod:
          style: |
            :host {
              --card-mod-icon-color: 
                {% if is_state("alarm_control_panel.5656_ccc_zone_3_alarm", "disarmed") %}
                 green
                {% else %}
                  orangered
                {% endif %} 
            }
      - entity: alarm_control_panel.5656_ccc_zone_2_alarm
        card_mod:
          style: |
            :host {
              --card-mod-icon-color: 
                {% if is_state("alarm_control_panel.5656_ccc_zone_2_alarm", "disarmed") %}
                 green
                {% else %}
                  orangered
                {% endif %} 
            }
      - entity: alarm_control_panel.5656_ccc_zone_4_alarm
        card_mod:
          style: |
            :host {
              --card-mod-icon-color: 
                {% if is_state("alarm_control_panel.5656_ccc_zone_4_alarm", "disarmed") %}
                 green
                {% else %}
                  orangered
                {% endif %} 
            }
      - entity: alarm_control_panel.5656_ccc_zone_1_alarm
        card_mod:
          style: |
            :host {
              --card-mod-icon-color: 
                {% if is_state("alarm_control_panel.5656_ccc_zone_1_alarm", "disarmed") %}
                 green
                {% else %}
                  orangered
                {% endif %} 
            }
    title: Alarme
    columns: 2

EDIT2: for those interested by the solution see this post change background color

What’s happened to this integeration? It’s totally unrealiable now. I keep getting “Unavaiable” status and in my logs this morning it’s even got an entry as being Disarmed and shut down my wifi cameras.

It’s completely screwed for me as well. So unreliable is it that somehow it’s decided that my system was disarmed and turned off my cameras about 10 minutes after I left theh house.

by any chance did you reboot HA?

Please also check with Ajax, because there were no code changes to the SIA integration so this is either a issue with Ajax (and mine still works fine) or something generic in HA or particular to your setup…

I have emailed Ajax support to ask if there is any issue.

I started having issues with this with the last December update of HA and it has followed through to the January builds.

Nothing has changed with the integration.

Only 32 minutes ago did it go to Unavailable again and it triggered some automatons that are only supposed to go on when the alarm is armed. So this is very concerning.

Another thing, the dashboard Alarm card doesn’t always reflect the status of the entity.

did you try to reboot HA?

Reboot doesn’t help. I have rebooted and restarted my HA lots of times to allow addons to update.

Something is seriously screwed up somewhere.

became unavailable

15:23:34 - 6 minutes ago

changed to Disarmed

15:23:14 - 6 minutes ago

changed to Disarmed

15:09:39 - 20 minutes ago

In the last few minutes, the logs are reporting states that have changed when they haven’t.

Maybe you should try to deactivate all addons and reactivate them one by one to see how it goes. My AJAX SIA integration works fine as well. Is your Ajax hub connected to Ethernet of WIfi?

I will make a start and remove any unused addons and go through them if it doesn’t help.

My hub is connected via the LAN and 2g. I have setup the monitoring station on the internal IP. The LAN connection is rock solid.

I’ve uninstalled the SIA integration and reset the encryption key in the Ajax arm.

I’ve now installed the integration again and put in the details and rebooted and it’s working again - for now. Hopefully, it will be stable.

Good news. It was certainly the best to do.

yes, so far so good. Not a single error so far. FIngers crossed. Thanks for your help.

So, after reconfiguring everything I have stability but checking the log it seems I get this unavailable status almost on an hourly basis for nearly a minute. Is this normal behaviour?`It’s almost like the inverse of what I had before, constant “unavailable” messages and sporadic moments of connectivity.

No it is not normal. On my side it is rock solid. What hub do you have, which version ?