Electronic imitation candle devices are described that produce a scent while including a flame-like element that simulates a real fire flame. One example device includes a support assembly having a base, a top plate and a support rod that connects the base and the top plate, as well as a flame element and a light source to simulate a real candle flame. The device also includes a fragrance compartment above the top plate that includes a lid removably positioned on top of the fragrance container. The device is further provided with a heating element above the top plate and below the fragrance container to provide heat to the fragrance container, and a switch coupled to the lid of the fragrance container and operable to sense that the fragrance container is covered by the lid and to deactivate the heating element when the fragrance container is covered by the lid.