Here we are... some xml files for you to test. Just a few notes
The XBMC one is set up for the White LED lights (not RGB) so the UDP string might look somewhat different and it is triggered my the play feature in xbmc (dim) and the stop will set it to 100% again. Only media that is added to library though. Not files you just open
The UDP wifilights xml is for my room and two entries here (ON\OFF) have an action trigger (event trigger) linked to them. This is coming from my Vera lite unit and detecting motion from my motion sensor sends an event to VC and VC in turn turns lights on when it sees motion or in 20 minuts with no motion will switch them off again
The Fancy stuff was James being his usual clever self. He wipped these together in 2 seconds and I just sat doing
Not sure if this will work for you with just the xml as James also set some items in phase only and phase, value xml sets
Let me know if these work for you