Wall-mounted electric fireplace/heater with dimmer function