Hi,
I'm currently playing with the same feature (using revision 1522) and I admit the behaviour is somewhat puzzling.
What I see is that :
- the two armed statuses should be spelled "Arm Home" and "Arm Away", like Luuc_a wrote, not "Arm
ed" like you did. On the security panel screen, both expressions are present:
http://screencast.com/t/TYK6fW4VVomO
- although the button on the panel is named "Disarm" and X10 security send the "Disarm" command and the status displayed on the security panel is then "Disarmed", the actual status of the security panel in disarmed mode is "Normal", not "Disarm"
- of course, the name you gave the Security Panel in your UI should match the one in your scripts. It seems domoticz can handle only one device of type "Security panel", so no matter the name you give it, if you open it using the "/secpanel" page (by clicking on its icon on the dashboard or via Setup > More Options > Security panel, you will change the status of that only security panel
- note that when switching to "Arm Home" or "Arm Away" (using the Security Panel UI or a lua script), there will be a delay before it triggers any script or changes state in the UI, depending on your settings in Setup > Application Settings > Security Panel > Delay. There is no delay when disarming however.
- since revision 1.1023, there are 3 types of lua scripts: "device", "time" and "security". When I arm/disarm using the control panel, both the "device" and "security" scripts are triggered (ok, well, ...). However the security one still logs the Security Panel in the previous state

! So if you change from Normal (Disarm) to Arm Home, the security script receives it in "Normal" state while the device script receives it in "Arm Home". I think that is a bug.
If others can confirm this behaviour, i think it would be interesting to file a bug for the last point that renders security scripts useless...
Hope it helps
Vicne