Semi complicated if this then that rule

That's definitely pink, but it's also off. Did "Current States" report "switch: off" at the time of capture? If done in your rule, you should be turning the bulb on before capture and so it should be on, but I guess it wouldn't hurt to insert a small delay--or a large one when for the purposes of testing so you have time to check the state before the rule captures and then changes it to red--just to be sure it doesn't say this.