Attiny13a and 2 PWM (dimmer and fan) is not working.

The CTC mode uses OCR0A as TOP. You cannot use it to generate PWM this way. I don't know how analogWrite is implemented but I guess it simply sets the corresponding OCR. So analogWrite (0, x) sets OCR0A to x - it changes PWM frequency changing duty of pin 1 (OC0B) but does nothing with pin 0. It will be always high.