There are generally two parts that control the deice depending on the age of the heat pump.
Older units had a timer switch that had a thermo bulb device attached in the condenser coils, it's a bulb about the diamenter of a pencil with a thin copper tube attached and it goes to the timer located inside the contactor panel of the heat pump.
Newer units 20 years & later have an electronic de-ice controller, ICM make a replacement, if I recall the p/n is ICM-300. Along with a de-ice thermo switch. The switch is attached to one of the tubes on the condenser. It will have two wires attached that go back to the controller board. One or the other is likely bad. You can use an ohmeter to check the switch. Should have the temp rating marked on it, IIRC, it will measure open above ~30deg and closed below ~30deg. You place it in your freezer to test it. If it checks o.k., then it's likely the timer board. I've had to replace both at differnt times in my heat pump over the years. Replaced one in the heat pump at work.
If all this is over your head electrically, then don't DIY. Call a professional and you'll at least have an idea of what's wrong & know if they are ripping you off or not. HTH