Automation problem, what am i doing wrong?

Conditions are “and” by default, you don’t need to specify.

Looks to me as if the real trigger is the temperature dropping below 22 degrees and the condition is the time of day. Checking every two minutes is unnecessary.

For your time condition, you could make things easier by using a schedule helper - that would be either on or off depending on the day and the time.

Not sure what your exact requirement is, but you may not need to check whether the heater is on - if it’s already on, turning it on again will make no difference.

Best to avoid device IDs if you can.