NSPanel. how in the word! Help please!

I have tried to solve this for a week now!

I have an NSPanel Flashed with ESPHome. I use a code inspired on https://github.com/marcfager/nspanel-mf.

I have tweak the Nextion HDMI a little bit so I can add a Panel Alarm… well, the HDMI file have several pages and I have added two more. Alarma and Alarma_2. The fisrt page to Arm and the second to disarm and show the different states which are:

  • armed_away
  • armed_home
  • triggered
  • pending
  • arming
  • disarmed

The idea and where I have the problem is that I want to show the different states on the page Alarma_2. The weird thing is only the state armed_home or armed_away are shown in the nspanel.

here is the ESPHome code:

  - platform: homeassistant
    id: alarm_estado
    entity_id: alarm_control_panel.alarmo
    on_value:
      then:
        - wait_until:
            switch.is_on: nextion_init
        - lambda: |-

              int symbol_alarma = 69;  

              if (id(alarm_estado).state == "disarmed") {
                symbol_alarma = 69;
                ESP_LOGD("main", "DISARMED");
              }
              else if (id(alarm_estado).state == "armed_away" || id(alarm_estado).state == "armed_home" ) {
                symbol_alarma = 63;
                ESP_LOGD("main", "ARMED");
              }
              else if (id(alarm_estado).state == "triggered") {
                symbol_alarma = 71;
                ESP_LOGD("main", "TRIGGERD");
              }
              else if (id(alarm_estado).state == "pending") {
                symbol_alarma = 68;
                ESP_LOGD("main", "PENDING");
              }
              else if (id(alarm_estado).state == "arming") {
                symbol_alarma = 64;
                ESP_LOGD("main", "ARMING");
              }
              id(disp1).send_command_printf("Alarma_2.p1.pic=%i", symbol_alarma);

I have try everything!! I’m starting to believe is something on the HDMI code…

All the pictures use for trigger, pending, etc., have the same size, properties, and all… I don’t know where to look now!