I have defined a block in my sitemap. It contains all possible error messages I can have. Using the visibility-setting, error messages are only shown if their value is “OPEN” or “TRUE”.
This is an extract (not all error messages displayed):
Text label="Foutmeldingen" icon="error" {
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0 label="Rookmelder zolder - Alarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0==OPEN]
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2 label="Rookmelder zolder - Rookalarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2==OPEN]
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_HitteAlarm_11_4_3 label="Rookmelder zolder - Hittealarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_HitteAlarm_11_4_3==OPEN]
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_NetwerkAlarm_11_4_4 label="Rookmelder zolder - Netwerkalarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_NetwerkAlarm_11_4_4==OPEN]
}
The good thing is I only see the relevant error messages. The bad thing is, that I need to open up the error-message list to see if there are any messages.
Is it possible to have a visibility on this entire block? So that the block “Foutmeldingen” is only displayed if there is at least one error message?
Text item=gStatusmessage label="Status Message [%s]"
Switch item=KNX_ZO_TechnischeRuimte_Rookmelder_TestAlarm_11_4_7 label="Test alarm"
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_StatusTestAlarm_11_4_8 label="Status Test alarm [%s]"
If the item “KNX_ZO_TechnischeRuimte_Rookmelder_StatusTestAlarm_11_4_8” is set to “OPEN”, the group “gStatusmessage” does not get updated.
I have a bonus question:
Is it possible to show the number of error messages (= contacts with status OPEN in group gStatusmessage) in my sitemap as well? So the label “Foutmeldingen” should display for example “Foutmelding (12)”.
Thanks. Let’s suppose I create a second SUM group or a new number item (called “AmountOfErrors”), I can only display this in my sitemap as a separate line, right?
More specifically, the sitemap below:
Text label="Foutmeldingen" icon="error" visibility=[gStatusmessage==OPEN] {
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0 label="Rookmelder zolder - Alarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0==OPEN]
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2 label="Rookmelder zolder - Rookalarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2==OPEN]
}
Would change in to:
Text label="Error messages" icon="error" visibility=[gStatusmessage==OPEN] {
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0 label="Rookmelder zolder - Alarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_Alarm_11_4_0==OPEN]
Text item=KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2 label="Rookmelder zolder - Rookalarm [%s]" visibility=[KNX_ZO_TechnischeRuimte_Rookmelder_RookAlarm_11_4_2==OPEN]
}
Text item=AmountOfErrors label="Number of error messages [s%]" visibility=[gStatusmessage==OPEN]
Implying I get one line allowing me to “deep dive” in the error messages and one additional line showing the amount.