Switch with mapping - rule not working

Hi all,
i’ve a small problem with a switch in a sitemap.

sitemap default label=“Alarmanlage”
{
Text item=Entered_Code label=“Eingabe: [%s]” icon=“none"
Frame label=“Tastatur”{
Switch item=KEYPAD_SW1 label=”" mappings=[1=“1”, 2=“2”, 3=“3”]
Switch item=KEYPAD_SW2 label="" mappings=[4=“4”, 5=“5”, 6=“6”]
Switch item=KEYPAD_SW3 label="" mappings=[7=“7”, 8=“8”, 9=“9”]
Switch item=KEYPAD_SW4 label="" mappings=[CLEAR=“X”, 0=“0”, DELETE="<"]
Switch item=KEYPAD_SW5 label="" mappings=[ON=“On”, HOME=“Home”, OFF=“Off”]
}
}

In my rules file i’ve defined a simple rule to test the switch but it doesn’t work at all

var KeypadText=""

rule "Keypad1"
when
Item KEYPAD_SW1 received update
then
KeypadText += "bla1"
postUpdate(“Entered_Code”,KeypadText)
end

Any ideas why it’s nor working? Thx to all

postUpdate(Entered_Cod,KeypadText)

Hi, thx for reply but it still won’t work.

rule "test"
when
Item KEYPAD_SW1 received update
then
KeypadText += "bla1"
postUpdate(Entered_Code,KeypadText)
end

I don’t know your item-configuration but consider the quotation marks in your sitemap

sitemap default label="Alarmanlage" {
    Text item=Entered_Code label="Eingabe: [%s]" icon="none"
    Frame label="Tastatur" {
        Switch item=KEYPAD_SW1 label="" mappings=[1="1", 2="2", 3="3"]
        Switch item=KEYPAD_SW2 label="" mappings=[4="4", 5="5", 6="6"]
        Switch item=KEYPAD_SW3 label="" mappings=[7="7", 8="8", 9="9"]
        Switch item=KEYPAD_SW4 label="" mappings=[CLEAR="X", 0="0", DELETE="<"]
        Switch item=KEYPAD_SW5 label="" mappings=[ON="On", HOME="Home", OFF="Off"]
    }
}