1. Set remote sensor to A10 (or whatever).
2. Set wall switch to A11 (or whatever)
3 Using CM11 or CM15, write a fast macro as follows:
A10 On: A11 +40% Relative (not Absolute)
A10 Off: A11 -90% Relative (not absolute)
Problem: Each time sensor is triggered, the lamp's brightness is increased by 40%. So if it is re-triggered two or more times, the rightness is 100%, and A10 Off leaves the lamp 10% dim.
Note: There is a bug in CM11 that "-100% relative" becomes the same as "0% absolute". Then, "+40% relative" becomes "100% absolute and then 40% relative", which is not good for the bulb.
Solution: Instead of a remote sensor, use Slimline switch (set to A10) to trigger A11. It will not re-trigger A11 unless you press On again.
M.K.