just4fn
The action you now describe is normal, since you have programmed an "absolute" level of 40%. X10 "standard' lamp module and wall switch can not come on at a preset level. Hence the CM15 sends an ON command followed by a prescribed number of DIM commands to get the light to 40%.
There is a work-around of using "relative" dimming. Change your macro to BRI by 40% on the ON trigger from the motion detector and DIM by 100% on the OFF trigger from the motion detector. By doing this the module never actually turn the light off, but rather simply dims it to a dark state. That allows you to use the relative BRI command to bring it up to the 40% state. You will also have to turn on the light and DIM to 0 each evening, to get the light to the desired standby state. Other wise a power failure or some locally turning the lamp off will put the light in the off state and it will not respond to the series of BRI commands.
I no longer use AHP and don't remember where the relative commands are found when building the macro. If this is clear as mud, holler for help and maybe someone can give you the actual macro steps.