Odd AC Dimmer Behavior

Thanks for the advice all. I am using a incandescent, so no issue there. Also, I guess I thought tha azeroncrossing ssr meant that it powered off at the zero, not on. So, I will have to get a random fire ssr. If into a triac route I will have to get a 240 40A one, which I assume exist since they are wha power ssr in some cases. I would want to optoisolate it though.

Another thought though. If I have a code triggering off a zero cross, always waiting the same delay with a zero cross ssr it seems like it would always be on or off. Still shouldn't be random flickering.

Any thoughts?